Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.00186/0.00186, allocations: 123.4 kB / 17.79 MB, free: 5.285 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002262/0.002262, allocations: 208.2 kB / 20.75 MB, free: 2.336 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.883/1.883, allocations: 230.6 MB / 254.1 MB, free: 15.08 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.261/0.261, allocations: 46.92 MB / 357.1 MB, free: 10.31 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+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/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_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_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00205/0.00205, allocations: 67.89 kB / 0.4914 GB, free: 7.473 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1678/0.1698, allocations: 65.99 MB / 0.5558 GB, free: 5.359 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches): time 0.004806/0.1746, allocations: 2.941 MB / 0.5587 GB, free: 2.398 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.001435/0.1761, allocations: 0.6856 MB / 0.5594 GB, free: 1.707 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001587/0.1762, allocations: 4 kB / 0.5594 GB, free: 1.703 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002013/0.1764, allocations: 55.44 kB / 0.5594 GB, free: 1.648 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001881/0.1766, allocations: 91.19 kB / 0.5595 GB, free: 1.559 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002146/0.1768, allocations: 91.86 kB / 0.5596 GB, free: 1.469 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.00049/0.1773, allocations: 406 kB / 0.56 GB, free: 1.07 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002296/0.1776, allocations: 94.92 kB / 0.5601 GB, free: 0.9766 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001873/0.1777, allocations: 159.5 kB / 0.5602 GB, free: 0.8203 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002361/0.178, allocations: 159.3 kB / 0.5604 GB, free: 0.6641 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 5.754e-05/0.178, allocations: 40 kB / 0.5604 GB, free: 0.625 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.468e-05/0.1781, allocations: 32 kB / 0.5605 GB, free: 0.5938 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 8.056e-05/0.1782, allocations: 75.75 kB / 0.5605 GB, free: 0.5195 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001839/0.1784, allocations: 171.2 kB / 0.5607 GB, free: 360 kB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004829/0.1788, allocations: 390.4 kB / 0.5611 GB, free: 15.97 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.174e-06/0.1788, allocations: 4 kB / 0.5611 GB, free: 15.96 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.873e-06/0.1788, allocations: 4 kB / 0.5611 GB, free: 15.96 MB / 430.1 MB Notification: Performance of Transformations before backend: time 7.815e-06/0.1789, allocations: 0 / 0.5611 GB, free: 15.96 MB / 430.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.001282/0.1801, allocations: 0.639 MB / 0.5617 GB, free: 15.27 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.465e-05/0.1802, allocations: 13.09 kB / 0.5617 GB, free: 15.26 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.66e-05/0.1803, allocations: 36.75 kB / 0.5617 GB, free: 15.23 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005855/0.1809, allocations: 276.3 kB / 0.562 GB, free: 14.92 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.161e-05/0.1809, allocations: 20.94 kB / 0.562 GB, free: 14.9 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.956e-05/0.1809, allocations: 28.38 kB / 0.5621 GB, free: 14.87 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006867/0.1816, allocations: 324.8 kB / 0.5624 GB, free: 14.54 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.837e-05/0.1817, allocations: 7.984 kB / 0.5624 GB, free: 14.53 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.886e-05/0.1817, allocations: 19.98 kB / 0.5624 GB, free: 14.51 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.086e-05/0.1817, allocations: 4 kB / 0.5624 GB, free: 14.5 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005467/0.1823, allocations: 234.1 kB / 0.5626 GB, free: 14.28 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002268/0.1845, allocations: 1.25 MB / 0.5638 GB, free: 12.95 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008933/0.1854, allocations: 449 kB / 0.5643 GB, free: 12.46 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003213/0.1857, allocations: 137.3 kB / 0.5644 GB, free: 12.33 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.212e-05/0.1858, allocations: 4.172 kB / 0.5644 GB, free: 12.32 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.535e-05/0.1858, allocations: 46.73 kB / 0.5645 GB, free: 12.27 MB / 430.1 MB Notification: Performance of pre-optimization done (n=27): time 1.373e-06/0.1858, allocations: 0 / 0.5645 GB, free: 12.27 MB / 430.1 MB Notification: Performance of matching and sorting (n=27): time 0.003256/0.1891, allocations: 1.008 MB / 0.5654 GB, free: 11.21 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.299e-05/0.1891, allocations: 55.41 kB / 0.5655 GB, free: 11.15 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002986/0.1894, allocations: 241 kB / 0.5657 GB, free: 10.9 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 3.24e-05/0.1895, allocations: 33.64 kB / 0.5657 GB, free: 10.86 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001529/0.1896, allocations: 168.6 kB / 0.5659 GB, free: 10.7 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.913e-05/0.1897, allocations: 99.22 kB / 0.566 GB, free: 10.6 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001048/0.1898, allocations: 53.7 kB / 0.5661 GB, free: 10.54 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001815/0.19, allocations: 330.8 kB / 0.5664 GB, free: 10.21 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002596/0.1903, allocations: 99.95 kB / 0.5665 GB, free: 10.11 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002882/0.1905, allocations: 155.9 kB / 0.5666 GB, free: 9.941 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005411/0.1911, allocations: 244.2 kB / 0.5668 GB, free: 9.688 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.44e-06/0.1911, allocations: 8 kB / 0.5669 GB, free: 9.68 MB / 430.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.00125/0.1923, allocations: 486.6 kB / 0.5673 GB, free: 9.191 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.602e-05/0.1924, allocations: 11.98 kB / 0.5673 GB, free: 9.18 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.825e-06/0.1924, allocations: 0 / 0.5673 GB, free: 9.18 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001079/0.1935, allocations: 237.5 kB / 0.5676 GB, free: 8.941 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001683/0.1936, allocations: 35.92 kB / 0.5676 GB, free: 8.906 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005252/0.1989, allocations: 3.692 MB / 0.5712 GB, free: 4.934 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002879/0.1992, allocations: 35.77 kB / 0.5712 GB, free: 4.898 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.424e-05/0.1992, allocations: 8 kB / 0.5712 GB, free: 4.891 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.0002594/0.1994, allocations: 144 kB / 0.5714 GB, free: 4.742 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.884e-05/0.1995, allocations: 23.92 kB / 0.5714 GB, free: 4.719 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.272e-05/0.1996, allocations: 38.86 kB / 0.5714 GB, free: 4.68 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.128e-06/0.1996, allocations: 4 kB / 0.5714 GB, free: 4.676 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.055e-05/0.1996, allocations: 7.938 kB / 0.5714 GB, free: 4.668 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.845e-06/0.1996, allocations: 3.984 kB / 0.5715 GB, free: 4.664 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001904/0.2015, allocations: 0.8757 MB / 0.5723 GB, free: 3.727 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.697e-06/0.2015, allocations: 0 / 0.5723 GB, free: 3.727 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.248e-05/0.2016, allocations: 23.94 kB / 0.5723 GB, free: 3.703 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009747/0.2026, allocations: 233.5 kB / 0.5726 GB, free: 3.469 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.816e-05/0.2026, allocations: 4 kB / 0.5726 GB, free: 3.465 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004926/0.2076, allocations: 3.697 MB / 0.5762 GB, free: 15.49 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.315e-06/0.2076, allocations: 0 / 0.5762 GB, free: 15.49 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001236/0.2088, allocations: 0.5252 MB / 0.5767 GB, free: 14.94 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001674/0.209, allocations: 132.8 kB / 0.5768 GB, free: 14.79 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.06e-05/0.209, allocations: 4 kB / 0.5768 GB, free: 14.79 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002459/0.2092, allocations: 23.98 kB / 0.5768 GB, free: 14.76 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001199/0.2094, allocations: 31.89 kB / 0.5769 GB, free: 14.73 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.127e-05/0.2094, allocations: 12 kB / 0.5769 GB, free: 14.72 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0002133/0.2096, allocations: 176.5 kB / 0.577 GB, free: 14.55 MB / 446.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2096, allocations: 3.938 kB / 0.577 GB, free: 14.54 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0005374/0.2101, allocations: 107.8 kB / 0.5771 GB, free: 14.44 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.0001775/0.2103, allocations: 103.2 kB / 0.5772 GB, free: 14.33 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001181/0.2115, allocations: 0.5284 MB / 0.5778 GB, free: 13.77 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.637e-06/0.2115, allocations: 0 / 0.5778 GB, free: 13.77 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006752/0.2122, allocations: 437.2 kB / 0.5782 GB, free: 13.32 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004121/0.2126, allocations: 44.8 kB / 0.5782 GB, free: 13.28 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001158/0.2137, allocations: 0.519 MB / 0.5787 GB, free: 12.73 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004886/0.2142, allocations: 0.7638 MB / 0.5795 GB, free: 11.94 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0001046/0.2143, allocations: 26.28 kB / 0.5795 GB, free: 11.91 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.567e-05/0.2144, allocations: 23.36 kB / 0.5795 GB, free: 11.88 MB / 446.1 MB Notification: Performance of SimCode: time 3.1e-07/0.2144, allocations: 0 / 0.5795 GB, free: 11.88 MB / 446.1 MB Notification: Performance of Templates: time 0.01068/0.2251, allocations: 4.668 MB / 0.5841 GB, free: 7.258 MB / 446.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.sim & ./ModelicaTest_4.1.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0_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_4.1.0_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: 6.268664289265871]