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.001597/0.001597, allocations: 112.8 kB / 19.17 MB, free: 3.914 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.002069/0.002069, allocations: 214.6 kB / 22.13 MB, free: 0.9609 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.494/1.494, allocations: 230.2 MB / 255.2 MB, free: 15.24 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.2363/0.2363, allocations: 46.89 MB / 358.1 MB, free: 10.51 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.003259/0.003259, allocations: 83.88 kB / 0.4924 GB, free: 8.039 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1621/0.1654, allocations: 65.99 MB / 0.5568 GB, free: 5.926 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches): time 0.00447/0.1698, allocations: 2.927 MB / 0.5597 GB, free: 2.977 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.001294/0.1711, allocations: 0.6934 MB / 0.5603 GB, free: 2.277 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001371/0.1713, allocations: 4 kB / 0.5603 GB, free: 2.273 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001798/0.1715, allocations: 55.44 kB / 0.5604 GB, free: 2.219 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001731/0.1716, allocations: 91.12 kB / 0.5605 GB, free: 2.129 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001913/0.1718, allocations: 99.86 kB / 0.5606 GB, free: 2.031 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004718/0.1723, allocations: 418 kB / 0.561 GB, free: 1.621 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002278/0.1725, allocations: 98.91 kB / 0.5611 GB, free: 1.523 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001716/0.1727, allocations: 143.6 kB / 0.5612 GB, free: 1.383 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000233/0.1729, allocations: 167.3 kB / 0.5614 GB, free: 1.219 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 5.654e-05/0.173, allocations: 36 kB / 0.5614 GB, free: 1.184 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.983e-05/0.173, allocations: 32 kB / 0.5614 GB, free: 1.152 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 8.112e-05/0.1731, allocations: 75.75 kB / 0.5615 GB, free: 1.078 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001741/0.1733, allocations: 175.1 kB / 0.5617 GB, free: 0.9062 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000463/0.1738, allocations: 390.4 kB / 0.562 GB, free: 0.5234 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.55e-06/0.1738, allocations: 0 / 0.562 GB, free: 0.5234 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.863e-06/0.1738, allocations: 4 kB / 0.562 GB, free: 0.5195 MB / 414.1 MB Notification: Performance of Transformations before backend: time 7.545e-06/0.1738, allocations: 0 / 0.562 GB, free: 0.5195 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.00116/0.1749, allocations: 0.639 MB / 0.5627 GB, free: 15.83 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.227e-05/0.175, allocations: 13.11 kB / 0.5627 GB, free: 15.82 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.678e-05/0.175, allocations: 36.73 kB / 0.5627 GB, free: 15.79 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000408/0.1755, allocations: 276.3 kB / 0.563 GB, free: 15.48 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.211e-05/0.1755, allocations: 20.94 kB / 0.563 GB, free: 15.46 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.372e-05/0.1755, allocations: 24.38 kB / 0.563 GB, free: 15.43 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006139/0.1761, allocations: 324.8 kB / 0.5633 GB, free: 15.1 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.201e-05/0.1762, allocations: 4 kB / 0.5633 GB, free: 15.09 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.027e-05/0.1762, allocations: 8 kB / 0.5633 GB, free: 15.09 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.077e-05/0.1762, allocations: 8 kB / 0.5633 GB, free: 15.08 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000516/0.1767, allocations: 246.1 kB / 0.5636 GB, free: 14.84 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002105/0.1788, allocations: 1.246 MB / 0.5648 GB, free: 13.51 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007824/0.1796, allocations: 449 kB / 0.5652 GB, free: 13.03 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003011/0.1799, allocations: 141.2 kB / 0.5654 GB, free: 12.89 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.838e-05/0.1799, allocations: 4.234 kB / 0.5654 GB, free: 12.88 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.652e-05/0.18, allocations: 38.8 kB / 0.5654 GB, free: 12.84 MB / 430.1 MB Notification: Performance of pre-optimization done (n=27): time 1.412e-06/0.18, allocations: 0 / 0.5654 GB, free: 12.84 MB / 430.1 MB Notification: Performance of matching and sorting (n=27): time 0.003019/0.183, allocations: 1.013 MB / 0.5664 GB, free: 11.78 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.784e-05/0.183, allocations: 55.41 kB / 0.5664 GB, free: 11.71 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002791/0.1833, allocations: 245 kB / 0.5667 GB, free: 11.46 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 3.045e-05/0.1833, allocations: 33.7 kB / 0.5667 GB, free: 11.42 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001297/0.1835, allocations: 164.6 kB / 0.5669 GB, free: 11.26 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.525e-05/0.1836, allocations: 99.11 kB / 0.567 GB, free: 11.16 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.834e-05/0.1836, allocations: 53.7 kB / 0.567 GB, free: 11.1 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001567/0.1838, allocations: 330.8 kB / 0.5673 GB, free: 10.77 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002339/0.184, allocations: 99.95 kB / 0.5674 GB, free: 10.67 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002685/0.1843, allocations: 155.9 kB / 0.5676 GB, free: 10.5 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004797/0.1848, allocations: 252.1 kB / 0.5678 GB, free: 10.24 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.996e-06/0.1848, allocations: 0 / 0.5678 GB, free: 10.24 MB / 430.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001158/0.1859, allocations: 491.2 kB / 0.5683 GB, free: 9.75 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.977e-05/0.186, allocations: 5.781 kB / 0.5683 GB, free: 9.746 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.893e-06/0.186, allocations: 8 kB / 0.5683 GB, free: 9.738 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001003/0.187, allocations: 237.5 kB / 0.5685 GB, free: 9.5 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001563/0.1871, allocations: 31.98 kB / 0.5685 GB, free: 9.469 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004483/0.1916, allocations: 3.692 MB / 0.5722 GB, free: 5.496 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002246/0.1918, allocations: 35.77 kB / 0.5722 GB, free: 5.461 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.993e-05/0.1919, allocations: 8 kB / 0.5722 GB, free: 5.453 MB / 430.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.0001805/0.192, allocations: 137.9 kB / 0.5723 GB, free: 5.309 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.584e-05/0.1921, allocations: 27.86 kB / 0.5724 GB, free: 5.281 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.472e-05/0.1922, allocations: 34.86 kB / 0.5724 GB, free: 5.246 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.248e-06/0.1922, allocations: 4 kB / 0.5724 GB, free: 5.242 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.275e-05/0.1922, allocations: 7.938 kB / 0.5724 GB, free: 5.234 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.118e-06/0.1922, allocations: 0 / 0.5724 GB, free: 5.234 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001704/0.1939, allocations: 0.8875 MB / 0.5733 GB, free: 4.285 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.725e-06/0.1939, allocations: 0 / 0.5733 GB, free: 4.285 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.973e-05/0.194, allocations: 12 kB / 0.5733 GB, free: 4.273 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008883/0.1949, allocations: 245.9 kB / 0.5735 GB, free: 4.027 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.546e-05/0.1949, allocations: 0 / 0.5735 GB, free: 4.027 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00448/0.1994, allocations: 3.7 MB / 0.5771 GB, free: 48 kB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/0.1994, allocations: 480 / 0.5771 GB, free: 48 kB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001159/0.2005, allocations: 0.5213 MB / 0.5776 GB, free: 15.5 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001448/0.2007, allocations: 128.8 kB / 0.5778 GB, free: 15.36 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.186e-05/0.2007, allocations: 8 kB / 0.5778 GB, free: 15.35 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000232/0.2009, allocations: 31.92 kB / 0.5778 GB, free: 15.32 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001045/0.201, allocations: 27.95 kB / 0.5778 GB, free: 15.29 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.551e-05/0.2011, allocations: 4 kB / 0.5778 GB, free: 15.29 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.000177/0.2012, allocations: 180.4 kB / 0.578 GB, free: 15.11 MB / 446.1 MB Notification: Performance of sort global known variables: time 6e-08/0.2012, allocations: 0 / 0.578 GB, free: 15.11 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0004821/0.2017, allocations: 111.8 kB / 0.5781 GB, free: 15 MB / 446.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.0001514/0.2019, allocations: 107.2 kB / 0.5782 GB, free: 14.89 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001064/0.2029, allocations: 0.5323 MB / 0.5787 GB, free: 14.33 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.2029, allocations: 0 / 0.5787 GB, free: 14.33 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006321/0.2036, allocations: 429 kB / 0.5791 GB, free: 13.88 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003828/0.204, allocations: 56.45 kB / 0.5792 GB, free: 13.83 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001032/0.205, allocations: 0.5402 MB / 0.5797 GB, free: 13.25 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004126/0.2054, allocations: 0.7677 MB / 0.5805 GB, free: 12.46 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.109e-05/0.2055, allocations: 19.44 kB / 0.5805 GB, free: 12.44 MB / 446.1 MB Notification: Performance of SimCode: time 4.81e-07/0.2055, allocations: 4 kB / 0.5805 GB, free: 12.44 MB / 446.1 MB Notification: Performance of Templates: time 0.008551/0.214, allocations: 5.598 MB / 0.586 GB, free: 6.848 MB / 446.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 -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_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Electrical/Analog/Ideal/IdealTwoWaySwitches/IdealTwoWaySwitches.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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: 8.66569868195802]