Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.conf.json 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 4.0.0+maint.om/package.mo", uses=false) 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/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 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) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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) Running command: translateModel(ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|twoWay.LossPower|twoWay.p.i|twoWay.n1.v|twoWay.n1.i|twoWay.n2.v|twoWay.n2.i|controlledTwoWay.LossPower|controlledTwoWay.p.i|controlledTwoWay.n1.v|controlledTwoWay.n1.i|controlledTwoWay.n2.v|controlledTwoWay.n2.i",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches") translateModel(ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|twoWay.LossPower|twoWay.p.i|twoWay.n1.v|twoWay.n1.i|twoWay.n2.v|twoWay.n2.i|controlledTwoWay.LossPower|controlledTwoWay.p.i|controlledTwoWay.n1.v|controlledTwoWay.n1.i|controlledTwoWay.n2.v|controlledTwoWay.n2.i",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001154/0.001154, allocations: 178.8 kB / 14.15 MB, free: 1.176 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.272/1.272, allocations: 221.3 MB / 236 MB, free: 2.938 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008641/0.0008644, allocations: 99.59 kB / 287 MB, free: 240 kB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1785/0.1785, allocations: 44.16 MB / 382 MB, free: 14.68 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 2.269e-05/2.272e-05, allocations: 8.219 kB / 451.8 MB, free: 9.414 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1242/0.1242, allocations: 61.9 MB / 0.5017 GB, free: 11.45 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3403/0.4646, allocations: 88.67 MB / 0.5883 GB, free: 0.6484 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001985/0.4649, allocations: 80.52 kB / 0.5884 GB, free: 0.5703 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01191/0.4768, allocations: 4.806 MB / 0.5931 GB, free: 11.76 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.032e-06/0.4768, allocations: 0 / 0.5931 GB, free: 11.76 MB / 410.7 MB Notification: Performance of Transformations before backend: time 1.445e-05/0.4768, allocations: 4 kB / 0.5931 GB, free: 11.76 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 68 * Number of variables: 68 Notification: Performance of Generate backend data structure: time 0.0007949/0.4776, allocations: 0.5568 MB / 0.5936 GB, free: 11.16 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.707e-05/0.4777, allocations: 8.031 kB / 0.5936 GB, free: 11.15 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.357e-05/0.4778, allocations: 39.61 kB / 0.5937 GB, free: 11.11 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003029/0.4781, allocations: 261.6 kB / 0.5939 GB, free: 10.82 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.93e-05/0.4781, allocations: 16.56 kB / 0.5939 GB, free: 10.8 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.344e-05/0.4782, allocations: 35.95 kB / 0.594 GB, free: 10.77 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000489/0.4787, allocations: 292.5 kB / 0.5942 GB, free: 10.46 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.216e-05/0.4787, allocations: 0 / 0.5942 GB, free: 10.46 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.111e-05/0.4787, allocations: 12 kB / 0.5943 GB, free: 10.45 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.671e-05/0.4788, allocations: 11.94 kB / 0.5943 GB, free: 10.44 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003807/0.4792, allocations: 202.2 kB / 0.5945 GB, free: 10.25 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001941/0.4811, allocations: 1.296 MB / 0.5957 GB, free: 8.867 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000552/0.4817, allocations: 431.5 kB / 0.5961 GB, free: 8.402 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002127/0.4819, allocations: 145.3 kB / 0.5963 GB, free: 8.258 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.877e-05/0.4819, allocations: 240 / 0.5963 GB, free: 8.258 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.421e-05/0.482, allocations: 42.73 kB / 0.5963 GB, free: 8.207 MB / 410.7 MB Notification: Performance of pre-optimization done (n=27): time 2.655e-06/0.482, allocations: 4 kB / 0.5963 GB, free: 8.203 MB / 410.7 MB Notification: Performance of matching and sorting (n=27): time 0.0008715/0.4828, allocations: 406.3 kB / 0.5967 GB, free: 7.801 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.142e-05/0.4829, allocations: 55.41 kB / 0.5968 GB, free: 7.734 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002021/0.4831, allocations: 213.1 kB / 0.597 GB, free: 7.52 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 2.416e-05/0.4831, allocations: 33.7 kB / 0.597 GB, free: 7.48 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.151e-05/0.4832, allocations: 168.1 kB / 0.5972 GB, free: 7.312 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.592e-05/0.4833, allocations: 94.64 kB / 0.5972 GB, free: 7.219 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.379e-05/0.4833, allocations: 4 kB / 0.5972 GB, free: 7.215 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001428/0.4835, allocations: 330.8 kB / 0.5976 GB, free: 6.883 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001451/0.4836, allocations: 76.56 kB / 0.5976 GB, free: 6.805 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001519/0.4838, allocations: 115.6 kB / 0.5977 GB, free: 6.684 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001542/0.484, allocations: 87.94 kB / 0.5978 GB, free: 6.598 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.544e-06/0.484, allocations: 0 / 0.5978 GB, free: 6.598 MB / 410.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0008765/0.4849, allocations: 442.7 kB / 0.5983 GB, free: 6.152 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.065e-05/0.4849, allocations: 8 kB / 0.5983 GB, free: 6.145 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.036e-05/0.4849, allocations: 3.984 kB / 0.5983 GB, free: 6.141 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008486/0.4858, allocations: 233.5 kB / 0.5985 GB, free: 5.906 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001341/0.4859, allocations: 27.98 kB / 0.5985 GB, free: 5.879 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003035/0.4889, allocations: 3.269 MB / 0.6017 GB, free: 2.34 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000219/0.4892, allocations: 31.86 kB / 0.6017 GB, free: 2.309 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.876e-05/0.4892, allocations: 4 kB / 0.6017 GB, free: 2.305 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 1 (booleanStep.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (19): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 6,(2,100.0%) 6} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001097/0.4893, allocations: 125.2 kB / 0.6019 GB, free: 2.176 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.523e-05/0.4894, allocations: 35.62 kB / 0.6019 GB, free: 2.141 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.147e-05/0.4895, allocations: 30.86 kB / 0.6019 GB, free: 2.113 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.176e-06/0.4895, allocations: 4 kB / 0.6019 GB, free: 2.109 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.406e-06/0.4895, allocations: 0 / 0.6019 GB, free: 2.109 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.818e-06/0.4895, allocations: 0 / 0.6019 GB, free: 2.109 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001339/0.4908, allocations: 0.8588 MB / 0.6028 GB, free: 1.188 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.721e-06/0.4909, allocations: 11.92 kB / 0.6028 GB, free: 1.176 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.057e-05/0.491, allocations: 12 kB / 0.6028 GB, free: 1.164 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007346/0.4917, allocations: 229.5 kB / 0.603 GB, free: 0.9336 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.695e-05/0.4917, allocations: 4 kB / 0.603 GB, free: 0.9297 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003031/0.4948, allocations: 3.277 MB / 0.6062 GB, free: 13.38 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.809e-06/0.4948, allocations: 0 / 0.6062 GB, free: 13.38 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009235/0.4957, allocations: 0.4967 MB / 0.6067 GB, free: 12.86 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001421/0.4959, allocations: 128.7 kB / 0.6068 GB, free: 12.72 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.54e-05/0.4959, allocations: 0 / 0.6068 GB, free: 12.72 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002341/0.4962, allocations: 35.94 kB / 0.6069 GB, free: 12.68 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001006/0.4963, allocations: 31.95 kB / 0.6069 GB, free: 12.65 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.711e-05/0.4963, allocations: 8 kB / 0.6069 GB, free: 12.64 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0001846/0.4965, allocations: 173.4 kB / 0.6071 GB, free: 12.48 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4965, allocations: 0 / 0.6071 GB, free: 12.48 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0004487/0.4969, allocations: 103.8 kB / 0.6072 GB, free: 12.38 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (booleanStep.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 6,(2,100.0%) 6} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001346/0.4971, allocations: 103.2 kB / 0.6073 GB, free: 12.27 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0007926/0.4979, allocations: 0.509 MB / 0.6077 GB, free: 11.73 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.4979, allocations: 0 / 0.6077 GB, free: 11.73 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004813/0.4984, allocations: 413 kB / 0.6081 GB, free: 11.3 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003226/0.4987, allocations: 44.47 kB / 0.6082 GB, free: 11.26 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007461/0.4995, allocations: 344 kB / 0.6085 GB, free: 10.9 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004354/0.4999, allocations: 0.7679 MB / 0.6093 GB, free: 10.1 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0001037/0.5, allocations: 22.08 kB / 0.6093 GB, free: 10.08 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.312e-05/0.5001, allocations: 15.44 kB / 0.6093 GB, free: 10.07 MB / 426.7 MB Notification: Performance of SimCode: time 3.61e-07/0.5001, allocations: 0 / 0.6093 GB, free: 10.07 MB / 426.7 MB Notification: Performance of Templates: time 0.007858/0.508, allocations: 4.156 MB / 0.6134 GB, free: 5.961 MB / 426.7 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.sim & ./ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Electrical/Analog/Ideal/IdealTwoWaySwitches/IdealTwoWaySwitches.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches