Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009397/0.0009397, allocations: 77.36 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001321/0.00226, allocations: 445.8 kB / 10.44 MB, free: 256 kB / 10.45 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00099/0.00099, allocations: 148.9 kB / 11.34 MB, free: 2.836 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001588/0.002578, allocations: 475.6 kB / 11.8 MB, free: 2.367 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9408/0.9408, allocations: 173.4 MB / 186 MB, free: 7.535 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1858/1.127, allocations: 52.5 MB / 238.5 MB, free: 7.613 MB / 234.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1617/0.1617, allocations: 32.8 MB / 272 MB, free: 6.281 MB / 266.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.02622/0.1879, allocations: 12.54 MB / 284.5 MB, free: 9.703 MB / 282.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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.0.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.0.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.502e-06/1.502e-06, allocations: 0 / 285.8 MB, free: 8.422 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.945e-05/2.095e-05, allocations: 6.312 kB / 285.8 MB, free: 8.414 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches): time 0.004485/0.004506, allocations: 2.959 MB / 288.8 MB, free: 5.441 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009761/0.005482, allocations: 0.6698 MB / 289.5 MB, free: 4.766 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001066/0.005589, allocations: 4 kB / 289.5 MB, free: 4.762 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 9.711e-05/0.005686, allocations: 47.5 kB / 289.5 MB, free: 4.715 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001274/0.005813, allocations: 103.1 kB / 289.6 MB, free: 4.613 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001325/0.005946, allocations: 87.86 kB / 289.7 MB, free: 4.527 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002904/0.006236, allocations: 422.1 kB / 290.1 MB, free: 4.113 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001471/0.006383, allocations: 89.91 kB / 290.2 MB, free: 4.027 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001994/0.006583, allocations: 247.5 kB / 290.4 MB, free: 3.785 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001344/0.006717, allocations: 119.7 kB / 290.6 MB, free: 3.668 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 4.092e-05/0.006758, allocations: 36 kB / 290.6 MB, free: 3.633 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.486e-05/0.006793, allocations: 32 kB / 290.6 MB, free: 3.602 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 4.254e-05/0.006835, allocations: 55.81 kB / 290.7 MB, free: 3.547 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 7.227e-05/0.006908, allocations: 103.8 kB / 290.8 MB, free: 3.445 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002184/0.007126, allocations: 235.2 kB / 291 MB, free: 3.215 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.12e-05/0.007137, allocations: 3.938 kB / 291 MB, free: 3.211 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.332e-06/0.007139, allocations: 0 / 291 MB, free: 3.211 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.025e-05/0.007149, allocations: 0 / 291 MB, free: 3.211 MB / 282.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.0006144/0.007763, allocations: 0.5973 MB / 291.6 MB, free: 2.59 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.81e-05/0.007791, allocations: 12.03 kB / 291.6 MB, free: 2.578 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.712e-05/0.007848, allocations: 44.91 kB / 291.7 MB, free: 2.535 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002017/0.00805, allocations: 189.2 kB / 291.9 MB, free: 2.324 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.137e-05/0.008071, allocations: 21.03 kB / 291.9 MB, free: 2.305 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.914e-05/0.008101, allocations: 32.38 kB / 291.9 MB, free: 2.273 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002738/0.008374, allocations: 342 kB / 292.2 MB, free: 1.895 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.02e-05/0.008385, allocations: 4.172 kB / 292.2 MB, free: 1.891 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.781e-05/0.008402, allocations: 12.38 kB / 292.3 MB, free: 1.879 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.616e-06/0.008411, allocations: 11.94 kB / 292.3 MB, free: 1.867 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.926e-05/0.00851, allocations: 80.48 kB / 292.3 MB, free: 1.789 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009218/0.009432, allocations: 0.8893 MB / 293.2 MB, free: 0.8516 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002426/0.009675, allocations: 195.1 kB / 293.4 MB, free: 0.6523 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.176e-05/0.009756, allocations: 75.17 kB / 293.5 MB, free: 0.5781 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.19e-05/0.009768, allocations: 4.234 kB / 293.5 MB, free: 0.5742 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.965e-05/0.009788, allocations: 30.8 kB / 293.5 MB, free: 0.5352 MB / 282.7 MB Notification: Performance of pre-optimization done (n=27): time 1.172e-06/0.009789, allocations: 4 kB / 293.5 MB, free: 0.5312 MB / 282.7 MB Notification: Performance of matching and sorting (n=27): time 0.0009638/0.01075, allocations: 0.5408 MB / 294.1 MB, free: 15.98 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.46e-05/0.01078, allocations: 55.41 kB / 294.1 MB, free: 15.91 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001396/0.01092, allocations: 202.4 kB / 294.3 MB, free: 15.7 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.987e-05/0.01094, allocations: 33.7 kB / 294.4 MB, free: 15.66 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.845e-05/0.01101, allocations: 168.2 kB / 294.5 MB, free: 15.49 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.817e-05/0.01105, allocations: 95.17 kB / 294.6 MB, free: 15.4 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.681e-05/0.01111, allocations: 57.62 kB / 294.7 MB, free: 15.34 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.106e-05/0.01118, allocations: 338.7 kB / 295 MB, free: 15 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.481e-05/0.01123, allocations: 35.84 kB / 295 MB, free: 14.96 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.095e-05/0.01129, allocations: 73.44 kB / 295.1 MB, free: 14.88 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001464/0.01143, allocations: 132.7 kB / 295.2 MB, free: 14.73 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.367e-06/0.01144, allocations: 8 kB / 295.3 MB, free: 14.72 MB / 298.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.00031/0.01175, allocations: 262.8 kB / 295.5 MB, free: 14.45 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.315e-05/0.01176, allocations: 11.94 kB / 295.5 MB, free: 14.44 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.789e-06/0.01176, allocations: 0 / 295.5 MB, free: 14.44 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004104/0.01218, allocations: 177.6 kB / 295.7 MB, free: 14.26 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.241e-05/0.01227, allocations: 39.92 kB / 295.7 MB, free: 14.22 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001547/0.01382, allocations: 2.752 MB / 298.5 MB, free: 11.3 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.08e-05/0.0139, allocations: 35.77 kB / 298.5 MB, free: 11.27 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.388e-06/0.01391, allocations: 8 kB / 298.5 MB, free: 11.26 MB / 298.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.461e-05/0.01398, allocations: 121.8 kB / 298.6 MB, free: 11.13 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.212e-05/0.01401, allocations: 27.97 kB / 298.7 MB, free: 11.1 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.407e-05/0.01404, allocations: 30.66 kB / 298.7 MB, free: 11.07 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.944e-06/0.01404, allocations: 4 kB / 298.7 MB, free: 11.07 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.395e-06/0.01405, allocations: 3.938 kB / 298.7 MB, free: 11.07 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.222e-06/0.01405, allocations: 12.02 kB / 298.7 MB, free: 11.05 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005166/0.01457, allocations: 496.6 kB / 299.2 MB, free: 10.54 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/0.01457, allocations: 0 / 299.2 MB, free: 10.54 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.405e-05/0.01461, allocations: 23.92 kB / 299.2 MB, free: 10.52 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.35e-05/0.01466, allocations: 31.8 kB / 299.3 MB, free: 10.48 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003413/0.015, allocations: 169.5 kB / 299.4 MB, free: 10.31 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.014e-05/0.01501, allocations: 8 kB / 299.4 MB, free: 10.3 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001523/0.01653, allocations: 2.734 MB / 302.2 MB, free: 7.391 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.01653, allocations: 0 / 302.2 MB, free: 7.391 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000301/0.01683, allocations: 341.8 kB / 302.5 MB, free: 7.035 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.622e-05/0.01685, allocations: 7.938 kB / 302.5 MB, free: 7.027 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.783e-05/0.01694, allocations: 28.02 kB / 302.5 MB, free: 7 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.662e-05/0.017, allocations: 27.94 kB / 302.6 MB, free: 6.973 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.667e-06/0.017, allocations: 8 kB / 302.6 MB, free: 6.965 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.651e-05/0.01705, allocations: 62.23 kB / 302.6 MB, free: 6.902 MB / 298.7 MB Notification: Performance of sort global known variables: time 3e-08/0.01705, allocations: 0 / 302.6 MB, free: 6.902 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002574/0.01731, allocations: 103.9 kB / 302.7 MB, free: 6.801 MB / 298.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 8.733e-05/0.0174, allocations: 88.42 kB / 302.8 MB, free: 6.703 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003831/0.01778, allocations: 437.4 kB / 303.3 MB, free: 6.246 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.061e-05/0.01779, allocations: 4 kB / 303.3 MB, free: 6.242 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002376/0.01803, allocations: 394.4 kB / 303.6 MB, free: 5.828 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003228/0.01835, allocations: 440.3 kB / 304.1 MB, free: 5.312 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002322/0.02067, allocations: 0.4971 MB / 304.6 MB, free: 4.789 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.494e-05/0.02074, allocations: 92.62 kB / 304.7 MB, free: 4.68 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 5.642e-05/0.02079, allocations: 18.3 kB / 304.7 MB, free: 4.664 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001137/0.02091, allocations: 95.34 kB / 304.8 MB, free: 4.57 MB / 298.7 MB Notification: Performance of SimCode: time 6.81e-07/0.02091, allocations: 0 / 304.8 MB, free: 4.57 MB / 298.7 MB Notification: Performance of Templates: time 0.007023/0.02793, allocations: 5.294 MB / 310.1 MB, free: 15.36 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.makefile [Timeout 660] (rm -f ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.sim & ./ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.0.0_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","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.964292576536536]