Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001736/0.001736, allocations: 113.1 kB / 21.85 MB, free: 68 kB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002032/0.002032, allocations: 208.4 kB / 25.12 MB, free: 3.59 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.496/1.496, allocations: 230.4 MB / 258.7 MB, free: 8.066 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2462/0.2462, allocations: 46.93 MB / 362 MB, free: 4.23 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo) 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: 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-beta.om_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-beta.om_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches") [Timeout 660] "Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002383/0.002383, allocations: 83.86 kB / 0.4978 GB, free: 7.391 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3387/0.3411, allocations: 66.07 MB / 0.5623 GB, free: 4.277 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches): time 0.004292/0.3453, allocations: 2.929 MB / 0.5652 GB, free: 1.336 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001277/0.3466, allocations: 0.7 MB / 0.5659 GB, free: 0.6328 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001395/0.3468, allocations: 4 kB / 0.5659 GB, free: 0.6289 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001616/0.3469, allocations: 55.44 kB / 0.5659 GB, free: 0.5742 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001624/0.3471, allocations: 87.19 kB / 0.566 GB, free: 500 kB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000187/0.3473, allocations: 99.8 kB / 0.5661 GB, free: 400 kB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004723/0.3477, allocations: 418.2 kB / 0.5665 GB, free: 15.98 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001983/0.3479, allocations: 91.27 kB / 0.5666 GB, free: 15.89 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001714/0.3481, allocations: 159.5 kB / 0.5667 GB, free: 15.73 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000219/0.3483, allocations: 163.3 kB / 0.5669 GB, free: 15.57 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 5.433e-05/0.3484, allocations: 36 kB / 0.5669 GB, free: 15.54 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.122e-05/0.3484, allocations: 32 kB / 0.567 GB, free: 15.51 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 7.893e-05/0.3485, allocations: 71.77 kB / 0.567 GB, free: 15.44 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001727/0.3487, allocations: 175.2 kB / 0.5672 GB, free: 15.27 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004386/0.3491, allocations: 394.1 kB / 0.5676 GB, free: 14.88 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.998e-06/0.3491, allocations: 0 / 0.5676 GB, free: 14.88 MB / 414.1 MB Notification: Performance of FrontEnd: time 3.286e-06/0.3491, allocations: 4 kB / 0.5676 GB, free: 14.88 MB / 414.1 MB Notification: Performance of Transformations before backend: time 6.602e-06/0.3492, allocations: 4 kB / 0.5676 GB, free: 14.88 MB / 414.1 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.001058/0.3502, allocations: 0.5677 MB / 0.5681 GB, free: 14.28 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.686e-05/0.3502, allocations: 8.031 kB / 0.5681 GB, free: 14.27 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.469e-05/0.3503, allocations: 40.75 kB / 0.5682 GB, free: 14.23 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000415/0.3507, allocations: 207.5 kB / 0.5684 GB, free: 14 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.676e-05/0.3508, allocations: 21.03 kB / 0.5684 GB, free: 13.98 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.603e-05/0.3508, allocations: 28.38 kB / 0.5684 GB, free: 13.95 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006837/0.3515, allocations: 444.9 kB / 0.5688 GB, free: 13.48 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.488e-05/0.3515, allocations: 0 / 0.5688 GB, free: 13.48 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.958e-05/0.3515, allocations: 8 kB / 0.5689 GB, free: 13.47 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.008e-05/0.3515, allocations: 8 kB / 0.5689 GB, free: 13.46 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005161/0.3521, allocations: 238.5 kB / 0.5691 GB, free: 13.23 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002124/0.3542, allocations: 1.212 MB / 0.5703 GB, free: 11.95 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006862/0.3549, allocations: 290.8 kB / 0.5705 GB, free: 11.65 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003022/0.3552, allocations: 137.3 kB / 0.5707 GB, free: 11.52 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.596e-05/0.3552, allocations: 8.172 kB / 0.5707 GB, free: 11.51 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.469e-05/0.3552, allocations: 42.8 kB / 0.5707 GB, free: 11.46 MB / 414.1 MB Notification: Performance of pre-optimization done (n=27): time 2.084e-06/0.3552, allocations: 0 / 0.5707 GB, free: 11.46 MB / 414.1 MB Notification: Performance of matching and sorting (n=27): time 0.002766/0.358, allocations: 0.8562 MB / 0.5716 GB, free: 10.59 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.321e-05/0.358, allocations: 55.41 kB / 0.5716 GB, free: 10.52 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002933/0.3583, allocations: 241.1 kB / 0.5718 GB, free: 10.27 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.394e-05/0.3584, allocations: 33.7 kB / 0.5719 GB, free: 10.23 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001388/0.3585, allocations: 172.6 kB / 0.572 GB, free: 10.06 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.004e-05/0.3586, allocations: 95.17 kB / 0.5721 GB, free: 9.969 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001/0.3587, allocations: 57.64 kB / 0.5722 GB, free: 9.906 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001548/0.3588, allocations: 326.8 kB / 0.5725 GB, free: 9.578 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002284/0.3591, allocations: 103.9 kB / 0.5726 GB, free: 9.477 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002662/0.3593, allocations: 155.9 kB / 0.5727 GB, free: 9.309 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004827/0.3598, allocations: 248.1 kB / 0.573 GB, free: 9.051 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.554e-06/0.3598, allocations: 0 / 0.573 GB, free: 9.051 MB / 414.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.00111/0.3609, allocations: 486.7 kB / 0.5734 GB, free: 8.562 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.93e-05/0.361, allocations: 8 kB / 0.5735 GB, free: 8.555 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.542e-06/0.361, allocations: 4.062 kB / 0.5735 GB, free: 8.551 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009347/0.3619, allocations: 241.4 kB / 0.5737 GB, free: 8.309 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000153/0.3621, allocations: 31.92 kB / 0.5737 GB, free: 8.277 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004457/0.3665, allocations: 3.482 MB / 0.5771 GB, free: 4.57 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002302/0.3667, allocations: 31.86 kB / 0.5772 GB, free: 4.539 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.982e-05/0.3668, allocations: 8 kB / 0.5772 GB, free: 4.531 MB / 414.1 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.0001851/0.3669, allocations: 149.8 kB / 0.5773 GB, free: 4.375 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.474e-05/0.367, allocations: 23.86 kB / 0.5773 GB, free: 4.352 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.229e-05/0.3671, allocations: 38.95 kB / 0.5774 GB, free: 4.309 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.903e-06/0.3671, allocations: 3.938 kB / 0.5774 GB, free: 4.305 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.348e-05/0.3671, allocations: 7.938 kB / 0.5774 GB, free: 4.297 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.54e-06/0.3671, allocations: 4 kB / 0.5774 GB, free: 4.293 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001655/0.3688, allocations: 0.852 MB / 0.5782 GB, free: 3.387 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.196e-06/0.3688, allocations: 0 / 0.5782 GB, free: 3.387 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.542e-05/0.3688, allocations: 23.92 kB / 0.5782 GB, free: 3.363 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008394/0.3697, allocations: 241.4 kB / 0.5785 GB, free: 3.121 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.01e-05/0.3697, allocations: 4 kB / 0.5785 GB, free: 3.117 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004329/0.374, allocations: 3.466 MB / 0.5818 GB, free: 15.42 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.374, allocations: 4.141 kB / 0.5819 GB, free: 15.42 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001099/0.3751, allocations: 0.529 MB / 0.5824 GB, free: 14.86 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000121/0.3753, allocations: 51.72 kB / 0.5824 GB, free: 14.81 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.915e-05/0.3753, allocations: 0 / 0.5824 GB, free: 14.81 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002161/0.3755, allocations: 27.98 kB / 0.5824 GB, free: 14.79 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000104/0.3756, allocations: 39.88 kB / 0.5825 GB, free: 14.75 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.567e-05/0.3756, allocations: 4 kB / 0.5825 GB, free: 14.74 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0001843/0.3758, allocations: 172.5 kB / 0.5827 GB, free: 14.58 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3758, allocations: 3.938 kB / 0.5827 GB, free: 14.57 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0005009/0.3763, allocations: 111.8 kB / 0.5828 GB, free: 14.46 MB / 430.1 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.0001428/0.3764, allocations: 107.2 kB / 0.5829 GB, free: 14.35 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001126/0.3776, allocations: 0.5365 MB / 0.5834 GB, free: 13.79 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.544e-06/0.3776, allocations: 0 / 0.5834 GB, free: 13.79 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006284/0.3782, allocations: 425 kB / 0.5838 GB, free: 13.35 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003814/0.3786, allocations: 52.47 kB / 0.5838 GB, free: 13.3 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009925/0.3796, allocations: 0.5207 MB / 0.5844 GB, free: 12.75 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004329/0.38, allocations: 0.7678 MB / 0.5851 GB, free: 11.96 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 8.777e-05/0.3801, allocations: 22.28 kB / 0.5851 GB, free: 11.93 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.513e-05/0.3802, allocations: 19.44 kB / 0.5851 GB, free: 11.91 MB / 430.1 MB Notification: Performance of SimCode: time 9.31e-07/0.3802, allocations: 0 / 0.5851 GB, free: 11.91 MB / 430.1 MB Notification: Performance of Templates: time 0.01004/0.3902, allocations: 4.827 MB / 0.5899 GB, free: 7.129 MB / 430.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.sim & ./ModelicaTest_4.1.0-beta.om_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0-beta.om_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0-beta.om_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Electrical/Analog/Ideal/IdealTwoWaySwitches/IdealTwoWaySwitches.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.430249543162063]