Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_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.001056/0.001056, allocations: 88.34 kB / 22.22 MB, free: 2.285 MB / 18.57 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.001219/0.001219, allocations: 166.2 kB / 25.61 MB, free: 8.891 MB / 18.57 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 0.9902/0.9902, allocations: 177 MB / 205.9 MB, free: 4.453 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1729/0.1729, allocations: 34.88 MB / 297.4 MB, free: 13.32 MB / 282.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/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_trunk_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_trunk_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.542e-06/1.542e-06, allocations: 0 / 380 MB, free: 22.75 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.446e-05/2.6e-05, allocations: 2.312 kB / 380 MB, free: 22.75 MB / 314.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches): time 0.003195/0.003221, allocations: 2.919 MB / 382.9 MB, free: 19.82 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.001177/0.004397, allocations: 0.6623 MB / 383.6 MB, free: 19.15 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001646/0.004562, allocations: 7.938 kB / 383.6 MB, free: 19.14 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001627/0.004725, allocations: 55.44 kB / 383.6 MB, free: 19.09 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001396/0.004864, allocations: 99.06 kB / 383.7 MB, free: 18.99 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001753/0.005039, allocations: 95.84 kB / 383.8 MB, free: 18.9 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003007/0.00534, allocations: 426.1 kB / 384.2 MB, free: 18.48 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001876/0.005528, allocations: 91.27 kB / 384.3 MB, free: 18.39 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002466/0.005774, allocations: 231.5 kB / 384.6 MB, free: 18.16 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001453/0.00592, allocations: 123.7 kB / 384.7 MB, free: 18.04 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 4.331e-05/0.005963, allocations: 39.94 kB / 384.7 MB, free: 18 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.084e-05/0.005994, allocations: 36 kB / 384.8 MB, free: 17.97 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 4.586e-05/0.00604, allocations: 71.75 kB / 384.8 MB, free: 17.9 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 7.739e-05/0.006117, allocations: 123.7 kB / 384.9 MB, free: 17.78 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002402/0.006357, allocations: 263.1 kB / 385.2 MB, free: 17.52 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.535e-06/0.00636, allocations: 0 / 385.2 MB, free: 17.52 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.343e-06/0.006361, allocations: 0 / 385.2 MB, free: 17.52 MB / 314.7 MB Notification: Performance of Transformations before backend: time 7.013e-06/0.006368, allocations: 0 / 385.2 MB, free: 17.52 MB / 314.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.0006305/0.006999, allocations: 0.6559 MB / 385.9 MB, free: 16.83 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.908e-05/0.007038, allocations: 8.031 kB / 385.9 MB, free: 16.82 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.918e-05/0.007107, allocations: 64.7 kB / 385.9 MB, free: 16.76 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002146/0.007321, allocations: 223.3 kB / 386.1 MB, free: 16.52 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.465e-05/0.007346, allocations: 17.03 kB / 386.2 MB, free: 16.5 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.651e-05/0.007373, allocations: 28.38 kB / 386.2 MB, free: 16.47 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003073/0.00768, allocations: 350.5 kB / 386.5 MB, free: 16.09 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.357e-05/0.007693, allocations: 192 / 386.5 MB, free: 16.09 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.247e-05/0.007716, allocations: 12.38 kB / 386.5 MB, free: 16.07 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.367e-06/0.007725, allocations: 7.938 kB / 386.6 MB, free: 16.07 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001093/0.007834, allocations: 100.4 kB / 386.7 MB, free: 15.96 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009661/0.008801, allocations: 1.152 MB / 387.8 MB, free: 14.75 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002726/0.009073, allocations: 199.7 kB / 388 MB, free: 14.55 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.453e-05/0.009168, allocations: 89.48 kB / 388.1 MB, free: 14.46 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.621e-05/0.009184, allocations: 12.23 kB / 388.1 MB, free: 14.45 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.245e-05/0.009206, allocations: 33.62 kB / 388.1 MB, free: 14.4 MB / 314.7 MB Notification: Performance of pre-optimization done (n=27): time 2.084e-06/0.009208, allocations: 0 / 388.1 MB, free: 14.4 MB / 314.7 MB Notification: Performance of matching and sorting (n=27): time 0.001027/0.01024, allocations: 0.5736 MB / 388.7 MB, free: 13.82 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.187e-05/0.01026, allocations: 63.34 kB / 388.8 MB, free: 13.74 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001154/0.01037, allocations: 266.7 kB / 389 MB, free: 13.46 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.475e-05/0.01039, allocations: 29.7 kB / 389.1 MB, free: 13.43 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.195e-05/0.01046, allocations: 223.2 kB / 389.3 MB, free: 13.21 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.119e-05/0.01049, allocations: 91.17 kB / 389.4 MB, free: 13.12 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.589e-05/0.01056, allocations: 59.33 kB / 389.4 MB, free: 13.05 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.971e-05/0.01063, allocations: 0.5117 MB / 389.9 MB, free: 12.53 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.964e-05/0.01068, allocations: 31.97 kB / 390 MB, free: 12.5 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.862e-05/0.01074, allocations: 102.1 kB / 390.1 MB, free: 12.38 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001168/0.01086, allocations: 142.3 kB / 390.2 MB, free: 12.21 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.01086, allocations: 0 / 390.2 MB, free: 12.21 MB / 314.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0003576/0.01122, allocations: 320.5 kB / 390.5 MB, free: 11.89 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.669e-05/0.01124, allocations: 8 kB / 390.5 MB, free: 11.88 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.314e-06/0.01125, allocations: 0 / 390.5 MB, free: 11.88 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004409/0.01169, allocations: 179.2 kB / 390.7 MB, free: 11.7 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.428e-05/0.01177, allocations: 31.92 kB / 390.7 MB, free: 11.66 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001581/0.01335, allocations: 3.908 MB / 394.6 MB, free: 7.527 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.202e-05/0.01344, allocations: 27.84 kB / 394.7 MB, free: 7.5 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.748e-06/0.01345, allocations: 4 kB / 394.7 MB, free: 7.496 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 9.088e-05/0.01354, allocations: 168.5 kB / 394.8 MB, free: 7.32 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.62e-05/0.01358, allocations: 31.86 kB / 394.9 MB, free: 7.289 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.065e-05/0.01361, allocations: 42.58 kB / 394.9 MB, free: 7.242 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.653e-06/0.01361, allocations: 4.031 kB / 394.9 MB, free: 7.238 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.379e-05/0.01363, allocations: 4 kB / 394.9 MB, free: 7.234 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.387e-06/0.01363, allocations: 3.938 kB / 394.9 MB, free: 7.23 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000589/0.01422, allocations: 0.6184 MB / 395.5 MB, free: 6.57 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.855e-06/0.01422, allocations: 4 kB / 395.5 MB, free: 6.566 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.325e-05/0.01426, allocations: 23.92 kB / 395.6 MB, free: 6.543 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003714/0.01464, allocations: 171.2 kB / 395.7 MB, free: 6.367 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.003e-05/0.01465, allocations: 4 kB / 395.7 MB, free: 6.363 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001341/0.01599, allocations: 3.897 MB / 399.6 MB, free: 2.238 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.01599, allocations: 0 / 399.6 MB, free: 2.238 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003194/0.01631, allocations: 431.7 kB / 400.1 MB, free: 1.789 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.372e-05/0.01636, allocations: 55.7 kB / 400.1 MB, free: 1.734 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.543e-05/0.01638, allocations: 8.031 kB / 400.1 MB, free: 1.727 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.94e-05/0.01648, allocations: 23.98 kB / 400.1 MB, free: 1.703 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.049e-05/0.01655, allocations: 31.88 kB / 400.2 MB, free: 1.672 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.368e-06/0.01656, allocations: 8 kB / 400.2 MB, free: 1.664 MB / 314.7 MB Notification: Performance of sorting global known variables: time 4.915e-05/0.01661, allocations: 176.5 kB / 400.3 MB, free: 1.492 MB / 314.7 MB Notification: Performance of sort global known variables: time 4e-08/0.01661, allocations: 0 / 400.3 MB, free: 1.492 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0002797/0.01688, allocations: 107.9 kB / 400.5 MB, free: 1.387 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 8.497e-05/0.01697, allocations: 107.2 kB / 400.6 MB, free: 1.273 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0003739/0.01734, allocations: 0.5378 MB / 401.1 MB, free: 0.6992 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.804e-06/0.01735, allocations: 0 / 401.1 MB, free: 0.6992 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001932/0.01754, allocations: 0.4991 MB / 401.6 MB, free: 164 kB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002354/0.01777, allocations: 48.55 kB / 401.6 MB, free: 120 kB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006796/0.01845, allocations: 482.8 kB / 402.1 MB, free: 15.61 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.334e-05/0.01852, allocations: 96.61 kB / 402.2 MB, free: 15.5 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 5.864e-05/0.01858, allocations: 22.28 kB / 402.2 MB, free: 15.47 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001141/0.01869, allocations: 122.2 kB / 402.3 MB, free: 15.35 MB / 330.7 MB Notification: Performance of SimCode: time 5.41e-07/0.01869, allocations: 0 / 402.3 MB, free: 15.35 MB / 330.7 MB Notification: Performance of Templates: time 0.00694/0.02563, allocations: 5.149 MB / 407.5 MB, free: 10.3 MB / 330.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_trunk_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.makefile [Timeout 660] (rm -f ModelicaTest_trunk_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.sim & ./ModelicaTest_trunk_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_trunk_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","",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.5913739050738513]