Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-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(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001331/0.001331, allocations: 174.1 kB / 17.41 MB, free: 4.41 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.376/1.376, allocations: 225.7 MB / 243.9 MB, free: 8.461 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007409/0.0007409, allocations: 96.09 kB / 295.1 MB, free: 9.496 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.373/0.373, allocations: 44.31 MB / 390.5 MB, free: 38.11 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003151/0.0003153, allocations: 8 kB / 463.1 MB, free: 476 kB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3811/0.3815, allocations: 61.9 MB / 0.5127 GB, free: 37.91 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches): time 0.002396/0.3839, allocations: 2.474 MB / 0.5152 GB, free: 36.13 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007944/0.3847, allocations: 0.6352 MB / 0.5158 GB, free: 35.66 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001313/0.3848, allocations: 5.375 kB / 0.5158 GB, free: 35.66 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001353/0.385, allocations: 42.55 kB / 0.5158 GB, free: 35.64 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001246/0.3851, allocations: 79.28 kB / 0.5159 GB, free: 35.59 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001554/0.3853, allocations: 76.42 kB / 0.516 GB, free: 35.54 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003358/0.3856, allocations: 393 kB / 0.5163 GB, free: 35.34 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000236/0.3859, allocations: 102.1 kB / 0.5164 GB, free: 35.3 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001769/0.3861, allocations: 123.7 kB / 0.5166 GB, free: 35.25 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001744/0.3862, allocations: 150.5 kB / 0.5167 GB, free: 35.18 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 4.525e-05/0.3863, allocations: 18.25 kB / 0.5167 GB, free: 35.18 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.332e-05/0.3863, allocations: 19.38 kB / 0.5167 GB, free: 35.18 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 4.976e-05/0.3864, allocations: 54.28 kB / 0.5168 GB, free: 35.14 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001386/0.3865, allocations: 177.4 kB / 0.517 GB, free: 35.03 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002952/0.3868, allocations: 358.7 kB / 0.5173 GB, free: 34.92 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.521e-06/0.3869, allocations: 2.625 kB / 0.5173 GB, free: 34.92 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.994e-06/0.3869, allocations: 0 / 0.5173 GB, free: 34.92 MB / 378.7 MB Notification: Performance of Transformations before backend: time 6.192e-06/0.3869, allocations: 0 / 0.5173 GB, free: 34.92 MB / 378.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.000905/0.3878, allocations: 0.5968 MB / 0.5179 GB, free: 34.45 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.042e-05/0.3878, allocations: 7.969 kB / 0.5179 GB, free: 34.45 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.718e-05/0.3879, allocations: 37.14 kB / 0.5179 GB, free: 34.43 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002885/0.3882, allocations: 274.5 kB / 0.5182 GB, free: 34.17 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.387e-05/0.3882, allocations: 19.31 kB / 0.5182 GB, free: 34.16 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.231e-05/0.3883, allocations: 26.22 kB / 0.5182 GB, free: 34.15 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006073/0.3889, allocations: 338.1 kB / 0.5186 GB, free: 33.99 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.128e-05/0.3889, allocations: 0 / 0.5186 GB, free: 33.99 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.051e-05/0.389, allocations: 11.12 kB / 0.5186 GB, free: 33.98 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.07e-05/0.389, allocations: 10.69 kB / 0.5186 GB, free: 33.98 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005088/0.3895, allocations: 253.5 kB / 0.5188 GB, free: 33.9 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001709/0.3912, allocations: 1.284 MB / 0.5201 GB, free: 33.04 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007113/0.3919, allocations: 494.1 kB / 0.5205 GB, free: 32.72 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003006/0.3922, allocations: 169.1 kB / 0.5207 GB, free: 32.66 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.681e-05/0.3923, allocations: 2.828 kB / 0.5207 GB, free: 32.66 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.219e-05/0.3923, allocations: 37.3 kB / 0.5207 GB, free: 32.61 MB / 378.7 MB Notification: Performance of pre-optimization done (n=27): time 2.073e-06/0.3923, allocations: 3.984 kB / 0.5207 GB, free: 32.61 MB / 378.7 MB Notification: Performance of matching and sorting (n=27): time 0.002675/0.395, allocations: 1.173 MB / 0.5219 GB, free: 32.19 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.274e-05/0.395, allocations: 58.5 kB / 0.5219 GB, free: 32.12 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002122/0.3953, allocations: 243.3 kB / 0.5222 GB, free: 31.97 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.953e-05/0.3953, allocations: 33.03 kB / 0.5222 GB, free: 31.94 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.776e-05/0.3954, allocations: 168.7 kB / 0.5224 GB, free: 31.79 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.549e-05/0.3954, allocations: 85 kB / 0.5225 GB, free: 31.73 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.289e-05/0.3955, allocations: 4 kB / 0.5225 GB, free: 31.72 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 8.016e-05/0.3955, allocations: 339.1 kB / 0.5228 GB, free: 31.39 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001999/0.3957, allocations: 113.5 kB / 0.5229 GB, free: 31.36 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002177/0.396, allocations: 153.1 kB / 0.523 GB, free: 31.28 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004383/0.3964, allocations: 265.3 kB / 0.5233 GB, free: 31.15 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.053e-06/0.3964, allocations: 0 / 0.5233 GB, free: 31.15 MB / 378.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001016/0.3975, allocations: 0.5319 MB / 0.5238 GB, free: 30.95 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.913e-05/0.3975, allocations: 5.812 kB / 0.5238 GB, free: 30.95 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.744e-06/0.3975, allocations: 2.812 kB / 0.5238 GB, free: 30.95 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000963/0.3985, allocations: 290.1 kB / 0.5241 GB, free: 30.89 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001321/0.3986, allocations: 35.48 kB / 0.5241 GB, free: 30.88 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003035/0.4017, allocations: 3.506 MB / 0.5275 GB, free: 27.93 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001855/0.4019, allocations: 44.48 kB / 0.5276 GB, free: 27.91 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.145e-05/0.4019, allocations: 10.31 kB / 0.5276 GB, free: 27.91 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 1 (booleanStep.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (21): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(2,6,100.0%), (2,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001355/0.402, allocations: 141.4 kB / 0.5277 GB, free: 27.77 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.552e-05/0.4021, allocations: 26.25 kB / 0.5278 GB, free: 27.76 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.672e-05/0.4021, allocations: 36.66 kB / 0.5278 GB, free: 27.73 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.005e-06/0.4022, allocations: 2.938 kB / 0.5278 GB, free: 27.73 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.859e-06/0.4022, allocations: 2.812 kB / 0.5278 GB, free: 27.73 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.448e-06/0.4022, allocations: 3.562 kB / 0.5278 GB, free: 27.73 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001355/0.4035, allocations: 0.9459 MB / 0.5287 GB, free: 27.19 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.033e-06/0.4036, allocations: 0 / 0.5287 GB, free: 27.19 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.436e-05/0.4036, allocations: 15.12 kB / 0.5287 GB, free: 27.19 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000801/0.4044, allocations: 291.7 kB / 0.529 GB, free: 27.12 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2e-05/0.4045, allocations: 7 kB / 0.529 GB, free: 27.12 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003063/0.4075, allocations: 3.501 MB / 0.5324 GB, free: 24.17 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.455e-06/0.4076, allocations: 3.469 kB / 0.5325 GB, free: 24.17 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001043/0.4086, allocations: 0.5852 MB / 0.533 GB, free: 23.88 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001096/0.4087, allocations: 115.8 kB / 0.5331 GB, free: 23.77 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.006e-05/0.4088, allocations: 10.78 kB / 0.5331 GB, free: 23.76 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002099/0.409, allocations: 37.3 kB / 0.5332 GB, free: 23.75 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001012/0.4091, allocations: 29.3 kB / 0.5332 GB, free: 23.75 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.663e-05/0.4091, allocations: 5.469 kB / 0.5332 GB, free: 23.75 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001617/0.4093, allocations: 172.6 kB / 0.5334 GB, free: 23.64 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.052e-06/0.4093, allocations: 4 kB / 0.5334 GB, free: 23.63 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004536/0.4098, allocations: 111.9 kB / 0.5335 GB, free: 23.61 MB / 378.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 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(2,6,100.0%), (2,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001654/0.4099, allocations: 117.1 kB / 0.5336 GB, free: 23.51 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0009948/0.4109, allocations: 0.5754 MB / 0.5342 GB, free: 23.16 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.1e-06/0.4109, allocations: 2.438 kB / 0.5342 GB, free: 23.16 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005552/0.4115, allocations: 441 kB / 0.5346 GB, free: 22.86 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004614/0.412, allocations: 50.38 kB / 0.5346 GB, free: 22.84 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008318/0.4128, allocations: 0.6443 MB / 0.5353 GB, free: 22.42 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001764/0.413, allocations: 0.7642 MB / 0.536 GB, free: 21.72 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 9.302e-05/0.4131, allocations: 20.23 kB / 0.536 GB, free: 21.71 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.179e-05/0.4132, allocations: 22.06 kB / 0.536 GB, free: 21.7 MB / 378.7 MB Notification: Performance of SimCode: time 4.91e-07/0.4132, allocations: 0 / 0.536 GB, free: 21.7 MB / 378.7 MB Notification: Performance of Templates: time 0.008502/0.4217, allocations: 4.198 MB / 0.5401 GB, free: 21.39 MB / 378.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