Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test22.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.Test22,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|t_new.y.1.|d_t_new.y",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test22") translateModel(ModelicaTest.Tables.CombiTimeTable.Test22,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|t_new.y.1.|d_t_new.y",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test22") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009357/0.0009398, allocations: 201.6 kB / 15.8 MB, free: 6.332 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.228/1.228, allocations: 226.6 MB / 243.1 MB, free: 14.29 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007772/0.0007772, allocations: 100.7 kB / 295.1 MB, free: 10.05 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1828/0.1828, allocations: 44.83 MB / 392 MB, free: 9.32 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002439/0.0002439, allocations: 16 kB / 464.7 MB, free: 49.76 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09259/0.09284, allocations: 62.95 MB / 0.5153 GB, free: 2.766 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Tables.CombiTimeTable.Test22): time 0.002056/0.09496, allocations: 1.42 MB / 0.5167 GB, free: 1.328 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.001304/0.09628, allocations: 0.948 MB / 0.5176 GB, free: 384 kB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.064e-05/0.09636, allocations: 3.938 kB / 0.5176 GB, free: 380 kB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002389/0.0966, allocations: 39.89 kB / 0.5177 GB, free: 340 kB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002019/0.09682, allocations: 71.73 kB / 0.5178 GB, free: 268 kB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002345/0.09706, allocations: 99.77 kB / 0.5178 GB, free: 168 kB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.000126/0.0972, allocations: 87.7 kB / 0.5179 GB, free: 80 kB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 7.495e-05/0.09728, allocations: 11.98 kB / 0.5179 GB, free: 68 kB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.2e-05/0.09736, allocations: 39.78 kB / 0.518 GB, free: 28 kB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.748e-05/0.09742, allocations: 27.86 kB / 0.518 GB, free: 0 / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.1691/0.2666, allocations: 1.078 kB / 0.518 GB, free: 9.867 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001522/0.2667, allocations: 31.78 kB / 0.518 GB, free: 9.867 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 4.404e-05/0.2668, allocations: 20.12 kB / 0.5181 GB, free: 9.867 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 3.953e-05/0.2668, allocations: 40.86 kB / 0.5181 GB, free: 9.836 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00016/0.267, allocations: 90.05 kB / 0.5182 GB, free: 9.836 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.088e-06/0.267, allocations: 0.5625 kB / 0.5182 GB, free: 9.836 MB / 346.7 MB Notification: Performance of FrontEnd: time 8.01e-07/0.267, allocations: 0 / 0.5182 GB, free: 9.836 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.148e-06/0.267, allocations: 1 kB / 0.5182 GB, free: 9.836 MB / 346.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.0003617/0.2674, allocations: 402.4 kB / 0.5186 GB, free: 9.461 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.791e-05/0.2674, allocations: 9.062 kB / 0.5186 GB, free: 9.461 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.337e-05/0.2675, allocations: 14.44 kB / 0.5186 GB, free: 9.453 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000157/0.2676, allocations: 206.6 kB / 0.5188 GB, free: 9.246 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.374e-05/0.2677, allocations: 3.734 kB / 0.5188 GB, free: 9.246 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.402e-05/0.2677, allocations: 3.156 kB / 0.5188 GB, free: 9.246 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001209/0.2678, allocations: 53.09 kB / 0.5188 GB, free: 9.215 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.446e-06/0.2678, allocations: 4.469 kB / 0.5188 GB, free: 9.215 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.022e-05/0.2678, allocations: 4.109 kB / 0.5189 GB, free: 9.215 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.616e-06/0.2679, allocations: 5.25 kB / 0.5189 GB, free: 9.215 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.782e-05/0.2679, allocations: 18.47 kB / 0.5189 GB, free: 9.215 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002622/0.2682, allocations: 292.5 kB / 0.5192 GB, free: 8.945 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001533/0.2684, allocations: 58.03 kB / 0.5192 GB, free: 8.922 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.09e-05/0.2684, allocations: 21.22 kB / 0.5192 GB, free: 8.914 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.693e-05/0.2684, allocations: 2.938 kB / 0.5192 GB, free: 8.914 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001414/0.2686, allocations: 78.22 kB / 0.5193 GB, free: 8.859 MB / 346.7 MB Notification: Performance of pre-optimization done (n=6): time 1.222e-06/0.2686, allocations: 0 / 0.5193 GB, free: 8.859 MB / 346.7 MB Notification: Performance of matching and sorting (n=8): time 0.0004711/0.2691, allocations: 168.4 kB / 0.5195 GB, free: 8.812 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.11e-05/0.2691, allocations: 53.39 kB / 0.5195 GB, free: 8.75 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001636/0.2693, allocations: 201 kB / 0.5197 GB, free: 8.645 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 9.588e-06/0.2693, allocations: 27.8 kB / 0.5197 GB, free: 8.613 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.988e-05/0.2693, allocations: 102.5 kB / 0.5198 GB, free: 8.531 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.38e-05/0.2694, allocations: 34.39 kB / 0.5199 GB, free: 8.512 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.448e-06/0.2694, allocations: 1.5 kB / 0.5199 GB, free: 8.512 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 4.382e-05/0.2694, allocations: 325.5 kB / 0.5202 GB, free: 8.199 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.679e-05/0.2695, allocations: 22.7 kB / 0.5202 GB, free: 8.199 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.148e-05/0.2696, allocations: 35.98 kB / 0.5202 GB, free: 8.184 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.378e-05/0.2696, allocations: 25.44 kB / 0.5203 GB, free: 8.184 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.92e-07/0.2696, allocations: 0 / 0.5203 GB, free: 8.184 MB / 346.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.000172/0.2698, allocations: 107.2 kB / 0.5204 GB, free: 8.141 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.099e-05/0.2698, allocations: 5.375 kB / 0.5204 GB, free: 8.141 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.789e-06/0.2698, allocations: 0 / 0.5204 GB, free: 8.141 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.768e-06/0.2698, allocations: 6.234 kB / 0.5204 GB, free: 8.137 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.756e-05/0.2699, allocations: 15.39 kB / 0.5204 GB, free: 8.137 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.938e-06/0.2699, allocations: 1.484 kB / 0.5204 GB, free: 8.137 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.558e-05/0.27, allocations: 4.734 kB / 0.5204 GB, free: 8.137 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.498e-06/0.27, allocations: 10.36 kB / 0.5204 GB, free: 8.133 MB / 346.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 7.194e-05/0.2701, allocations: 131.4 kB / 0.5205 GB, free: 8.016 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.067e-05/0.2701, allocations: 10.52 kB / 0.5205 GB, free: 8.012 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.59e-05/0.2702, allocations: 16.12 kB / 0.5206 GB, free: 8.012 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.034e-06/0.2702, allocations: 1.594 kB / 0.5206 GB, free: 8.012 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.095e-06/0.2702, allocations: 0.5625 kB / 0.5206 GB, free: 8.012 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.625e-06/0.2702, allocations: 1.203 kB / 0.5206 GB, free: 8.012 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003361/0.2705, allocations: 395.3 kB / 0.5209 GB, free: 7.707 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/0.2705, allocations: 5.281 kB / 0.5209 GB, free: 7.703 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.329e-05/0.2706, allocations: 9.016 kB / 0.5209 GB, free: 7.703 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.216e-06/0.2706, allocations: 1.766 kB / 0.521 GB, free: 7.703 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.306e-06/0.2706, allocations: 2.5 kB / 0.521 GB, free: 7.703 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.343e-06/0.2706, allocations: 0 / 0.521 GB, free: 7.703 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.093e-06/0.2706, allocations: 5.766 kB / 0.521 GB, free: 7.699 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000171/0.2708, allocations: 205.6 kB / 0.5212 GB, free: 7.555 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.903e-05/0.2708, allocations: 93.27 kB / 0.5212 GB, free: 7.453 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.006e-05/0.2708, allocations: 2.531 kB / 0.5212 GB, free: 7.453 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.834e-05/0.2709, allocations: 3.719 kB / 0.5212 GB, free: 7.453 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.53e-05/0.2709, allocations: 16.8 kB / 0.5213 GB, free: 7.445 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.231e-05/0.271, allocations: 4.734 kB / 0.5213 GB, free: 7.445 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001013/0.2711, allocations: 146.8 kB / 0.5214 GB, free: 7.371 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2711, allocations: 0 / 0.5214 GB, free: 7.371 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002205/0.2713, allocations: 25.67 kB / 0.5214 GB, free: 7.367 MB / 346.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.0008079/0.2721, allocations: 463.6 kB / 0.5219 GB, free: 7.148 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001483/0.2723, allocations: 55.81 kB / 0.5219 GB, free: 7.148 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.373e-06/0.2723, allocations: 1.25 kB / 0.5219 GB, free: 7.148 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 6.276e-05/0.2724, allocations: 33.58 kB / 0.522 GB, free: 7.145 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002857/0.2726, allocations: 30.41 kB / 0.522 GB, free: 7.141 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003394/0.273, allocations: 276.4 kB / 0.5223 GB, free: 6.941 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001157/0.2731, allocations: 0.7036 MB / 0.5229 GB, free: 6.246 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.142e-05/0.2732, allocations: 19.12 kB / 0.523 GB, free: 6.238 MB / 346.7 MB Notification: Performance of SimCode: time 2.3e-07/0.2732, allocations: 0 / 0.523 GB, free: 6.238 MB / 346.7 MB Notification: Performance of Templates: time 0.003253/0.2764, allocations: 1.934 MB / 0.5248 GB, free: 6.047 MB / 346.7 MB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test22.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test22.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test22.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test22.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test22.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test22 --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test22.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test22_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Tables/CombiTimeTable/Test22/Test22.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test22.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches