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.0009486/0.0009486, allocations: 88.73 kB / 21.5 MB, free: 2.984 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.0009409/0.0009409, allocations: 164.2 kB / 24.91 MB, free: 8.762 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.9405/0.9405, allocations: 177 MB / 205.2 MB, free: 5.055 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.2693/0.2693, allocations: 34.85 MB / 296.6 MB, free: 456 kB / 266.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.863e-06/1.863e-06, allocations: 0 / 325.9 MB, free: 7.188 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.458e-05/2.644e-05, allocations: 5.406 kB / 325.9 MB, free: 7.184 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches): time 0.002916/0.002943, allocations: 2.912 MB / 328.8 MB, free: 4.254 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001109/0.004051, allocations: 0.6941 MB / 329.5 MB, free: 3.555 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001321/0.004183, allocations: 11.88 kB / 329.5 MB, free: 3.543 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001457/0.004329, allocations: 55.5 kB / 329.6 MB, free: 3.488 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001329/0.004462, allocations: 99.05 kB / 329.7 MB, free: 3.391 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001618/0.004624, allocations: 95.86 kB / 329.8 MB, free: 3.297 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003234/0.004947, allocations: 430.8 kB / 330.2 MB, free: 2.875 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001618/0.005109, allocations: 85.97 kB / 330.3 MB, free: 2.793 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001836/0.005292, allocations: 231.5 kB / 330.5 MB, free: 2.566 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001391/0.005431, allocations: 123.6 kB / 330.6 MB, free: 2.445 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.188e-05/0.005473, allocations: 40 kB / 330.7 MB, free: 2.406 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.011e-05/0.005503, allocations: 32 kB / 330.7 MB, free: 2.375 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.717e-05/0.00555, allocations: 71.75 kB / 330.8 MB, free: 2.305 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 8.643e-05/0.005637, allocations: 127.7 kB / 330.9 MB, free: 2.18 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003133/0.00595, allocations: 255.1 kB / 331.1 MB, free: 1.93 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.939e-06/0.005955, allocations: 8 kB / 331.1 MB, free: 1.922 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.082e-06/0.005956, allocations: 0 / 331.1 MB, free: 1.922 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.128e-06/0.00596, allocations: 0 / 331.1 MB, free: 1.922 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.0005854/0.006546, allocations: 0.5325 MB / 331.7 MB, free: 1.367 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.349e-05/0.006579, allocations: 15.97 kB / 331.7 MB, free: 1.352 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.67e-05/0.006636, allocations: 44.91 kB / 331.7 MB, free: 1.309 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002052/0.006841, allocations: 190.7 kB / 331.9 MB, free: 1.098 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.809e-05/0.006879, allocations: 21.03 kB / 331.9 MB, free: 1.078 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.986e-05/0.006909, allocations: 28.38 kB / 332 MB, free: 1.051 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003061/0.007215, allocations: 349.9 kB / 332.3 MB, free: 0.6602 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.035e-05/0.007226, allocations: 192 / 332.3 MB, free: 0.6602 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.942e-05/0.007245, allocations: 12.38 kB / 332.3 MB, free: 0.6484 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.162e-05/0.007257, allocations: 11.94 kB / 332.3 MB, free: 0.6367 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001027/0.007359, allocations: 80.5 kB / 332.4 MB, free: 0.5625 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009919/0.008351, allocations: 0.8854 MB / 333.3 MB, free: 15.63 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002644/0.008616, allocations: 203.1 kB / 333.5 MB, free: 15.42 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.449e-05/0.0087, allocations: 69.3 kB / 333.6 MB, free: 15.35 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.365e-05/0.008714, allocations: 12.23 kB / 333.6 MB, free: 15.34 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.304e-05/0.008737, allocations: 38.78 kB / 333.6 MB, free: 15.29 MB / 314.7 MB Notification: Performance of pre-optimization done (n=27): time 1.293e-06/0.008738, allocations: 0 / 333.6 MB, free: 15.29 MB / 314.7 MB Notification: Performance of matching and sorting (n=27): time 0.0009863/0.009724, allocations: 0.5252 MB / 334.1 MB, free: 14.76 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.732e-05/0.009752, allocations: 59.41 kB / 334.2 MB, free: 14.69 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001183/0.00987, allocations: 207.5 kB / 334.4 MB, free: 14.47 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.662e-05/0.009887, allocations: 33.7 kB / 334.4 MB, free: 14.43 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.583e-05/0.009953, allocations: 164.5 kB / 334.6 MB, free: 14.27 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.484e-05/0.009997, allocations: 95.19 kB / 334.7 MB, free: 14.18 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.905e-05/0.01006, allocations: 58.52 kB / 334.7 MB, free: 14.11 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 8.336e-05/0.01014, allocations: 330.7 kB / 335.1 MB, free: 13.78 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.194e-05/0.01018, allocations: 35.92 kB / 335.1 MB, free: 13.75 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.899e-05/0.01025, allocations: 83.95 kB / 335.2 MB, free: 13.65 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001264/0.01038, allocations: 132.1 kB / 335.3 MB, free: 13.5 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.327e-06/0.01038, allocations: 0 / 335.3 MB, free: 13.5 MB / 314.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0003455/0.01073, allocations: 263 kB / 335.6 MB, free: 13.23 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.869e-05/0.01074, allocations: 8 kB / 335.6 MB, free: 13.23 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.875e-06/0.01075, allocations: 4 kB / 335.6 MB, free: 13.22 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004488/0.0112, allocations: 169.5 kB / 335.7 MB, free: 13.05 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.639e-05/0.01129, allocations: 31.98 kB / 335.8 MB, free: 13.02 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001682/0.01297, allocations: 2.748 MB / 338.5 MB, free: 10.09 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001287/0.0131, allocations: 35.77 kB / 338.6 MB, free: 10.06 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.563e-05/0.01311, allocations: 8 kB / 338.6 MB, free: 10.05 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.389e-05/0.01321, allocations: 117.8 kB / 338.7 MB, free: 9.926 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.376e-05/0.01324, allocations: 23.98 kB / 338.7 MB, free: 9.902 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.888e-05/0.01327, allocations: 38.64 kB / 338.7 MB, free: 9.863 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.773e-06/0.01327, allocations: 4.031 kB / 338.7 MB, free: 9.859 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.085e-06/0.01328, allocations: 7.938 kB / 338.7 MB, free: 9.852 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.167e-06/0.01328, allocations: 3.984 kB / 338.8 MB, free: 9.848 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005308/0.01382, allocations: 0.4927 MB / 339.2 MB, free: 9.324 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.074e-06/0.01382, allocations: 4 kB / 339.2 MB, free: 9.32 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.994e-05/0.01386, allocations: 16 kB / 339.3 MB, free: 9.305 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003377/0.01419, allocations: 181.7 kB / 339.4 MB, free: 9.121 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.783e-06/0.0142, allocations: 0 / 339.4 MB, free: 9.121 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001361/0.01556, allocations: 2.733 MB / 342.2 MB, free: 6.215 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.01556, allocations: 3.984 kB / 342.2 MB, free: 6.211 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003104/0.01587, allocations: 333.9 kB / 342.5 MB, free: 5.863 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.864e-05/0.01592, allocations: 35.78 kB / 342.5 MB, free: 5.828 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.621e-05/0.01594, allocations: 11.97 kB / 342.6 MB, free: 5.816 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.694e-05/0.01603, allocations: 19.98 kB / 342.6 MB, free: 5.797 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.229e-05/0.01608, allocations: 35.94 kB / 342.6 MB, free: 5.762 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.413e-06/0.01609, allocations: 4 kB / 342.6 MB, free: 5.758 MB / 314.7 MB Notification: Performance of sorting global known variables: time 4.458e-05/0.01613, allocations: 62.23 kB / 342.7 MB, free: 5.695 MB / 314.7 MB Notification: Performance of sort global known variables: time 2e-08/0.01613, allocations: 0 / 342.7 MB, free: 5.695 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.000246/0.01638, allocations: 111.8 kB / 342.8 MB, free: 5.586 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 9.282e-05/0.01647, allocations: 92.34 kB / 342.9 MB, free: 5.488 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0003981/0.01687, allocations: 425.6 kB / 343.3 MB, free: 5.047 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.348e-06/0.01687, allocations: 0 / 343.3 MB, free: 5.047 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002199/0.01709, allocations: 394.8 kB / 343.7 MB, free: 4.633 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001935/0.01729, allocations: 40.47 kB / 343.7 MB, free: 4.594 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006727/0.01796, allocations: 476.2 kB / 344.2 MB, free: 4.102 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.546e-05/0.01801, allocations: 100.4 kB / 344.3 MB, free: 3.98 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 5.345e-05/0.01807, allocations: 18.3 kB / 344.3 MB, free: 3.957 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001077/0.01817, allocations: 91.34 kB / 344.4 MB, free: 3.867 MB / 314.7 MB Notification: Performance of SimCode: time 7.51e-07/0.01818, allocations: 0 / 344.4 MB, free: 3.867 MB / 314.7 MB Notification: Performance of Templates: time 0.006578/0.02475, allocations: 4.99 MB / 349.4 MB, free: 14.99 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.0906585953198373]