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.001431/0.001431, allocations: 88.28 kB / 21.44 MB, free: 3.125 MB / 18.57 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.00748/0.00748, allocations: 150.3 kB / 24.69 MB, free: 8.891 MB / 18.57 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 0.9492/0.9492, allocations: 177 MB / 204.9 MB, free: 5.789 MB / 186.7 MB " [Timeout remaining time 179] 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.251/0.251, allocations: 34.24 MB / 295.6 MB, free: 0.6875 MB / 266.7 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 1.242e-06/1.242e-06, allocations: 0 / 443.4 MB, free: 1.094 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.707e-05/1.831e-05, allocations: 6.219 kB / 443.4 MB, free: 1.086 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches): time 0.1701/0.1702, allocations: 2.727 MB / 446.1 MB, free: 43.03 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007239/0.1709, allocations: 0.6557 MB / 446.8 MB, free: 42.76 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00011/0.171, allocations: 9.812 kB / 446.8 MB, free: 42.76 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001091/0.1711, allocations: 57.42 kB / 446.9 MB, free: 42.73 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 8.407e-05/0.1712, allocations: 91.64 kB / 446.9 MB, free: 42.66 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001096/0.1713, allocations: 101.1 kB / 447 MB, free: 42.65 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002091/0.1715, allocations: 431 kB / 447.5 MB, free: 42.49 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001664/0.1717, allocations: 81.86 kB / 447.5 MB, free: 42.46 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001148/0.1718, allocations: 232.8 kB / 447.8 MB, free: 42.36 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001017/0.1719, allocations: 118 kB / 447.9 MB, free: 42.32 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 3.765e-05/0.1719, allocations: 37.19 kB / 447.9 MB, free: 42.32 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.659e-05/0.172, allocations: 33.22 kB / 448 MB, free: 42.32 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 3.052e-05/0.172, allocations: 73.11 kB / 448 MB, free: 42.27 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 6.403e-05/0.172, allocations: 123.6 kB / 448.1 MB, free: 42.22 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000226/0.1723, allocations: 405.1 kB / 448.5 MB, free: 42.07 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.216e-06/0.1723, allocations: 6.281 kB / 448.5 MB, free: 42.07 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.182e-06/0.1723, allocations: 0 / 448.5 MB, free: 42.07 MB / 410.7 MB Notification: Performance of Transformations before backend: time 5.28e-06/0.1723, allocations: 0 / 448.5 MB, free: 42.07 MB / 410.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.000541/0.1728, allocations: 0.5545 MB / 449.1 MB, free: 41.67 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.314e-05/0.1729, allocations: 8.719 kB / 449.1 MB, free: 41.67 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.391e-05/0.1729, allocations: 41.02 kB / 449.2 MB, free: 41.65 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002296/0.1731, allocations: 214.7 kB / 449.4 MB, free: 41.46 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.461e-05/0.1731, allocations: 20.75 kB / 449.4 MB, free: 41.46 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.094e-05/0.1732, allocations: 29.88 kB / 449.4 MB, free: 41.45 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000322/0.1735, allocations: 435.5 kB / 449.8 MB, free: 41.16 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.818e-06/0.1735, allocations: 192 / 449.8 MB, free: 41.16 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.989e-05/0.1735, allocations: 11.16 kB / 449.8 MB, free: 41.15 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.155e-06/0.1735, allocations: 13.97 kB / 449.9 MB, free: 41.14 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000247/0.1738, allocations: 237.1 kB / 450.1 MB, free: 41.07 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009167/0.1747, allocations: 1.085 MB / 451.2 MB, free: 40.32 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003601/0.1751, allocations: 285 kB / 451.5 MB, free: 40.2 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001528/0.1752, allocations: 139.8 kB / 451.6 MB, free: 40.15 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.327e-05/0.1752, allocations: 3.109 kB / 451.6 MB, free: 40.15 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.35e-05/0.1752, allocations: 44.17 kB / 451.6 MB, free: 40.11 MB / 410.7 MB Notification: Performance of pre-optimization done (n=27): time 1.022e-06/0.1752, allocations: 0 / 451.6 MB, free: 40.11 MB / 410.7 MB Notification: Performance of matching and sorting (n=27): time 0.001295/0.1765, allocations: 0.8538 MB / 452.5 MB, free: 39.89 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.565e-05/0.1765, allocations: 54.34 kB / 452.5 MB, free: 39.83 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001052/0.1766, allocations: 229.7 kB / 452.8 MB, free: 39.68 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.157e-05/0.1767, allocations: 29.7 kB / 452.8 MB, free: 39.64 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.345e-05/0.1767, allocations: 179.3 kB / 453 MB, free: 39.5 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.769e-05/0.1767, allocations: 94.7 kB / 453.1 MB, free: 39.42 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.86e-05/0.1768, allocations: 57.17 kB / 453.1 MB, free: 39.38 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 2.915e-05/0.1768, allocations: 331.2 kB / 453.4 MB, free: 39.06 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001144/0.1769, allocations: 100.1 kB / 453.5 MB, free: 39.03 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001233/0.177, allocations: 156 kB / 453.7 MB, free: 38.94 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002281/0.1773, allocations: 246.4 kB / 453.9 MB, free: 38.82 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.402e-06/0.1773, allocations: 0 / 453.9 MB, free: 38.82 MB / 410.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0005193/0.1778, allocations: 490 kB / 454.4 MB, free: 38.62 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.074e-05/0.1778, allocations: 5.781 kB / 454.4 MB, free: 38.62 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.388e-06/0.1778, allocations: 0 / 454.4 MB, free: 38.62 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004324/0.1782, allocations: 233 kB / 454.6 MB, free: 38.58 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.256e-05/0.1783, allocations: 37.77 kB / 454.7 MB, free: 38.57 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001712/0.18, allocations: 3.402 MB / 458.1 MB, free: 35.75 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.933e-05/0.1801, allocations: 33.55 kB / 458.1 MB, free: 35.73 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.031e-05/0.1801, allocations: 12.22 kB / 458.1 MB, free: 35.73 MB / 410.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 7.003e-05/0.1802, allocations: 144.4 kB / 458.3 MB, free: 35.59 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.403e-05/0.1802, allocations: 26.2 kB / 458.3 MB, free: 35.57 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.25e-05/0.1802, allocations: 35.95 kB / 458.3 MB, free: 35.55 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.583e-06/0.1802, allocations: 2.594 kB / 458.3 MB, free: 35.55 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.055e-06/0.1802, allocations: 2.969 kB / 458.3 MB, free: 35.55 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.517e-06/0.1802, allocations: 3.281 kB / 458.3 MB, free: 35.55 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006974/0.1809, allocations: 0.7709 MB / 459.1 MB, free: 35.11 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/0.1809, allocations: 3.938 kB / 459.1 MB, free: 35.1 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.567e-05/0.181, allocations: 22.22 kB / 459.1 MB, free: 35.09 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003741/0.1814, allocations: 238.4 kB / 459.4 MB, free: 35.04 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.839e-06/0.1814, allocations: 4 kB / 459.4 MB, free: 35.04 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001547/0.1829, allocations: 3.406 MB / 462.8 MB, free: 32.21 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.91e-07/0.1829, allocations: 0 / 462.8 MB, free: 32.21 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004698/0.1834, allocations: 0.5278 MB / 463.3 MB, free: 31.94 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.759e-05/0.1834, allocations: 39.86 kB / 463.3 MB, free: 31.91 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.25e-05/0.1834, allocations: 4 kB / 463.4 MB, free: 31.91 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.502e-05/0.1835, allocations: 30.36 kB / 463.4 MB, free: 31.9 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.154e-05/0.1836, allocations: 32.14 kB / 463.4 MB, free: 31.89 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.747e-06/0.1836, allocations: 13.84 kB / 463.4 MB, free: 31.89 MB / 410.7 MB Notification: Performance of sorting global known variables: time 5.922e-05/0.1836, allocations: 156.3 kB / 463.6 MB, free: 31.79 MB / 410.7 MB Notification: Performance of sort global known variables: time 5e-08/0.1836, allocations: 3.281 kB / 463.6 MB, free: 31.79 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0002198/0.1839, allocations: 106.4 kB / 463.7 MB, free: 31.77 MB / 410.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 6.344e-05/0.1839, allocations: 98.53 kB / 463.8 MB, free: 31.68 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0004436/0.1844, allocations: 0.534 MB / 464.3 MB, free: 31.35 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.452e-06/0.1844, allocations: 3.188 kB / 464.3 MB, free: 31.35 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002226/0.1846, allocations: 433.2 kB / 464.7 MB, free: 31.04 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002091/0.1848, allocations: 36.19 kB / 464.8 MB, free: 31.02 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004636/0.1853, allocations: 0.528 MB / 465.3 MB, free: 30.68 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.941e-05/0.1853, allocations: 161.6 kB / 465.5 MB, free: 30.6 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.339e-05/0.1854, allocations: 21.16 kB / 465.5 MB, free: 30.59 MB / 410.7 MB Notification: Performance of SimCode: time 4.31e-07/0.1854, allocations: 0 / 465.5 MB, free: 30.59 MB / 410.7 MB Notification: Performance of Templates: time 0.003425/0.1888, allocations: 5.542 MB / 471 MB, free: 30.23 MB / 410.7 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.1.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.319566768594086]