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.0007794/0.0007794, allocations: 76.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.00104/0.00182, allocations: 457.8 kB / 10.45 MB, free: 244 kB / 10.45 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.0006824/0.0006824, allocations: 162 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001055/0.001737, allocations: 475.6 kB / 11.82 MB, free: 2.348 MB / 13.93 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.9811/0.9811, allocations: 177.5 MB / 190 MB, free: 4.812 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1096/1.091, allocations: 53.87 MB / 243.9 MB, free: 14.86 MB / 250.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.2511/0.2511, allocations: 34.88 MB / 279.5 MB, free: 14.92 MB / 282.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.02353/0.2746, allocations: 13.24 MB / 292.8 MB, free: 6.391 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 9.31e-07/9.31e-07, allocations: 0 / 294.1 MB, free: 5.109 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.75e-05/1.843e-05, allocations: 7.734 kB / 294.1 MB, free: 5.102 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches): time 0.003039/0.003058, allocations: 2.964 MB / 297.1 MB, free: 2.117 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001059/0.004117, allocations: 0.7019 MB / 297.8 MB, free: 1.41 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.941e-05/0.004216, allocations: 11.94 kB / 297.8 MB, free: 1.398 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 7.76e-05/0.004294, allocations: 55.5 kB / 297.8 MB, free: 1.344 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000113/0.004407, allocations: 95.06 kB / 297.9 MB, free: 1.25 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001252/0.004532, allocations: 99.84 kB / 298 MB, free: 1.152 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002831/0.004815, allocations: 418.1 kB / 298.4 MB, free: 0.7422 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000125/0.00494, allocations: 97.94 kB / 298.5 MB, free: 0.6484 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001933/0.005133, allocations: 239.5 kB / 298.7 MB, free: 424 kB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001214/0.005255, allocations: 123.7 kB / 298.9 MB, free: 300 kB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 3.441e-05/0.005289, allocations: 35.94 kB / 298.9 MB, free: 264 kB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.296e-05/0.005322, allocations: 32 kB / 298.9 MB, free: 232 kB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 3.23e-05/0.005354, allocations: 55.81 kB / 299 MB, free: 176 kB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 7.189e-05/0.005426, allocations: 103.8 kB / 299.1 MB, free: 72 kB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000214/0.00564, allocations: 239.2 kB / 299.3 MB, free: 15.84 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.083e-06/0.005647, allocations: 3.984 kB / 299.3 MB, free: 15.83 MB / 298.7 MB Notification: Performance of FrontEnd: time 5.91e-07/0.005648, allocations: 0 / 299.3 MB, free: 15.83 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.65e-06/0.005654, allocations: 3.938 kB / 299.3 MB, free: 15.83 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.0005057/0.006159, allocations: 0.6062 MB / 299.9 MB, free: 15.2 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.607e-05/0.006185, allocations: 8.922 kB / 299.9 MB, free: 15.19 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.146e-05/0.006237, allocations: 48.89 kB / 300 MB, free: 15.14 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001608/0.006398, allocations: 181.2 kB / 300.2 MB, free: 14.94 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.895e-05/0.006417, allocations: 25.03 kB / 300.2 MB, free: 14.92 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.374e-05/0.00644, allocations: 28.38 kB / 300.2 MB, free: 14.89 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002528/0.006693, allocations: 346 kB / 300.6 MB, free: 14.51 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.745e-06/0.006701, allocations: 4.172 kB / 300.6 MB, free: 14.5 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.656e-05/0.006717, allocations: 12.38 kB / 300.6 MB, free: 14.49 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.102e-06/0.006723, allocations: 11.94 kB / 300.6 MB, free: 14.48 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.525e-05/0.006819, allocations: 80.48 kB / 300.7 MB, free: 14.41 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008545/0.007673, allocations: 0.9009 MB / 301.6 MB, free: 13.46 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002256/0.007899, allocations: 191.2 kB / 301.8 MB, free: 13.26 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002268/0.008126, allocations: 69.3 kB / 301.8 MB, free: 13.19 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.935e-05/0.008145, allocations: 8.234 kB / 301.8 MB, free: 13.18 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.435e-05/0.008169, allocations: 38.8 kB / 301.9 MB, free: 13.14 MB / 298.7 MB Notification: Performance of pre-optimization done (n=27): time 2.113e-06/0.008171, allocations: 0 / 301.9 MB, free: 13.14 MB / 298.7 MB Notification: Performance of matching and sorting (n=27): time 0.000998/0.009169, allocations: 0.5292 MB / 302.4 MB, free: 12.6 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.439e-05/0.009194, allocations: 63.34 kB / 302.5 MB, free: 12.52 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000131/0.009325, allocations: 205 kB / 302.7 MB, free: 12.31 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.848e-05/0.009343, allocations: 25.7 kB / 302.7 MB, free: 12.28 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.554e-05/0.009429, allocations: 176.4 kB / 302.9 MB, free: 12.11 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.262e-05/0.009481, allocations: 87.25 kB / 302.9 MB, free: 12.02 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.313e-05/0.009545, allocations: 58.53 kB / 303 MB, free: 11.96 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.541e-05/0.00963, allocations: 338.7 kB / 303.3 MB, free: 11.62 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.995e-05/0.00967, allocations: 27.98 kB / 303.4 MB, free: 11.59 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.073e-05/0.009731, allocations: 76.11 kB / 303.4 MB, free: 11.5 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001149/0.009846, allocations: 136.1 kB / 303.6 MB, free: 11.35 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.395e-06/0.009848, allocations: 0 / 303.6 MB, free: 11.35 MB / 298.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.000334/0.01018, allocations: 270.9 kB / 303.8 MB, free: 11.07 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.653e-05/0.0102, allocations: 10.5 kB / 303.8 MB, free: 11.07 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.3e-06/0.0102, allocations: 0 / 303.8 MB, free: 11.07 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004347/0.01064, allocations: 177.5 kB / 304 MB, free: 10.89 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.099e-05/0.01073, allocations: 43.92 kB / 304.1 MB, free: 10.84 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001595/0.01232, allocations: 2.742 MB / 306.8 MB, free: 7.926 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.034e-05/0.01241, allocations: 31.78 kB / 306.8 MB, free: 7.895 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.317e-06/0.01242, allocations: 4 kB / 306.8 MB, free: 7.891 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 9.439e-05/0.01252, allocations: 125.8 kB / 307 MB, free: 7.758 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.008e-05/0.01255, allocations: 28 kB / 307 MB, free: 7.73 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.864e-05/0.01258, allocations: 34.64 kB / 307 MB, free: 7.699 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.185e-06/0.01258, allocations: 4 kB / 307 MB, free: 7.695 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.899e-06/0.01259, allocations: 11.94 kB / 307 MB, free: 7.684 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.975e-06/0.01259, allocations: 0 / 307 MB, free: 7.684 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005324/0.01312, allocations: 0.4888 MB / 307.5 MB, free: 7.164 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.454e-06/0.01313, allocations: 0 / 307.5 MB, free: 7.164 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.752e-05/0.01317, allocations: 23.92 kB / 307.5 MB, free: 7.141 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.629e-05/0.01322, allocations: 27.8 kB / 307.6 MB, free: 7.113 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000352/0.01357, allocations: 173.5 kB / 307.7 MB, free: 6.938 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.087e-06/0.01358, allocations: 4 kB / 307.7 MB, free: 6.934 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001359/0.01494, allocations: 2.733 MB / 310.5 MB, free: 4.027 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.473e-06/0.01494, allocations: 0 / 310.5 MB, free: 4.027 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002968/0.01524, allocations: 337.9 kB / 310.8 MB, free: 3.672 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.592e-05/0.01525, allocations: 7.938 kB / 310.8 MB, free: 3.664 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.184e-05/0.01535, allocations: 23.98 kB / 310.8 MB, free: 3.641 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.169e-05/0.0154, allocations: 31.88 kB / 310.9 MB, free: 3.609 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.744e-06/0.01541, allocations: 4 kB / 310.9 MB, free: 3.605 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.745e-05/0.01545, allocations: 70.17 kB / 310.9 MB, free: 3.535 MB / 298.7 MB Notification: Performance of sort global known variables: time 4e-08/0.01545, allocations: 0 / 310.9 MB, free: 3.535 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002434/0.0157, allocations: 115.8 kB / 311.1 MB, free: 3.422 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.302e-05/0.01578, allocations: 84.42 kB / 311.1 MB, free: 3.332 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003702/0.01615, allocations: 438.6 kB / 311.6 MB, free: 2.879 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.005e-05/0.01616, allocations: 4 kB / 311.6 MB, free: 2.875 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002467/0.01641, allocations: 394.6 kB / 312 MB, free: 2.461 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003214/0.01673, allocations: 449.6 kB / 312.4 MB, free: 1.938 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002274/0.019, allocations: 494.3 kB / 312.9 MB, free: 1.426 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.056e-05/0.01906, allocations: 96.38 kB / 313 MB, free: 1.312 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 5.75e-05/0.01912, allocations: 18.3 kB / 313 MB, free: 1.293 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001151/0.01924, allocations: 103.3 kB / 313.1 MB, free: 1.188 MB / 298.7 MB Notification: Performance of SimCode: time 1.183e-06/0.01924, allocations: 0 / 313.1 MB, free: 1.188 MB / 298.7 MB Notification: Performance of Templates: time 0.006922/0.02616, allocations: 5.269 MB / 318.4 MB, free: 12.04 MB / 314.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 -ignoreHideResult -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,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.976994689553976]