Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001152/0.001152, allocations: 106.6 kB / 17.73 MB, free: 5.328 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001162/0.001162, allocations: 191 kB / 18.66 MB, free: 4.398 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.901/1.901, allocations: 205.1 MB / 224.5 MB, free: 12.2 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001353/0.001353, allocations: 59.92 kB / 328 MB, free: 3.785 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1402/0.1415, allocations: 46.61 MB / 374.7 MB, free: 5.066 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.007018/0.1487, allocations: 3.092 MB / 377.7 MB, free: 1.957 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002375/0.1511, allocations: 0.7952 MB / 378.5 MB, free: 1.152 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003461/0.1515, allocations: 8 kB / 378.5 MB, free: 1.145 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004913/0.152, allocations: 63.36 kB / 378.6 MB, free: 1.082 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002614/0.1523, allocations: 95.06 kB / 378.7 MB, free: 0.9883 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000553/0.1529, allocations: 111.8 kB / 378.8 MB, free: 0.8789 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006099/0.1535, allocations: 426 kB / 379.2 MB, free: 472 kB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004116/0.1539, allocations: 135.7 kB / 379.4 MB, free: 332 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002914/0.1542, allocations: 159.4 kB / 379.5 MB, free: 172 kB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.3158/0.4701, allocations: 171.8 kB / 379.7 MB, free: 9.457 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00041/0.4705, allocations: 35.25 kB / 379.7 MB, free: 9.457 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001422/0.4707, allocations: 34.88 kB / 379.8 MB, free: 9.457 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001163/0.4708, allocations: 85.78 kB / 379.8 MB, free: 9.457 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000303/0.4711, allocations: 181.1 kB / 380 MB, free: 9.457 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007164/0.4718, allocations: 428.5 kB / 380.4 MB, free: 9.406 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.596e-06/0.4719, allocations: 1.469 kB / 380.4 MB, free: 9.406 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.504e-06/0.4719, allocations: 0 / 380.4 MB, free: 9.406 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.272e-05/0.4719, allocations: 0 / 380.4 MB, free: 9.406 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.00115/0.473, allocations: 0.6463 MB / 381.1 MB, free: 8.949 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.554e-05/0.4731, allocations: 9.188 kB / 381.1 MB, free: 8.949 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002406/0.4734, allocations: 75.66 kB / 381.2 MB, free: 8.91 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.702e-05/0.4735, allocations: 41.09 kB / 381.2 MB, free: 8.891 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005012/0.474, allocations: 277.8 kB / 381.5 MB, free: 8.664 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.957e-05/0.4741, allocations: 81.72 kB / 381.6 MB, free: 8.602 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.575e-05/0.4742, allocations: 31.16 kB / 381.6 MB, free: 8.602 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006188/0.4748, allocations: 340.7 kB / 381.9 MB, free: 8.523 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.559e-05/0.4748, allocations: 2.297 kB / 381.9 MB, free: 8.523 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.496e-05/0.4749, allocations: 11.06 kB / 381.9 MB, free: 8.523 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.313e-05/0.4749, allocations: 8.25 kB / 381.9 MB, free: 8.523 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005069/0.4754, allocations: 225.5 kB / 382.2 MB, free: 8.52 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002108/0.4775, allocations: 1.353 MB / 383.5 MB, free: 7.746 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003822/0.4779, allocations: 167.9 kB / 383.7 MB, free: 7.723 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001604/0.4781, allocations: 96.94 kB / 383.8 MB, free: 7.707 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.717e-05/0.4781, allocations: 4.312 kB / 383.8 MB, free: 7.707 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002899/0.4784, allocations: 154.5 kB / 383.9 MB, free: 7.637 MB / 318.1 MB Notification: Performance of pre-optimization done (n=21): time 1.633e-06/0.4784, allocations: 2.625 kB / 383.9 MB, free: 7.637 MB / 318.1 MB Notification: Performance of matching and sorting (n=21): time 0.001361/0.4798, allocations: 395.8 kB / 384.3 MB, free: 7.488 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.954e-05/0.4799, allocations: 117.8 kB / 384.4 MB, free: 7.359 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003576/0.4802, allocations: 262.9 kB / 384.7 MB, free: 7.25 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.064e-05/0.4803, allocations: 33.8 kB / 384.7 MB, free: 7.219 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001676/0.4805, allocations: 203.5 kB / 384.9 MB, free: 7.082 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.853e-05/0.4805, allocations: 72.22 kB / 385 MB, free: 7.039 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001231/0.4807, allocations: 63.42 kB / 385 MB, free: 7.02 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 9.703e-05/0.4808, allocations: 336.9 kB / 385.4 MB, free: 6.707 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001799/0.481, allocations: 76.73 kB / 385.5 MB, free: 6.707 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002243/0.4812, allocations: 182.9 kB / 385.6 MB, free: 6.59 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000322/0.4815, allocations: 232 kB / 385.9 MB, free: 6.488 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.727e-06/0.4815, allocations: 1.344 kB / 385.9 MB, free: 6.488 MB / 318.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0008342/0.4824, allocations: 341 kB / 386.2 MB, free: 6.367 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.039e-05/0.4824, allocations: 6.312 kB / 386.2 MB, free: 6.367 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.041e-05/0.4824, allocations: 7.562 kB / 386.2 MB, free: 6.363 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002854/0.4827, allocations: 55.56 kB / 386.3 MB, free: 6.344 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002707/0.483, allocations: 64 kB / 386.3 MB, free: 6.344 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001079/0.4841, allocations: 1.578 MB / 387.9 MB, free: 4.766 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003653/0.4845, allocations: 46.31 kB / 387.9 MB, free: 4.742 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.821e-05/0.4846, allocations: 9.828 kB / 388 MB, free: 4.742 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 8 (switch2.tSwitch,$PRE.switch2.tSwitch,switch2.quenched,$PRE.switch2.quenched,switch2.off,$PRE.switch2.off,switch1.off,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (38): * Single equations (assignments): 37 * 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.0001558/0.4847, allocations: 154.9 kB / 388.1 MB, free: 4.605 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.445e-05/0.4848, allocations: 25.12 kB / 388.1 MB, free: 4.594 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.958e-05/0.4848, allocations: 35.88 kB / 388.2 MB, free: 4.57 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.515e-06/0.4848, allocations: 5.688 kB / 388.2 MB, free: 4.566 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.649e-06/0.4849, allocations: 4.062 kB / 388.2 MB, free: 4.566 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.412e-06/0.4849, allocations: 1.266 kB / 388.2 MB, free: 4.566 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004127/0.4853, allocations: 344 kB / 388.5 MB, free: 4.309 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.545e-06/0.4853, allocations: 0 / 388.5 MB, free: 4.309 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002037/0.4855, allocations: 34.41 kB / 388.5 MB, free: 4.309 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002229/0.4857, allocations: 63.11 kB / 388.6 MB, free: 4.281 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.165e-05/0.4858, allocations: 6.25 kB / 388.6 MB, free: 4.277 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009442/0.4867, allocations: 1.417 MB / 390 MB, free: 2.859 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.433e-06/0.4867, allocations: 1.156 kB / 390 MB, free: 2.859 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000832/0.4876, allocations: 351.9 kB / 390.4 MB, free: 2.676 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001022/0.4877, allocations: 114.2 kB / 390.5 MB, free: 2.562 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.162e-05/0.4877, allocations: 5.656 kB / 390.5 MB, free: 2.559 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001742/0.4879, allocations: 18.53 kB / 390.5 MB, free: 2.559 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001079/0.488, allocations: 35.38 kB / 390.5 MB, free: 2.547 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.757e-05/0.4881, allocations: 5.891 kB / 390.6 MB, free: 2.547 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001926/0.4883, allocations: 190.3 kB / 390.7 MB, free: 2.438 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4883, allocations: 0 / 390.7 MB, free: 2.438 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0004355/0.4887, allocations: 93.62 kB / 390.8 MB, free: 2.414 MB / 318.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: 5 ($whenCondition1,switch1.off,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): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0009791/0.4897, allocations: 0.8786 MB / 391.7 MB, free: 1.711 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0008324/0.4905, allocations: 315.9 kB / 392 MB, free: 1.543 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.048e-06/0.4905, allocations: 1.25 kB / 392 MB, free: 1.543 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002862/0.4908, allocations: 200.9 kB / 392.2 MB, free: 1.406 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003024/0.4912, allocations: 44.78 kB / 392.3 MB, free: 1.387 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004723/0.4959, allocations: 2.906 MB / 395.2 MB, free: 15.44 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005448/0.4964, allocations: 0.7741 MB / 395.9 MB, free: 14.74 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001633/0.4966, allocations: 25.47 kB / 396 MB, free: 14.74 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001557/0.4968, allocations: 97.31 kB / 396.1 MB, free: 14.66 MB / 334.1 MB Notification: Performance of SimCode: time 7.31e-07/0.4968, allocations: 0 / 396.1 MB, free: 14.66 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04071/0.5375, allocations: 6.138 MB / 402.2 MB, free: 13.26 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.19/12.73, allocations: 9.359 kB / 402.2 MB, free: 13.25 MB / 334.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc_fmu --startTime=0 --stopTime=6 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/ControlledSwitchWithArc/ControlledSwitchWithArc.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches