Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.SwitchWithArc,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_SwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.SwitchWithArc,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_SwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00118/0.00118, allocations: 117.7 kB / 17.79 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001298/0.001298, allocations: 204.6 kB / 18.73 MB, free: 4.316 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.373/1.373, allocations: 227.4 MB / 246.9 MB, free: 10.42 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001704/0.001704, allocations: 59.91 kB / 358.2 MB, free: 13.4 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2723/0.274, allocations: 50.54 MB / 408.8 MB, free: 1.516 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.00422/0.2783, allocations: 2.885 MB / 411.7 MB, free: 14.62 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001531/0.2798, allocations: 0.7595 MB / 412.4 MB, free: 13.85 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002468/0.2801, allocations: 7.938 kB / 412.4 MB, free: 13.84 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001992/0.2803, allocations: 51.5 kB / 412.5 MB, free: 13.79 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000269/0.2806, allocations: 87.19 kB / 412.6 MB, free: 13.71 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003764/0.281, allocations: 95.83 kB / 412.7 MB, free: 13.61 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004327/0.2815, allocations: 378.3 kB / 413 MB, free: 13.24 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002456/0.2817, allocations: 131.2 kB / 413.1 MB, free: 13.11 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001934/0.2819, allocations: 139.5 kB / 413.3 MB, free: 12.97 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002384/0.2822, allocations: 155.3 kB / 413.4 MB, free: 12.82 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.808e-05/0.2822, allocations: 28 kB / 413.5 MB, free: 12.79 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.867e-05/0.2823, allocations: 32 kB / 413.5 MB, free: 12.76 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.955e-05/0.2824, allocations: 67.75 kB / 413.6 MB, free: 12.69 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001532/0.2825, allocations: 167.2 kB / 413.7 MB, free: 12.53 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003534/0.2829, allocations: 360.4 kB / 414.1 MB, free: 12.18 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.139e-06/0.2829, allocations: 4 kB / 414.1 MB, free: 12.17 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.263e-06/0.2829, allocations: 0 / 414.1 MB, free: 12.17 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.527e-05/0.2829, allocations: 0 / 414.1 MB, free: 12.17 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 71 * Number of variables: 71 Notification: Performance of Generate backend data structure: time 0.001019/0.284, allocations: 0.6056 MB / 414.7 MB, free: 11.52 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.963e-05/0.284, allocations: 12.03 kB / 414.7 MB, free: 11.51 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.877e-05/0.2841, allocations: 66.72 kB / 414.8 MB, free: 11.43 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.289e-05/0.2842, allocations: 40.5 kB / 414.8 MB, free: 11.39 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003702/0.2845, allocations: 268.3 kB / 415.1 MB, free: 11.09 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.166e-05/0.2846, allocations: 76.62 kB / 415.1 MB, free: 11.01 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.49e-05/0.2847, allocations: 28.38 kB / 415.2 MB, free: 10.98 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000473/0.2852, allocations: 309.6 kB / 415.5 MB, free: 10.66 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.297e-05/0.2852, allocations: 0 / 415.5 MB, free: 10.66 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.814e-05/0.2852, allocations: 8 kB / 415.5 MB, free: 10.65 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.031e-05/0.2852, allocations: 11.98 kB / 415.5 MB, free: 10.64 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003351/0.2856, allocations: 190.1 kB / 415.7 MB, free: 10.46 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001766/0.2873, allocations: 1.119 MB / 416.8 MB, free: 9.254 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003137/0.2877, allocations: 165.3 kB / 417 MB, free: 9.086 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001248/0.2878, allocations: 76.83 kB / 417 MB, free: 9.008 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.139e-05/0.2878, allocations: 4 kB / 417 MB, free: 9.004 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002699/0.2881, allocations: 157.4 kB / 417.2 MB, free: 8.832 MB / 334.1 MB Notification: Performance of pre-optimization done (n=21): time 2.023e-06/0.2881, allocations: 4 kB / 417.2 MB, free: 8.828 MB / 334.1 MB Notification: Performance of matching and sorting (n=21): time 0.001038/0.2892, allocations: 387.1 kB / 417.6 MB, free: 8.422 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.832e-05/0.2892, allocations: 114.8 kB / 417.7 MB, free: 8.285 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002059/0.2895, allocations: 225 kB / 417.9 MB, free: 8.055 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.828e-05/0.2895, allocations: 33.7 kB / 417.9 MB, free: 8.016 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001042/0.2896, allocations: 172.2 kB / 418.1 MB, free: 7.844 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.067e-05/0.2897, allocations: 75.08 kB / 418.2 MB, free: 7.77 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.166e-05/0.2898, allocations: 57.61 kB / 418.2 MB, free: 7.707 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001113/0.2899, allocations: 334.8 kB / 418.6 MB, free: 7.371 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001534/0.2901, allocations: 67.97 kB / 418.6 MB, free: 7.305 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000173/0.2903, allocations: 149.5 kB / 418.8 MB, free: 7.125 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002608/0.2905, allocations: 188.2 kB / 419 MB, free: 6.918 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.865e-06/0.2905, allocations: 0 / 419 MB, free: 6.918 MB / 334.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.000461/0.291, allocations: 272.4 kB / 419.2 MB, free: 6.645 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.856e-05/0.291, allocations: 8.219 kB / 419.2 MB, free: 6.637 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.916e-06/0.291, allocations: 7.984 kB / 419.2 MB, free: 6.629 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002838/0.2913, allocations: 48.83 kB / 419.3 MB, free: 6.578 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002244/0.2916, allocations: 55.91 kB / 419.3 MB, free: 6.523 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001507/0.2931, allocations: 1.568 MB / 420.9 MB, free: 4.816 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002511/0.2934, allocations: 35.77 kB / 420.9 MB, free: 4.781 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.385e-05/0.2934, allocations: 8 kB / 421 MB, free: 4.773 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition2,switch2.tSwitch,$PRE.switch2.tSwitch,switch2.quenched,$PRE.switch2.quenched,switch2.off,$PRE.switch2.off,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (34): * Single equations (assignments): 33 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0001752/0.2936, allocations: 161.6 kB / 421.1 MB, free: 4.605 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.32e-05/0.2936, allocations: 23.8 kB / 421.1 MB, free: 4.582 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.532e-05/0.2937, allocations: 22.19 kB / 421.2 MB, free: 4.559 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.605e-06/0.2937, allocations: 4.062 kB / 421.2 MB, free: 4.555 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.206e-06/0.2937, allocations: 4 kB / 421.2 MB, free: 4.551 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.3e-06/0.2937, allocations: 3.984 kB / 421.2 MB, free: 4.547 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003388/0.294, allocations: 325.3 kB / 421.5 MB, free: 4.18 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.956e-06/0.2941, allocations: 0 / 421.5 MB, free: 4.18 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001634/0.2942, allocations: 31.92 kB / 421.5 MB, free: 4.148 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001907/0.2944, allocations: 52.81 kB / 421.6 MB, free: 4.094 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.198e-05/0.2945, allocations: 8 kB / 421.6 MB, free: 4.086 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001092/0.2956, allocations: 1.422 MB / 423 MB, free: 2.523 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.2956, allocations: 0 / 423 MB, free: 2.523 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006064/0.2962, allocations: 328.8 kB / 423.3 MB, free: 2.184 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001265/0.2963, allocations: 120.7 kB / 423.4 MB, free: 2.047 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.709e-05/0.2964, allocations: 11.94 kB / 423.4 MB, free: 2.035 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001686/0.2965, allocations: 11.98 kB / 423.5 MB, free: 2.023 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.605e-05/0.2966, allocations: 31.95 kB / 423.5 MB, free: 1.992 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.382e-05/0.2967, allocations: 4 kB / 423.5 MB, free: 1.988 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001349/0.2968, allocations: 164.5 kB / 423.7 MB, free: 1.832 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.2968, allocations: 0 / 423.7 MB, free: 1.832 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003795/0.2972, allocations: 83.91 kB / 423.7 MB, free: 1.75 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (inductor1.i,inductor2.i) * Number of discrete variables: 6 ($whenCondition2,$whenCondition1,booleanPulse.pulseStart,switch2.off,switch2.quenched,switch2.tSwitch) * Number of discrete states: 2 (switch2.quenched,switch2.off) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0009199/0.2981, allocations: 0.8614 MB / 424.6 MB, free: 0.8633 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005222/0.2987, allocations: 294.5 kB / 424.9 MB, free: 0.5625 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.445e-06/0.2987, allocations: 0 / 424.9 MB, free: 0.5625 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002714/0.299, allocations: 199.7 kB / 425.1 MB, free: 364 kB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002861/0.2992, allocations: 36.41 kB / 425.1 MB, free: 328 kB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003499/0.3028, allocations: 2.58 MB / 427.7 MB, free: 13.61 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000316/0.3031, allocations: 0.7558 MB / 428.5 MB, free: 12.83 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001061/0.3032, allocations: 22.3 kB / 428.5 MB, free: 12.8 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001178/0.3033, allocations: 91.28 kB / 428.6 MB, free: 12.71 MB / 350.1 MB Notification: Performance of SimCode: time 6.81e-07/0.3034, allocations: 4 kB / 428.6 MB, free: 12.71 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02756/0.3309, allocations: 5.726 MB / 434.3 MB, free: 7.137 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.3/11.63, allocations: 10.77 kB / 434.3 MB, free: 7.129 MB / 350.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_SwitchWithArc_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_SwitchWithArc.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/SwitchWithArc/SwitchWithArc.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches