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.001608/0.001608, allocations: 116.9 kB / 19.13 MB, free: 3.922 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.002009/0.002009, allocations: 210.6 kB / 22.08 MB, free: 0.9727 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.47/1.47, allocations: 227.4 MB / 252.3 MB, free: 92 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.269/0.269, allocations: 46.17 MB / 351.8 MB, free: 14.39 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.002356/0.002356, allocations: 77.23 kB / 490.8 MB, free: 27.86 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1392/0.1416, allocations: 62.45 MB / 0.5403 GB, free: 4.188 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches): time 0.004825/0.1465, allocations: 2.923 MB / 0.5432 GB, free: 1.238 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.00147/0.148, allocations: 0.6894 MB / 0.5439 GB, free: 0.543 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001675/0.1482, allocations: 4 kB / 0.5439 GB, free: 0.5391 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002181/0.1484, allocations: 59.44 kB / 0.5439 GB, free: 492 kB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001762/0.1486, allocations: 87.19 kB / 0.544 GB, free: 404 kB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002061/0.1488, allocations: 95.86 kB / 0.5441 GB, free: 308 kB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005565/0.1494, allocations: 418.1 kB / 0.5445 GB, free: 15.89 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002816/0.1497, allocations: 122.9 kB / 0.5446 GB, free: 15.77 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001854/0.1499, allocations: 155.4 kB / 0.5448 GB, free: 15.62 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002504/0.1501, allocations: 167.2 kB / 0.5449 GB, free: 15.45 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 5.777e-05/0.1502, allocations: 32 kB / 0.5449 GB, free: 15.42 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.951e-05/0.1503, allocations: 36 kB / 0.545 GB, free: 15.39 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 9.406e-05/0.1504, allocations: 75.75 kB / 0.5451 GB, free: 15.31 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000175/0.1506, allocations: 163.2 kB / 0.5452 GB, free: 15.15 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000499/0.1511, allocations: 394.4 kB / 0.5456 GB, free: 14.77 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.536e-06/0.1511, allocations: 0 / 0.5456 GB, free: 14.77 MB / 414.1 MB Notification: Performance of FrontEnd: time 4.148e-06/0.1511, allocations: 4 kB / 0.5456 GB, free: 14.76 MB / 414.1 MB Notification: Performance of Transformations before backend: time 7.324e-06/0.1511, allocations: 3.938 kB / 0.5456 GB, free: 14.76 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.001187/0.1523, allocations: 0.6429 MB / 0.5462 GB, free: 14.07 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.485e-05/0.1523, allocations: 9.109 kB / 0.5462 GB, free: 14.06 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.771e-05/0.1524, allocations: 36.75 kB / 0.5463 GB, free: 14.02 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000444/0.1529, allocations: 268.4 kB / 0.5465 GB, free: 13.72 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.9e-05/0.1529, allocations: 20.94 kB / 0.5465 GB, free: 13.7 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.542e-05/0.153, allocations: 24.38 kB / 0.5466 GB, free: 13.68 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006326/0.1536, allocations: 332.8 kB / 0.5469 GB, free: 13.34 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.416e-05/0.1536, allocations: 3.938 kB / 0.5469 GB, free: 13.33 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.369e-05/0.1537, allocations: 12 kB / 0.5469 GB, free: 13.32 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.035e-05/0.1537, allocations: 8 kB / 0.5469 GB, free: 13.31 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005859/0.1543, allocations: 238.1 kB / 0.5471 GB, free: 13.08 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002295/0.1566, allocations: 1.258 MB / 0.5484 GB, free: 11.74 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008621/0.1575, allocations: 471.8 kB / 0.5488 GB, free: 11.24 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003866/0.1579, allocations: 161.3 kB / 0.549 GB, free: 11.08 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.041e-05/0.1579, allocations: 4.234 kB / 0.549 GB, free: 11.07 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.217e-05/0.158, allocations: 38.8 kB / 0.549 GB, free: 11.03 MB / 414.1 MB Notification: Performance of pre-optimization done (n=27): time 1.763e-06/0.158, allocations: 0 / 0.549 GB, free: 11.03 MB / 414.1 MB Notification: Performance of matching and sorting (n=27): time 0.003321/0.1613, allocations: 1.02 MB / 0.55 GB, free: 9.961 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.553e-05/0.1613, allocations: 51.41 kB / 0.55 GB, free: 9.898 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003028/0.1617, allocations: 245 kB / 0.5503 GB, free: 9.648 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 4.087e-05/0.1617, allocations: 33.7 kB / 0.5503 GB, free: 9.609 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001455/0.1619, allocations: 164.6 kB / 0.5505 GB, free: 9.445 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.724e-05/0.162, allocations: 99.16 kB / 0.5506 GB, free: 9.348 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001234/0.1621, allocations: 49.7 kB / 0.5506 GB, free: 9.293 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002081/0.1623, allocations: 342.8 kB / 0.5509 GB, free: 8.949 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002587/0.1626, allocations: 95.95 kB / 0.551 GB, free: 8.855 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003135/0.1629, allocations: 155.9 kB / 0.5512 GB, free: 8.688 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005419/0.1634, allocations: 248.1 kB / 0.5514 GB, free: 8.43 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.939e-06/0.1635, allocations: 4 kB / 0.5514 GB, free: 8.426 MB / 414.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001207/0.1647, allocations: 0.4913 MB / 0.5519 GB, free: 7.922 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.445e-05/0.1647, allocations: 8.047 kB / 0.5519 GB, free: 7.914 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.008e-05/0.1647, allocations: 8 kB / 0.5519 GB, free: 7.906 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001074/0.1658, allocations: 233.5 kB / 0.5521 GB, free: 7.672 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001498/0.166, allocations: 27.94 kB / 0.5522 GB, free: 7.645 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004913/0.1709, allocations: 3.685 MB / 0.5558 GB, free: 3.68 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002393/0.1711, allocations: 35.8 kB / 0.5558 GB, free: 3.645 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.428e-05/0.1712, allocations: 12 kB / 0.5558 GB, free: 3.633 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.0002056/0.1714, allocations: 144.5 kB / 0.5559 GB, free: 3.484 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.023e-05/0.1715, allocations: 31.86 kB / 0.556 GB, free: 3.453 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.692e-05/0.1715, allocations: 30.86 kB / 0.556 GB, free: 3.422 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.911e-06/0.1716, allocations: 4 kB / 0.556 GB, free: 3.418 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.346e-05/0.1716, allocations: 3.938 kB / 0.556 GB, free: 3.414 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.015e-06/0.1716, allocations: 3.984 kB / 0.556 GB, free: 3.41 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001705/0.1733, allocations: 0.8875 MB / 0.5569 GB, free: 2.461 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.815e-06/0.1733, allocations: 0 / 0.5569 GB, free: 2.461 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.132e-05/0.1734, allocations: 16 kB / 0.5569 GB, free: 2.445 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009221/0.1743, allocations: 237.4 kB / 0.5571 GB, free: 2.207 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.842e-05/0.1744, allocations: 12 kB / 0.5571 GB, free: 2.195 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004962/0.1793, allocations: 3.689 MB / 0.5607 GB, free: 14.23 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.713e-06/0.1794, allocations: 0 / 0.5607 GB, free: 14.23 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001224/0.1806, allocations: 0.5329 MB / 0.5613 GB, free: 13.67 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001524/0.1808, allocations: 132.8 kB / 0.5614 GB, free: 13.52 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.123e-05/0.1808, allocations: 4 kB / 0.5614 GB, free: 13.52 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002322/0.181, allocations: 27.98 kB / 0.5614 GB, free: 13.49 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.661e-05/0.1811, allocations: 27.95 kB / 0.5614 GB, free: 13.46 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.197e-05/0.1812, allocations: 12 kB / 0.5615 GB, free: 13.45 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.000186/0.1814, allocations: 172.5 kB / 0.5616 GB, free: 13.29 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.1814, allocations: 0 / 0.5616 GB, free: 13.29 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0004645/0.1818, allocations: 111.8 kB / 0.5617 GB, free: 13.18 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.0001421/0.182, allocations: 107.2 kB / 0.5618 GB, free: 13.06 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001113/0.1831, allocations: 0.5558 MB / 0.5624 GB, free: 12.48 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.1831, allocations: 0 / 0.5624 GB, free: 12.48 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006547/0.1838, allocations: 444.9 kB / 0.5628 GB, free: 12.02 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003983/0.1842, allocations: 52.66 kB / 0.5628 GB, free: 11.97 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001129/0.1853, allocations: 0.5441 MB / 0.5634 GB, free: 11.39 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005384/0.1859, allocations: 0.7677 MB / 0.5641 GB, free: 10.6 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.097e-05/0.186, allocations: 19.44 kB / 0.5641 GB, free: 10.58 MB / 430.1 MB Notification: Performance of SimCode: time 2.6e-07/0.186, allocations: 4 kB / 0.5641 GB, free: 10.58 MB / 430.1 MB Notification: Performance of Templates: time 0.009309/0.1953, allocations: 5.581 MB / 0.5696 GB, free: 5.004 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/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Electrical/Analog/Ideal/IdealTwoWaySwitches/IdealTwoWaySwitches.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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: 8.659079676028341]