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.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.001126/0.001126, allocations: 76.17 kB / 9.931 MB, free: 0.7578 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001761/0.002886, allocations: 449.7 kB / 10.37 MB, free: 328 kB / 10.45 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.001251/0.001251, allocations: 169.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001699/0.00295, allocations: 455.6 kB / 11.71 MB, free: 2.461 MB / 13.93 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.03/1.03, allocations: 177.2 MB / 189.6 MB, free: 5.309 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1187/1.149, allocations: 53.65 MB / 243.3 MB, free: 15.58 MB / 250.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.3158/0.3158, allocations: 32.8 MB / 276.8 MB, free: 15.85 MB / 282.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.03161/0.3474, allocations: 12.52 MB / 289.3 MB, free: 8.68 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.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.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 2.084e-06/2.084e-06, allocations: 0 / 290.6 MB, free: 7.68 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.474e-05/2.682e-05, allocations: 6.781 kB / 290.6 MB, free: 7.676 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches): time 0.007561/0.007588, allocations: 2.969 MB / 293.6 MB, free: 5.34 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.004746/0.01233, allocations: 0.7086 MB / 294.3 MB, free: 4.633 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002702/0.0126, allocations: 7.938 kB / 294.3 MB, free: 4.625 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001584/0.01276, allocations: 55.44 kB / 294.3 MB, free: 4.57 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002272/0.01299, allocations: 95.06 kB / 294.4 MB, free: 4.477 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002321/0.01322, allocations: 95.86 kB / 294.5 MB, free: 4.383 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004821/0.0137, allocations: 418.1 kB / 294.9 MB, free: 3.973 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002228/0.01393, allocations: 97.95 kB / 295 MB, free: 3.879 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003394/0.01732, allocations: 239.5 kB / 295.3 MB, free: 3.645 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001922/0.01751, allocations: 119.6 kB / 295.4 MB, free: 3.527 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 5.076e-05/0.01756, allocations: 36 kB / 295.4 MB, free: 3.492 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.576e-05/0.01761, allocations: 32 kB / 295.4 MB, free: 3.461 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 5.014e-05/0.01766, allocations: 55.81 kB / 295.5 MB, free: 3.406 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001117/0.01777, allocations: 103.8 kB / 295.6 MB, free: 3.305 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003294/0.0181, allocations: 239.2 kB / 295.8 MB, free: 3.07 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.805e-05/0.01812, allocations: 0 / 295.8 MB, free: 3.07 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.423e-06/0.01812, allocations: 0 / 295.8 MB, free: 3.07 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.615e-05/0.01814, allocations: 0 / 295.8 MB, free: 3.07 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.0008215/0.01896, allocations: 0.6057 MB / 296.4 MB, free: 2.441 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.861e-05/0.019, allocations: 12.03 kB / 296.4 MB, free: 2.43 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.097e-05/0.01907, allocations: 40.91 kB / 296.5 MB, free: 2.391 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002876/0.01935, allocations: 186.7 kB / 296.7 MB, free: 2.184 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.372e-05/0.0194, allocations: 21.03 kB / 296.7 MB, free: 2.164 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.752e-05/0.01944, allocations: 36.38 kB / 296.7 MB, free: 2.129 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004043/0.01984, allocations: 338 kB / 297.1 MB, free: 1.754 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.187e-05/0.01985, allocations: 192 / 297.1 MB, free: 1.754 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.55e-05/0.01988, allocations: 12.38 kB / 297.1 MB, free: 1.742 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.192e-05/0.01989, allocations: 11.94 kB / 297.1 MB, free: 1.73 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001406/0.02003, allocations: 84.48 kB / 297.2 MB, free: 1.648 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004394/0.02442, allocations: 0.8853 MB / 298 MB, free: 0.7148 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000363/0.02479, allocations: 207.1 kB / 298.2 MB, free: 0.5039 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001142/0.0249, allocations: 69.28 kB / 298.3 MB, free: 444 kB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.759e-05/0.02492, allocations: 12.17 kB / 298.3 MB, free: 432 kB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.497e-05/0.02495, allocations: 34.8 kB / 298.4 MB, free: 388 kB / 282.7 MB Notification: Performance of pre-optimization done (n=27): time 3.066e-06/0.02496, allocations: 0 / 298.4 MB, free: 388 kB / 282.7 MB Notification: Performance of matching and sorting (n=27): time 0.00437/0.02933, allocations: 0.5401 MB / 298.9 MB, free: 15.83 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.853e-05/0.02937, allocations: 51.41 kB / 298.9 MB, free: 15.77 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002204/0.02959, allocations: 198.5 kB / 299.1 MB, free: 15.56 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.207e-05/0.02962, allocations: 33.7 kB / 299.2 MB, free: 15.52 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001094/0.02973, allocations: 176.4 kB / 299.3 MB, free: 15.34 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.092e-05/0.02981, allocations: 83.28 kB / 299.4 MB, free: 15.26 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.204e-05/0.0299, allocations: 61.62 kB / 299.5 MB, free: 15.2 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001164/0.03002, allocations: 342.7 kB / 299.8 MB, free: 14.85 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.122e-05/0.03008, allocations: 32.58 kB / 299.9 MB, free: 14.82 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.539e-05/0.03016, allocations: 79.97 kB / 299.9 MB, free: 14.73 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001551/0.03032, allocations: 124.7 kB / 300.1 MB, free: 14.59 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.017e-06/0.03032, allocations: 0 / 300.1 MB, free: 14.59 MB / 298.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.000466/0.03079, allocations: 266.8 kB / 300.3 MB, free: 14.32 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.451e-05/0.03081, allocations: 5.562 kB / 300.3 MB, free: 14.31 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.578e-06/0.03082, allocations: 4 kB / 300.3 MB, free: 14.31 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006031/0.03143, allocations: 173.6 kB / 300.5 MB, free: 14.13 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001324/0.03156, allocations: 39.92 kB / 300.5 MB, free: 14.09 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002544/0.0341, allocations: 2.744 MB / 303.3 MB, free: 11.17 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000147/0.03425, allocations: 39.83 kB / 303.3 MB, free: 11.13 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.451e-05/0.03426, allocations: 4 kB / 303.3 MB, free: 11.12 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 0.0001635/0.03443, allocations: 121.9 kB / 303.4 MB, free: 11 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.902e-05/0.03449, allocations: 23.98 kB / 303.5 MB, free: 10.97 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.281e-05/0.03454, allocations: 34.64 kB / 303.5 MB, free: 10.94 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.138e-06/0.03454, allocations: 4 kB / 303.5 MB, free: 10.94 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.81e-05/0.03456, allocations: 3.938 kB / 303.5 MB, free: 10.93 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.662e-06/0.03457, allocations: 4 kB / 303.5 MB, free: 10.93 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000879/0.03545, allocations: 0.4886 MB / 304 MB, free: 10.41 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.659e-06/0.03545, allocations: 4 kB / 304 MB, free: 10.41 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.185e-05/0.03552, allocations: 19.94 kB / 304 MB, free: 10.39 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.269e-05/0.03561, allocations: 27.78 kB / 304 MB, free: 10.36 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000528/0.03613, allocations: 173.9 kB / 304.2 MB, free: 10.18 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.671e-05/0.03615, allocations: 4 kB / 304.2 MB, free: 10.18 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002626/0.03878, allocations: 2.741 MB / 307 MB, free: 7.266 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.845e-06/0.03878, allocations: 3.938 kB / 307 MB, free: 7.262 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004776/0.03926, allocations: 343 kB / 307.3 MB, free: 6.906 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.03e-05/0.03929, allocations: 7.938 kB / 307.3 MB, free: 6.898 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001071/0.03939, allocations: 24.02 kB / 307.3 MB, free: 6.875 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.411e-05/0.03949, allocations: 35.88 kB / 307.4 MB, free: 6.84 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.196e-05/0.0395, allocations: 4 kB / 307.4 MB, free: 6.836 MB / 298.7 MB Notification: Performance of sorting global known variables: time 6.655e-05/0.03957, allocations: 62.23 kB / 307.4 MB, free: 6.773 MB / 298.7 MB Notification: Performance of sort global known variables: time 7e-08/0.03957, allocations: 0 / 307.4 MB, free: 6.773 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003534/0.03992, allocations: 107.8 kB / 307.5 MB, free: 6.668 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 0.0001167/0.04004, allocations: 88.41 kB / 307.6 MB, free: 6.574 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0004845/0.04052, allocations: 430 kB / 308 MB, free: 6.129 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.687e-05/0.04054, allocations: 7.984 kB / 308.1 MB, free: 6.121 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002421/0.04078, allocations: 381.8 kB / 308.4 MB, free: 5.719 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002402/0.04102, allocations: 56.48 kB / 308.5 MB, free: 5.664 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002377/0.0434, allocations: 499.5 kB / 309 MB, free: 5.148 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.91e-05/0.04348, allocations: 104.4 kB / 309.1 MB, free: 5.023 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 6.712e-05/0.04354, allocations: 22.28 kB / 309.1 MB, free: 5 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001164/0.04366, allocations: 95.28 kB / 309.2 MB, free: 4.902 MB / 298.7 MB Notification: Performance of SimCode: time 1.403e-06/0.04366, allocations: 0 / 309.2 MB, free: 4.902 MB / 298.7 MB Notification: Performance of Templates: time 0.00727/0.05093, allocations: 5.148 MB / 314.3 MB, free: 15.86 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,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.370102684944868]