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.0009779/0.0009779, allocations: 80.8 kB / 21.5 MB, free: 2.988 MB / 18.57 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.001301/0.001301, allocations: 170.5 kB / 24.91 MB, free: 8.68 MB / 18.57 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.087/1.087, allocations: 177.1 MB / 205.3 MB, free: 5.488 MB / 186.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.2863/0.2863, allocations: 32.8 MB / 294.6 MB, free: 1.25 MB / 266.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 1.553e-06/1.553e-06, allocations: 0 / 323.2 MB, free: 9.688 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.642e-05/2.797e-05, allocations: 3.891 kB / 323.2 MB, free: 9.684 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches): time 0.004319/0.004347, allocations: 2.959 MB / 326.2 MB, free: 6.707 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008971/0.005244, allocations: 0.6938 MB / 326.9 MB, free: 6.008 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.954e-05/0.005344, allocations: 7.938 kB / 326.9 MB, free: 6 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001079/0.005452, allocations: 55.42 kB / 327 MB, free: 5.945 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001082/0.00556, allocations: 99.11 kB / 327.1 MB, free: 5.848 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001202/0.00568, allocations: 87.81 kB / 327.1 MB, free: 5.762 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.000266/0.005946, allocations: 426 kB / 327.6 MB, free: 5.344 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001363/0.006083, allocations: 94.59 kB / 327.7 MB, free: 5.254 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001554/0.006238, allocations: 219.6 kB / 327.9 MB, free: 5.039 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001319/0.00637, allocations: 127.6 kB / 328 MB, free: 4.914 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.42e-05/0.006404, allocations: 36 kB / 328 MB, free: 4.879 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.99e-05/0.006434, allocations: 32 kB / 328.1 MB, free: 4.848 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.178e-05/0.006476, allocations: 71.75 kB / 328.1 MB, free: 4.777 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 7.266e-05/0.006548, allocations: 123.7 kB / 328.2 MB, free: 4.656 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002108/0.006759, allocations: 267 kB / 328.5 MB, free: 4.395 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.974e-06/0.006761, allocations: 0 / 328.5 MB, free: 4.395 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.513e-06/0.006763, allocations: 0 / 328.5 MB, free: 4.395 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.727e-06/0.006766, allocations: 4 kB / 328.5 MB, free: 4.391 MB / 298.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.0006153/0.007382, allocations: 0.5323 MB / 329 MB, free: 3.836 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.94e-05/0.007411, allocations: 19.98 kB / 329.1 MB, free: 3.816 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.812e-05/0.007459, allocations: 40.91 kB / 329.1 MB, free: 3.777 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001864/0.007646, allocations: 189.8 kB / 329.3 MB, free: 3.566 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.888e-05/0.007664, allocations: 21.03 kB / 329.3 MB, free: 3.547 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.365e-05/0.007688, allocations: 28.38 kB / 329.3 MB, free: 3.52 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002487/0.007937, allocations: 353.9 kB / 329.7 MB, free: 3.129 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.574e-06/0.007944, allocations: 192 / 329.7 MB, free: 3.129 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.687e-05/0.007961, allocations: 12.38 kB / 329.7 MB, free: 3.117 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.657e-06/0.00797, allocations: 15.94 kB / 329.7 MB, free: 3.102 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.34e-05/0.008063, allocations: 72.56 kB / 329.8 MB, free: 3.035 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008518/0.008915, allocations: 0.8853 MB / 330.7 MB, free: 2.102 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002292/0.009144, allocations: 203.2 kB / 330.9 MB, free: 1.895 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.903e-05/0.009223, allocations: 78.41 kB / 330.9 MB, free: 1.816 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.264e-05/0.009236, allocations: 8.234 kB / 331 MB, free: 1.809 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.92e-05/0.009255, allocations: 30.8 kB / 331 MB, free: 1.77 MB / 298.7 MB Notification: Performance of pre-optimization done (n=27): time 1.123e-06/0.009256, allocations: 0 / 331 MB, free: 1.77 MB / 298.7 MB Notification: Performance of matching and sorting (n=27): time 0.0009205/0.01018, allocations: 0.5402 MB / 331.5 MB, free: 1.219 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.416e-05/0.0102, allocations: 51.41 kB / 331.6 MB, free: 1.156 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00012/0.01032, allocations: 202.5 kB / 331.8 MB, free: 0.9414 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.745e-05/0.01034, allocations: 33.7 kB / 331.8 MB, free: 0.9023 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.268e-05/0.0104, allocations: 160.5 kB / 332 MB, free: 0.7422 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.421e-05/0.01045, allocations: 95.19 kB / 332.1 MB, free: 0.6484 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.821e-05/0.0105, allocations: 61.62 kB / 332.1 MB, free: 0.582 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0003699/0.01087, allocations: 330.7 kB / 332.4 MB, free: 256 kB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.026e-05/0.01091, allocations: 32.58 kB / 332.5 MB, free: 224 kB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.47e-05/0.01098, allocations: 92.78 kB / 332.6 MB, free: 116 kB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001191/0.0111, allocations: 128.2 kB / 332.7 MB, free: 15.97 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-06/0.0111, allocations: 0 / 332.7 MB, free: 15.97 MB / 314.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0003266/0.01143, allocations: 270.9 kB / 332.9 MB, free: 15.7 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.025e-05/0.01144, allocations: 4 kB / 333 MB, free: 15.69 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.498e-06/0.01144, allocations: 7.984 kB / 333 MB, free: 15.68 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003992/0.01184, allocations: 173.5 kB / 333.1 MB, free: 15.51 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.784e-05/0.01192, allocations: 27.98 kB / 333.2 MB, free: 15.48 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001461/0.01338, allocations: 2.742 MB / 335.9 MB, free: 12.56 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.296e-05/0.01345, allocations: 31.77 kB / 335.9 MB, free: 12.53 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.088e-05/0.01346, allocations: 12 kB / 335.9 MB, free: 12.52 MB / 314.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.835e-05/0.01354, allocations: 125.8 kB / 336.1 MB, free: 12.39 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.211e-05/0.01357, allocations: 27.97 kB / 336.1 MB, free: 12.36 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.67e-05/0.0136, allocations: 26.66 kB / 336.1 MB, free: 12.33 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.136e-06/0.0136, allocations: 8 kB / 336.1 MB, free: 12.32 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.449e-06/0.01361, allocations: 3.938 kB / 336.1 MB, free: 12.32 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.058e-06/0.01361, allocations: 3.984 kB / 336.1 MB, free: 12.32 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005184/0.01413, allocations: 0.4925 MB / 336.6 MB, free: 11.79 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.595e-06/0.01413, allocations: 4 kB / 336.6 MB, free: 11.79 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.188e-05/0.01417, allocations: 15.98 kB / 336.6 MB, free: 11.77 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003346/0.01451, allocations: 177.5 kB / 336.8 MB, free: 11.59 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.267e-06/0.01452, allocations: 4 kB / 336.8 MB, free: 11.59 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001604/0.01612, allocations: 2.737 MB / 339.6 MB, free: 8.68 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.92e-07/0.01612, allocations: 0 / 339.6 MB, free: 8.68 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003117/0.01643, allocations: 347.1 kB / 339.9 MB, free: 8.32 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.605e-05/0.01648, allocations: 23.8 kB / 339.9 MB, free: 8.297 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.663e-05/0.0165, allocations: 11.94 kB / 339.9 MB, free: 8.285 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.013e-05/0.01659, allocations: 23.97 kB / 340 MB, free: 8.262 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.57e-05/0.01663, allocations: 27.95 kB / 340 MB, free: 8.234 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.048e-05/0.01664, allocations: 12 kB / 340 MB, free: 8.223 MB / 314.7 MB Notification: Performance of sorting global known variables: time 4.19e-05/0.01669, allocations: 64.73 kB / 340.1 MB, free: 8.156 MB / 314.7 MB Notification: Performance of sort global known variables: time 4e-08/0.01669, allocations: 0 / 340.1 MB, free: 8.156 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0002109/0.0169, allocations: 111.8 kB / 340.2 MB, free: 8.047 MB / 314.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 7.692e-05/0.01697, allocations: 84.36 kB / 340.2 MB, free: 7.957 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0003672/0.01734, allocations: 433.9 kB / 340.7 MB, free: 7.508 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.608e-06/0.01735, allocations: 4 kB / 340.7 MB, free: 7.504 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002316/0.01758, allocations: 393.7 kB / 341.1 MB, free: 7.09 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001777/0.01775, allocations: 47.73 kB / 341.1 MB, free: 7.047 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006178/0.01837, allocations: 474.9 kB / 341.6 MB, free: 6.555 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.739e-05/0.01847, allocations: 96.36 kB / 341.7 MB, free: 6.441 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 7.751e-05/0.01855, allocations: 18.3 kB / 341.7 MB, free: 6.418 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001516/0.0187, allocations: 91.36 kB / 341.8 MB, free: 6.328 MB / 314.7 MB Notification: Performance of SimCode: time 8.22e-07/0.0187, allocations: 0 / 341.8 MB, free: 6.328 MB / 314.7 MB Notification: Performance of Templates: time 0.006869/0.02557, allocations: 4.993 MB / 346.8 MB, free: 1.441 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 -s gbode -gbm=radauIIA3 -emit_protected -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.128548067063093]