Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test21.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) Running command: translateModel(ModelicaTest.Tables.CombiTimeTable.Test21,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|t_new.y.1.|d_t_new.y",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test21") translateModel(ModelicaTest.Tables.CombiTimeTable.Test21,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|t_new.y.1.|d_t_new.y",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test21") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001033/0.001033, allocations: 196.1 kB / 16.1 MB, free: 5.703 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.361/1.361, allocations: 226.5 MB / 243.4 MB, free: 6.492 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009571/0.0009565, allocations: 99.02 kB / 295.5 MB, free: 6.691 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3296/0.3296, allocations: 44.82 MB / 392.3 MB, free: 35.71 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002708/0.0002708, allocations: 12 kB / 465.3 MB, free: 12.67 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2629/0.2632, allocations: 62.95 MB / 0.5159 GB, free: 37.36 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Tables.CombiTimeTable.Test21): time 0.001566/0.2648, allocations: 1.429 MB / 0.5173 GB, free: 36.31 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.001071/0.2659, allocations: 0.9439 MB / 0.5182 GB, free: 35.67 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.234e-05/0.266, allocations: 2.906 kB / 0.5182 GB, free: 35.67 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002421/0.2662, allocations: 41.02 kB / 0.5182 GB, free: 35.65 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002001/0.2664, allocations: 76.56 kB / 0.5183 GB, free: 35.61 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002181/0.2667, allocations: 96.38 kB / 0.5184 GB, free: 35.56 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001205/0.2668, allocations: 93.55 kB / 0.5185 GB, free: 35.52 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.278e-05/0.2669, allocations: 13.91 kB / 0.5185 GB, free: 35.51 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.631e-05/0.267, allocations: 40.97 kB / 0.5185 GB, free: 35.49 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.59e-05/0.267, allocations: 27.31 kB / 0.5186 GB, free: 35.48 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 1.314e-05/0.2671, allocations: 2.906 kB / 0.5186 GB, free: 35.48 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.547e-05/0.2671, allocations: 44.53 kB / 0.5186 GB, free: 35.46 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 3.874e-05/0.2672, allocations: 13.19 kB / 0.5186 GB, free: 35.46 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 4.532e-05/0.2672, allocations: 58.02 kB / 0.5187 GB, free: 35.41 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001199/0.2674, allocations: 94.56 kB / 0.5188 GB, free: 35.38 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.408e-06/0.2674, allocations: 0 / 0.5188 GB, free: 35.38 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.323e-06/0.2674, allocations: 0 / 0.5188 GB, free: 35.38 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.148e-06/0.2674, allocations: 0 / 0.5188 GB, free: 35.38 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 6 * Number of variables: 6 Notification: Performance of Generate backend data structure: time 0.0004153/0.2678, allocations: 395 kB / 0.5192 GB, free: 34.98 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.126e-05/0.2678, allocations: 8.719 kB / 0.5192 GB, free: 34.98 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.219e-05/0.2679, allocations: 18.62 kB / 0.5192 GB, free: 34.97 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001589/0.268, allocations: 215.9 kB / 0.5194 GB, free: 34.75 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.497e-05/0.2681, allocations: 7.312 kB / 0.5194 GB, free: 34.74 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.864e-05/0.2681, allocations: 7.062 kB / 0.5194 GB, free: 34.74 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001218/0.2682, allocations: 51.67 kB / 0.5194 GB, free: 34.7 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.083e-05/0.2682, allocations: 0 / 0.5194 GB, free: 34.7 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.827e-06/0.2683, allocations: 7.172 kB / 0.5195 GB, free: 34.7 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.576e-06/0.2683, allocations: 0 / 0.5195 GB, free: 34.7 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.242e-05/0.2683, allocations: 18.62 kB / 0.5195 GB, free: 34.69 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002674/0.2686, allocations: 296.4 kB / 0.5198 GB, free: 34.39 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001332/0.2688, allocations: 59.55 kB / 0.5198 GB, free: 34.36 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.315e-05/0.2688, allocations: 18.2 kB / 0.5198 GB, free: 34.34 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.932e-05/0.2688, allocations: 3.234 kB / 0.5198 GB, free: 34.34 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001348/0.269, allocations: 72.58 kB / 0.5199 GB, free: 34.28 MB / 378.7 MB Notification: Performance of pre-optimization done (n=6): time 1.262e-06/0.269, allocations: 0 / 0.5199 GB, free: 34.28 MB / 378.7 MB Notification: Performance of matching and sorting (n=8): time 0.0004418/0.2694, allocations: 173.2 kB / 0.5201 GB, free: 34.2 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.542e-05/0.2695, allocations: 51.41 kB / 0.5201 GB, free: 34.13 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000138/0.2696, allocations: 198.8 kB / 0.5203 GB, free: 34 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 9.438e-06/0.2696, allocations: 25.7 kB / 0.5203 GB, free: 33.97 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.48e-05/0.2697, allocations: 105.6 kB / 0.5204 GB, free: 33.88 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.1e-05/0.2697, allocations: 29.66 kB / 0.5205 GB, free: 33.85 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.34e-06/0.2697, allocations: 7 kB / 0.5205 GB, free: 33.85 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 4.518e-05/0.2698, allocations: 329.1 kB / 0.5208 GB, free: 33.52 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.897e-05/0.2698, allocations: 20.08 kB / 0.5208 GB, free: 33.52 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.007e-05/0.2699, allocations: 35.69 kB / 0.5208 GB, free: 33.49 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.124e-05/0.27, allocations: 55.31 kB / 0.5209 GB, free: 33.46 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.71e-07/0.27, allocations: 4 kB / 0.5209 GB, free: 33.46 MB / 378.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001485/0.2701, allocations: 96.64 kB / 0.521 GB, free: 33.4 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.089e-05/0.2701, allocations: 5.969 kB / 0.521 GB, free: 33.4 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.398e-06/0.2702, allocations: 3.844 kB / 0.521 GB, free: 33.4 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.203e-05/0.2702, allocations: 2.656 kB / 0.521 GB, free: 33.4 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.699e-05/0.2703, allocations: 11.94 kB / 0.521 GB, free: 33.4 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.722e-06/0.2703, allocations: 0 / 0.521 GB, free: 33.4 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.473e-05/0.2703, allocations: 14.28 kB / 0.521 GB, free: 33.39 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.624e-06/0.2704, allocations: 6.422 kB / 0.521 GB, free: 33.39 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.t_new.nextTimeEvent,t_new.nextTimeEvent,$PRE.t_new.nextTimeEventScaled,t_new.nextTimeEventScaled) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (10): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.899e-05/0.2704, allocations: 131.5 kB / 0.5211 GB, free: 33.26 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.51e-05/0.2704, allocations: 6.75 kB / 0.5212 GB, free: 33.26 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.673e-05/0.2705, allocations: 18.61 kB / 0.5212 GB, free: 33.25 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.454e-06/0.2705, allocations: 3.031 kB / 0.5212 GB, free: 33.25 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.106e-06/0.2705, allocations: 3.938 kB / 0.5212 GB, free: 33.25 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.358e-06/0.2705, allocations: 3.938 kB / 0.5212 GB, free: 33.24 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003166/0.2708, allocations: 394.7 kB / 0.5216 GB, free: 32.89 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/0.2708, allocations: 3.938 kB / 0.5216 GB, free: 32.89 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.005e-05/0.2709, allocations: 12.06 kB / 0.5216 GB, free: 32.89 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.744e-06/0.2709, allocations: 0 / 0.5216 GB, free: 32.89 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.598e-06/0.2709, allocations: 10.91 kB / 0.5216 GB, free: 32.88 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.613e-06/0.2709, allocations: 240 / 0.5216 GB, free: 32.88 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.773e-06/0.2709, allocations: 3.375 kB / 0.5216 GB, free: 32.88 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001672/0.2711, allocations: 213.3 kB / 0.5218 GB, free: 32.7 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.84e-05/0.2711, allocations: 91.69 kB / 0.5219 GB, free: 32.6 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.362e-05/0.2712, allocations: 10.69 kB / 0.5219 GB, free: 32.59 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.098e-05/0.2712, allocations: 6.172 kB / 0.5219 GB, free: 32.59 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.559e-05/0.2713, allocations: 6.969 kB / 0.5219 GB, free: 32.59 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.321e-05/0.2713, allocations: 6.531 kB / 0.5219 GB, free: 32.59 MB / 378.7 MB Notification: Performance of sorting global known variables: time 8.398e-05/0.2714, allocations: 143.8 kB / 0.522 GB, free: 32.49 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2714, allocations: 0 / 0.522 GB, free: 32.49 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002319/0.2716, allocations: 24.92 kB / 0.5221 GB, free: 32.49 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,t_new.nextTimeEvent,t_new.nextTimeEventScaled) * Number of discrete states: 2 (t_new.nextTimeEvent,t_new.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000836/0.2725, allocations: 460 kB / 0.5225 GB, free: 32.25 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0001471/0.2726, allocations: 57.02 kB / 0.5226 GB, free: 32.24 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.503e-06/0.2726, allocations: 4.062 kB / 0.5226 GB, free: 32.23 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 5.777e-05/0.2727, allocations: 30.2 kB / 0.5226 GB, free: 32.22 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000298/0.273, allocations: 33.2 kB / 0.5226 GB, free: 32.21 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003612/0.2734, allocations: 281.6 kB / 0.5229 GB, free: 31.99 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001116/0.2735, allocations: 0.7051 MB / 0.5236 GB, free: 31.29 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.266e-05/0.2735, allocations: 19.62 kB / 0.5236 GB, free: 31.28 MB / 378.7 MB Notification: Performance of SimCode: time 3.11e-07/0.2735, allocations: 0 / 0.5236 GB, free: 31.28 MB / 378.7 MB Notification: Performance of Templates: time 0.002842/0.2764, allocations: 1.932 MB / 0.5255 GB, free: 31.07 MB / 378.7 MB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test21.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test21.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test21.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test21.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test21.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test21 --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test21.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test21_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Tables/CombiTimeTable/Test21/Test21.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test21.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches