Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0009568/0.0009568, allocations: 80.8 kB / 21.49 MB, free: 2.992 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001098/0.001098, allocations: 168.7 kB / 24.91 MB, free: 9.191 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9196/0.9196, allocations: 177.1 MB / 205.3 MB, free: 5.5 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2502/0.2502, allocations: 34.26 MB / 296.1 MB, free: 0.6484 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5003,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.1.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches") translateModel(ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5003,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.1.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.022e-06/1.022e-06, allocations: 0 / 325.2 MB, free: 7.699 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 9.909e-06/1.093e-05, allocations: 5.859 kB / 325.2 MB, free: 7.695 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches): time 0.00252/0.002531, allocations: 2.912 MB / 328.1 MB, free: 4.762 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008782/0.003409, allocations: 0.6822 MB / 328.8 MB, free: 4.074 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.193e-05/0.003491, allocations: 11.94 kB / 328.8 MB, free: 4.062 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 8.53e-05/0.003576, allocations: 59.44 kB / 328.9 MB, free: 4.004 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001087/0.003685, allocations: 95.06 kB / 329 MB, free: 3.91 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001059/0.003791, allocations: 95.84 kB / 329.1 MB, free: 3.816 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002398/0.004031, allocations: 418.6 kB / 329.5 MB, free: 3.406 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001129/0.004143, allocations: 89.95 kB / 329.6 MB, free: 3.32 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001446/0.004288, allocations: 235.5 kB / 329.8 MB, free: 3.09 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001103/0.004398, allocations: 119.7 kB / 329.9 MB, free: 2.973 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.078e-05/0.004429, allocations: 32 kB / 330 MB, free: 2.941 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.691e-05/0.004456, allocations: 36 kB / 330 MB, free: 2.906 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.997e-05/0.004496, allocations: 75.72 kB / 330.1 MB, free: 2.832 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 7.298e-05/0.004569, allocations: 123.7 kB / 330.2 MB, free: 2.711 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001817/0.004751, allocations: 259.1 kB / 330.4 MB, free: 2.457 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.262e-06/0.004752, allocations: 0 / 330.4 MB, free: 2.457 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.082e-06/0.004753, allocations: 7.922 kB / 330.4 MB, free: 2.449 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.855e-06/0.004756, allocations: 0 / 330.4 MB, free: 2.449 MB / 298.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.0004333/0.005189, allocations: 0.5403 MB / 331 MB, free: 1.887 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.148e-05/0.005211, allocations: 8.031 kB / 331 MB, free: 1.879 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.504e-05/0.005256, allocations: 52.89 kB / 331 MB, free: 1.828 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000148/0.005404, allocations: 181.9 kB / 331.2 MB, free: 1.625 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.602e-05/0.00542, allocations: 21.03 kB / 331.2 MB, free: 1.605 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.249e-05/0.005442, allocations: 32.36 kB / 331.3 MB, free: 1.574 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002233/0.005665, allocations: 345.9 kB / 331.6 MB, free: 1.191 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.162e-06/0.005672, allocations: 192 / 331.6 MB, free: 1.191 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.598e-05/0.005687, allocations: 16.38 kB / 331.6 MB, free: 1.176 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.561e-06/0.005693, allocations: 7.938 kB / 331.6 MB, free: 1.168 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.683e-05/0.00579, allocations: 92.47 kB / 331.7 MB, free: 1.078 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008065/0.006596, allocations: 0.8698 MB / 332.6 MB, free: 164 kB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002227/0.006819, allocations: 197.9 kB / 332.8 MB, free: 15.96 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.559e-05/0.006895, allocations: 82.45 kB / 332.9 MB, free: 15.88 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.283e-05/0.006908, allocations: 4.234 kB / 332.9 MB, free: 15.88 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.781e-05/0.006925, allocations: 42.73 kB / 332.9 MB, free: 15.82 MB / 314.7 MB Notification: Performance of pre-optimization done (n=27): time 9.62e-07/0.006926, allocations: 0 / 332.9 MB, free: 15.82 MB / 314.7 MB Notification: Performance of matching and sorting (n=27): time 0.0008499/0.007776, allocations: 0.5362 MB / 333.5 MB, free: 15.28 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.984e-05/0.007796, allocations: 55.41 kB / 333.5 MB, free: 15.21 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.646e-05/0.007892, allocations: 200.3 kB / 333.7 MB, free: 15 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.416e-05/0.007907, allocations: 25.7 kB / 333.7 MB, free: 14.97 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.63e-05/0.007963, allocations: 172.5 kB / 333.9 MB, free: 14.8 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.434e-05/0.008007, allocations: 91.16 kB / 334 MB, free: 14.71 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.031e-05/0.008058, allocations: 57.62 kB / 334 MB, free: 14.65 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.372e-05/0.008131, allocations: 342.7 kB / 334.4 MB, free: 14.3 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.633e-05/0.008168, allocations: 28.58 kB / 334.4 MB, free: 14.28 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.905e-05/0.008227, allocations: 80.86 kB / 334.5 MB, free: 14.18 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001041/0.008331, allocations: 132.2 kB / 334.6 MB, free: 14.04 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.402e-06/0.008332, allocations: 0 / 334.6 MB, free: 14.04 MB / 314.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.000285/0.008617, allocations: 270.9 kB / 334.9 MB, free: 13.76 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.704e-06/0.008625, allocations: 4 kB / 334.9 MB, free: 13.76 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.745e-06/0.008628, allocations: 0 / 334.9 MB, free: 13.76 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003764/0.009004, allocations: 173.6 kB / 335.1 MB, free: 13.58 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.561e-05/0.00907, allocations: 31.98 kB / 335.1 MB, free: 13.55 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00152/0.01059, allocations: 2.748 MB / 337.8 MB, free: 10.62 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.381e-05/0.01066, allocations: 27.78 kB / 337.9 MB, free: 10.6 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.985e-06/0.01067, allocations: 4 kB / 337.9 MB, free: 10.59 MB / 314.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 6.992e-05/0.01074, allocations: 125.9 kB / 338 MB, free: 10.46 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.236e-05/0.01077, allocations: 28 kB / 338 MB, free: 10.43 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.129e-05/0.01081, allocations: 34.59 kB / 338 MB, free: 10.4 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.082e-06/0.01081, allocations: 7.984 kB / 338.1 MB, free: 10.39 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.312e-06/0.01082, allocations: 7.938 kB / 338.1 MB, free: 10.38 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.677e-06/0.01082, allocations: 0 / 338.1 MB, free: 10.38 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005439/0.01137, allocations: 0.4886 MB / 338.5 MB, free: 9.863 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.413e-06/0.01137, allocations: 0 / 338.5 MB, free: 9.863 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.861e-05/0.01141, allocations: 15.98 kB / 338.6 MB, free: 9.848 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004205/0.01183, allocations: 173.9 kB / 338.7 MB, free: 9.672 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.927e-06/0.01183, allocations: 4 kB / 338.7 MB, free: 9.668 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001393/0.01323, allocations: 2.753 MB / 341.5 MB, free: 6.742 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.62e-07/0.01323, allocations: 0 / 341.5 MB, free: 6.742 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003018/0.01353, allocations: 339 kB / 341.8 MB, free: 6.391 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.389e-05/0.01359, allocations: 35.73 kB / 341.9 MB, free: 6.355 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.604e-05/0.01361, allocations: 7.938 kB / 341.9 MB, free: 6.348 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.799e-05/0.0137, allocations: 23.98 kB / 341.9 MB, free: 6.324 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.29e-05/0.01374, allocations: 27.94 kB / 341.9 MB, free: 6.297 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.777e-06/0.01375, allocations: 4 kB / 341.9 MB, free: 6.293 MB / 314.7 MB Notification: Performance of sorting global known variables: time 4.2e-05/0.01379, allocations: 64.78 kB / 342 MB, free: 6.227 MB / 314.7 MB Notification: Performance of sort global known variables: time 8e-08/0.01379, allocations: 0 / 342 MB, free: 6.227 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0002372/0.01403, allocations: 111.8 kB / 342.1 MB, free: 6.117 MB / 314.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 5.939e-05/0.01409, allocations: 88.36 kB / 342.2 MB, free: 6.023 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0003864/0.01447, allocations: 425.9 kB / 342.6 MB, free: 5.582 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.316e-06/0.01448, allocations: 4.062 kB / 342.6 MB, free: 5.578 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000236/0.01471, allocations: 385.7 kB / 343 MB, free: 5.172 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001733/0.01489, allocations: 41.36 kB / 343 MB, free: 5.133 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006424/0.01553, allocations: 481.1 kB / 343.5 MB, free: 4.633 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.16e-05/0.01559, allocations: 96.38 kB / 343.6 MB, free: 4.52 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 4.712e-05/0.01564, allocations: 18.3 kB / 343.6 MB, free: 4.496 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001128/0.01575, allocations: 95.34 kB / 343.7 MB, free: 4.402 MB / 314.7 MB Notification: Performance of SimCode: time 4.1e-07/0.01575, allocations: 0 / 343.7 MB, free: 4.402 MB / 314.7 MB Notification: Performance of Templates: time 0.006387/0.02214, allocations: 4.985 MB / 348.7 MB, free: 15.52 MB / 330.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.sim & ./ModelicaTest_4.1.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Electrical/Analog/Ideal/IdealTwoWaySwitches/IdealTwoWaySwitches.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.929079039953649]