Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_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.001802/0.001802, allocations: 116.3 kB / 18.45 MB, free: 4.617 MB / 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.002388/0.002388, allocations: 205 kB / 21.41 MB, free: 1.664 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.54/1.54, allocations: 227.4 MB / 251.6 MB, free: 288 kB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2522/0.2522, allocations: 46.16 MB / 351.1 MB, free: 14.34 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/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_trunk_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_trunk_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002262/0.002262, allocations: 81.12 kB / 490.2 MB, free: 27.98 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1334/0.1357, allocations: 62.44 MB / 0.5397 GB, free: 4.312 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches): time 0.004441/0.1402, allocations: 2.931 MB / 0.5425 GB, free: 1.355 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001318/0.1415, allocations: 0.6894 MB / 0.5432 GB, free: 0.6602 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001556/0.1417, allocations: 7.938 kB / 0.5432 GB, free: 0.6523 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001908/0.1419, allocations: 55.5 kB / 0.5433 GB, free: 0.5977 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001795/0.1421, allocations: 91.12 kB / 0.5433 GB, free: 0.5078 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002118/0.1423, allocations: 95.86 kB / 0.5434 GB, free: 424 kB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004595/0.1428, allocations: 414.1 kB / 0.5438 GB, free: 8 kB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002708/0.1431, allocations: 115 kB / 0.5439 GB, free: 15.89 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001838/0.1433, allocations: 151.5 kB / 0.5441 GB, free: 15.74 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002265/0.1435, allocations: 175.3 kB / 0.5442 GB, free: 15.57 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 6.19e-05/0.1436, allocations: 32 kB / 0.5443 GB, free: 15.54 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.171e-05/0.1436, allocations: 36 kB / 0.5443 GB, free: 15.5 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 7.491e-05/0.1437, allocations: 71.75 kB / 0.5444 GB, free: 15.43 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002054/0.1439, allocations: 163.3 kB / 0.5445 GB, free: 15.27 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004499/0.1444, allocations: 394.4 kB / 0.5449 GB, free: 14.89 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.258e-05/0.1444, allocations: 0 / 0.5449 GB, free: 14.89 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.734e-06/0.1444, allocations: 3.938 kB / 0.5449 GB, free: 14.88 MB / 414.1 MB Notification: Performance of Transformations before backend: time 7.504e-06/0.1444, allocations: 0 / 0.5449 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.001077/0.1455, allocations: 0.6429 MB / 0.5455 GB, free: 14.19 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.917e-05/0.1456, allocations: 17.11 kB / 0.5456 GB, free: 14.18 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.814e-05/0.1456, allocations: 36.69 kB / 0.5456 GB, free: 14.14 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004242/0.1461, allocations: 272.4 kB / 0.5459 GB, free: 13.84 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.234e-05/0.1461, allocations: 20.94 kB / 0.5459 GB, free: 13.82 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.344e-05/0.1461, allocations: 24.38 kB / 0.5459 GB, free: 13.8 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006493/0.1468, allocations: 332.8 kB / 0.5462 GB, free: 13.45 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.11e-05/0.1468, allocations: 0 / 0.5462 GB, free: 13.45 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.512e-05/0.1469, allocations: 15.94 kB / 0.5462 GB, free: 13.44 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.163e-05/0.1469, allocations: 8 kB / 0.5462 GB, free: 13.43 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005342/0.1474, allocations: 246.1 kB / 0.5465 GB, free: 13.19 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002217/0.1497, allocations: 1.25 MB / 0.5477 GB, free: 11.86 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008641/0.1505, allocations: 473 kB / 0.5481 GB, free: 11.35 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003652/0.1509, allocations: 167.2 kB / 0.5483 GB, free: 11.19 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.288e-05/0.1509, allocations: 240 / 0.5483 GB, free: 11.19 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.562e-05/0.151, allocations: 38.8 kB / 0.5483 GB, free: 11.14 MB / 414.1 MB Notification: Performance of pre-optimization done (n=27): time 1.483e-06/0.151, allocations: 0 / 0.5483 GB, free: 11.14 MB / 414.1 MB Notification: Performance of matching and sorting (n=27): time 0.003186/0.1542, allocations: 1.016 MB / 0.5493 GB, free: 10.08 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.127e-05/0.1543, allocations: 55.41 kB / 0.5494 GB, free: 10.01 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002978/0.1546, allocations: 244.9 kB / 0.5496 GB, free: 9.762 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.296e-05/0.1546, allocations: 33.7 kB / 0.5497 GB, free: 9.723 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001351/0.1548, allocations: 168.6 kB / 0.5498 GB, free: 9.555 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001016/0.1549, allocations: 95.17 kB / 0.5499 GB, free: 9.461 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.924e-05/0.155, allocations: 53.7 kB / 0.55 GB, free: 9.402 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001621/0.1552, allocations: 330.8 kB / 0.5503 GB, free: 9.07 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002505/0.1554, allocations: 99.94 kB / 0.5504 GB, free: 8.973 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002857/0.1557, allocations: 163.8 kB / 0.5505 GB, free: 8.797 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004933/0.1562, allocations: 248.2 kB / 0.5508 GB, free: 8.539 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.644e-06/0.1562, allocations: 0 / 0.5508 GB, free: 8.539 MB / 414.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001175/0.1574, allocations: 495.2 kB / 0.5512 GB, free: 8.043 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.259e-05/0.1574, allocations: 4 kB / 0.5512 GB, free: 8.039 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.888e-06/0.1574, allocations: 4 kB / 0.5512 GB, free: 8.035 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001008/0.1585, allocations: 237.5 kB / 0.5515 GB, free: 7.797 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001502/0.1586, allocations: 35.92 kB / 0.5515 GB, free: 7.762 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00493/0.1636, allocations: 3.692 MB / 0.5551 GB, free: 3.789 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002858/0.1639, allocations: 35.77 kB / 0.5551 GB, free: 3.754 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.251e-05/0.1639, allocations: 8 kB / 0.5552 GB, free: 3.746 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.0002711/0.1642, allocations: 137.8 kB / 0.5553 GB, free: 3.602 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.093e-05/0.1643, allocations: 31.86 kB / 0.5553 GB, free: 3.57 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.555e-05/0.1644, allocations: 34.86 kB / 0.5553 GB, free: 3.535 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.661e-06/0.1644, allocations: 4 kB / 0.5553 GB, free: 3.531 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.848e-05/0.1644, allocations: 3.938 kB / 0.5554 GB, free: 3.527 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.172e-06/0.1644, allocations: 7.938 kB / 0.5554 GB, free: 3.52 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001973/0.1664, allocations: 0.8797 MB / 0.5562 GB, free: 2.578 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.59e-06/0.1664, allocations: 4 kB / 0.5562 GB, free: 2.574 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.791e-05/0.1665, allocations: 19.92 kB / 0.5562 GB, free: 2.555 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009625/0.1675, allocations: 241.5 kB / 0.5565 GB, free: 2.312 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.734e-05/0.1675, allocations: 4 kB / 0.5565 GB, free: 2.309 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004752/0.1723, allocations: 3.685 MB / 0.5601 GB, free: 14.34 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.944e-06/0.1723, allocations: 4.031 kB / 0.5601 GB, free: 14.34 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001198/0.1735, allocations: 0.5369 MB / 0.5606 GB, free: 13.78 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001625/0.1737, allocations: 124.8 kB / 0.5607 GB, free: 13.64 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.29e-05/0.1737, allocations: 8 kB / 0.5607 GB, free: 13.63 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002323/0.1739, allocations: 23.97 kB / 0.5608 GB, free: 13.61 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001111/0.1741, allocations: 35.91 kB / 0.5608 GB, free: 13.57 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.987e-05/0.1741, allocations: 7.984 kB / 0.5608 GB, free: 13.56 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0002107/0.1743, allocations: 172.5 kB / 0.561 GB, free: 13.4 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1743, allocations: 0 / 0.561 GB, free: 13.4 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0005396/0.1749, allocations: 111.8 kB / 0.5611 GB, free: 13.29 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.0001827/0.175, allocations: 99.25 kB / 0.5612 GB, free: 13.18 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001116/0.1762, allocations: 0.5556 MB / 0.5617 GB, free: 12.6 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.1762, allocations: 0 / 0.5617 GB, free: 12.6 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006369/0.1768, allocations: 449.2 kB / 0.5621 GB, free: 12.14 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003797/0.1772, allocations: 44.02 kB / 0.5622 GB, free: 12.1 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001102/0.1783, allocations: 0.5308 MB / 0.5627 GB, free: 11.54 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005074/0.1788, allocations: 0.7678 MB / 0.5634 GB, free: 10.75 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0001031/0.179, allocations: 22.28 kB / 0.5635 GB, free: 10.72 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.209e-05/0.179, allocations: 19.44 kB / 0.5635 GB, free: 10.7 MB / 430.1 MB Notification: Performance of SimCode: time 3.11e-07/0.179, allocations: 0 / 0.5635 GB, free: 10.7 MB / 430.1 MB Notification: Performance of Templates: time 0.009614/0.1886, allocations: 4.6 MB / 0.568 GB, free: 6.141 MB / 430.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_trunk_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.makefile [Timeout 660] (rm -f ModelicaTest_trunk_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.sim & ./ModelicaTest_trunk_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_trunk_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_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.491239408031106]