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.0008873/0.0008873, allocations: 80.11 kB / 9.934 MB, free: 0.7539 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001026/0.001913, allocations: 449.7 kB / 10.37 MB, free: 324 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.0007205/0.0007205, allocations: 165.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0008946/0.001615, allocations: 463.6 kB / 11.72 MB, free: 2.453 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 1.019/1.019, allocations: 177.4 MB / 189.9 MB, free: 4.828 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.09606/1.115, allocations: 53.86 MB / 243.7 MB, free: 14.91 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.2716/0.2716, allocations: 34.86 MB / 279.3 MB, free: 14.91 MB / 282.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.03687/0.3085, allocations: 13.23 MB / 292.6 MB, free: 6.457 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 2.394e-06/2.394e-06, allocations: 0 / 293.8 MB, free: 5.199 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 4.122e-05/4.361e-05, allocations: 4 kB / 293.9 MB, free: 5.195 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches): time 0.007263/0.007307, allocations: 2.962 MB / 296.8 MB, free: 2.219 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.004939/0.01225, allocations: 0.7097 MB / 297.5 MB, free: 1.504 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002455/0.01249, allocations: 11.94 kB / 297.5 MB, free: 1.492 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001683/0.01266, allocations: 55.44 kB / 297.6 MB, free: 1.438 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003169/0.01298, allocations: 99.05 kB / 297.7 MB, free: 1.34 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003017/0.01328, allocations: 95.86 kB / 297.8 MB, free: 1.246 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.003618/0.0169, allocations: 422.1 kB / 298.2 MB, free: 0.832 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000231/0.01713, allocations: 93.95 kB / 298.3 MB, free: 0.7422 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003989/0.01753, allocations: 239.5 kB / 298.5 MB, free: 0.5078 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002184/0.01774, allocations: 127.7 kB / 298.6 MB, free: 392 kB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 7.179e-05/0.01782, allocations: 32 kB / 298.7 MB, free: 360 kB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.908e-05/0.01787, allocations: 36 kB / 298.7 MB, free: 324 kB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 5.681e-05/0.01793, allocations: 51.81 kB / 298.8 MB, free: 272 kB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001262/0.01806, allocations: 103.8 kB / 298.9 MB, free: 168 kB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003582/0.01842, allocations: 236.8 kB / 299.1 MB, free: 15.93 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.775e-05/0.01843, allocations: 4 kB / 299.1 MB, free: 15.93 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.593e-06/0.01844, allocations: 0 / 299.1 MB, free: 15.93 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.932e-05/0.01845, allocations: 0 / 299.1 MB, free: 15.93 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.0008748/0.01933, allocations: 0.6023 MB / 299.7 MB, free: 15.3 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.502e-05/0.01936, allocations: 8.922 kB / 299.7 MB, free: 15.29 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.146e-05/0.01945, allocations: 48.89 kB / 299.8 MB, free: 15.25 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003376/0.02282, allocations: 181.2 kB / 299.9 MB, free: 15.04 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.62e-05/0.02286, allocations: 24.97 kB / 300 MB, free: 15.02 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.851e-05/0.0229, allocations: 28.38 kB / 300 MB, free: 14.99 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004181/0.02331, allocations: 350 kB / 300.3 MB, free: 14.61 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.116e-05/0.02333, allocations: 4.188 kB / 300.3 MB, free: 14.6 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.479e-05/0.02335, allocations: 12.38 kB / 300.3 MB, free: 14.59 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.05e-05/0.02336, allocations: 7.938 kB / 300.3 MB, free: 14.58 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001607/0.02352, allocations: 80.48 kB / 300.4 MB, free: 14.5 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001411/0.02493, allocations: 0.897 MB / 301.3 MB, free: 13.56 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003679/0.0253, allocations: 195.2 kB / 301.5 MB, free: 13.36 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001289/0.02543, allocations: 74.28 kB / 301.6 MB, free: 13.29 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.625e-05/0.02545, allocations: 4.234 kB / 301.6 MB, free: 13.28 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.946e-05/0.02547, allocations: 38.8 kB / 301.6 MB, free: 13.23 MB / 298.7 MB Notification: Performance of pre-optimization done (n=27): time 8.486e-06/0.02548, allocations: 3.984 kB / 301.6 MB, free: 13.23 MB / 298.7 MB Notification: Performance of matching and sorting (n=27): time 0.004499/0.02998, allocations: 0.5324 MB / 302.2 MB, free: 12.69 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.323e-05/0.03002, allocations: 59.34 kB / 302.2 MB, free: 12.62 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001683/0.03018, allocations: 209 kB / 302.4 MB, free: 12.4 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.313e-05/0.03021, allocations: 29.7 kB / 302.5 MB, free: 12.37 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.899e-05/0.0303, allocations: 168.5 kB / 302.6 MB, free: 12.2 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.519e-05/0.03036, allocations: 91.2 kB / 302.7 MB, free: 12.11 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.26e-05/0.03044, allocations: 62.52 kB / 302.8 MB, free: 12.04 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 9.979e-05/0.03054, allocations: 338.7 kB / 303.1 MB, free: 11.7 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.232e-05/0.03062, allocations: 27.98 kB / 303.1 MB, free: 11.68 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.521e-05/0.03071, allocations: 76.11 kB / 303.2 MB, free: 11.59 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003326/0.03104, allocations: 136.1 kB / 303.3 MB, free: 11.44 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.208e-06/0.03105, allocations: 0 / 303.3 MB, free: 11.44 MB / 298.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0005144/0.03156, allocations: 266.9 kB / 303.6 MB, free: 11.16 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.003047/0.03461, allocations: 4 kB / 303.6 MB, free: 11.16 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.064e-05/0.03462, allocations: 0 / 303.6 MB, free: 11.16 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007306/0.03535, allocations: 177.6 kB / 303.8 MB, free: 10.98 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001356/0.03549, allocations: 35.92 kB / 303.8 MB, free: 10.95 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00535/0.04084, allocations: 2.741 MB / 306.6 MB, free: 8.023 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001404/0.04098, allocations: 31.77 kB / 306.6 MB, free: 7.992 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.4e-05/0.04099, allocations: 12.06 kB / 306.6 MB, free: 7.98 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.0001246/0.04112, allocations: 129.8 kB / 306.7 MB, free: 7.844 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.766e-05/0.04116, allocations: 23.97 kB / 306.7 MB, free: 7.82 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.251e-05/0.04121, allocations: 34.66 kB / 306.8 MB, free: 7.789 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.876e-06/0.04121, allocations: 0 / 306.8 MB, free: 7.789 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.261e-05/0.04122, allocations: 7.938 kB / 306.8 MB, free: 7.781 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.843e-06/0.04123, allocations: 7.969 kB / 306.8 MB, free: 7.773 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007668/0.04199, allocations: 492.4 kB / 307.3 MB, free: 7.262 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.635e-06/0.042, allocations: 3.938 kB / 307.3 MB, free: 7.258 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.863e-05/0.04207, allocations: 27.98 kB / 307.3 MB, free: 7.23 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.04e-05/0.04214, allocations: 31.73 kB / 307.3 MB, free: 7.199 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004823/0.04262, allocations: 169.5 kB / 307.5 MB, free: 7.027 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.382e-05/0.04263, allocations: 4 kB / 307.5 MB, free: 7.023 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002016/0.04465, allocations: 2.73 MB / 310.2 MB, free: 4.121 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.465e-06/0.04465, allocations: 0 / 310.2 MB, free: 4.121 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004925/0.04514, allocations: 343 kB / 310.6 MB, free: 3.766 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.214e-05/0.04517, allocations: 11.94 kB / 310.6 MB, free: 3.754 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.825e-05/0.04525, allocations: 23.97 kB / 310.6 MB, free: 3.73 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.251e-05/0.04532, allocations: 31.95 kB / 310.6 MB, free: 3.699 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.025e-05/0.04533, allocations: 11.92 kB / 310.6 MB, free: 3.688 MB / 298.7 MB Notification: Performance of sorting global known variables: time 5.615e-05/0.04538, allocations: 66.19 kB / 310.7 MB, free: 3.621 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.04538, allocations: 0 / 310.7 MB, free: 3.621 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003633/0.04575, allocations: 111.8 kB / 310.8 MB, free: 3.512 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.0001523/0.0459, allocations: 80.42 kB / 310.9 MB, free: 3.426 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0006174/0.04652, allocations: 429.3 kB / 311.3 MB, free: 2.984 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.314e-05/0.04654, allocations: 7.984 kB / 311.3 MB, free: 2.977 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002903/0.04683, allocations: 373.8 kB / 311.7 MB, free: 2.582 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002516/0.04708, allocations: 73.25 kB / 311.8 MB, free: 2.512 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002522/0.0496, allocations: 0.4904 MB / 312.3 MB, free: 1.996 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001003/0.0497, allocations: 108.2 kB / 312.4 MB, free: 1.871 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 7.931e-05/0.04978, allocations: 14.3 kB / 312.4 MB, free: 1.855 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001324/0.04992, allocations: 95.33 kB / 312.5 MB, free: 1.762 MB / 298.7 MB Notification: Performance of SimCode: time 1.834e-06/0.04992, allocations: 4 kB / 312.5 MB, free: 1.758 MB / 298.7 MB Notification: Performance of Templates: time 0.007859/0.05778, allocations: 5.138 MB / 317.6 MB, free: 12.72 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,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.016902431845665]