Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test14.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.Test14,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|err1.y|trapezoid1.T_start|trapezoid1.count",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test14") translateModel(ModelicaTest.Tables.CombiTimeTable.Test14,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|err1.y|trapezoid1.T_start|trapezoid1.count",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test14") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001099/0.001099, allocations: 197.7 kB / 15.8 MB, free: 6.023 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.249/1.249, allocations: 226.6 MB / 243.1 MB, free: 14.3 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0006898/0.0006899, allocations: 97.17 kB / 295.1 MB, free: 10.07 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1782/0.1782, allocations: 44.83 MB / 392 MB, free: 9.352 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002454/0.0002454, allocations: 12 kB / 464.8 MB, free: 49.77 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0884/0.08866, allocations: 62.96 MB / 0.5153 GB, free: 2.77 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Tables.CombiTimeTable.Test14): time 0.002137/0.09083, allocations: 1.694 MB / 0.517 GB, free: 1.059 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.001444/0.09229, allocations: 1.03 MB / 0.518 GB, free: 24 kB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.764e-05/0.0924, allocations: 7.938 kB / 0.518 GB, free: 16 kB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.1757/0.2681, allocations: 33.55 kB / 0.518 GB, free: 9.824 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003832/0.2685, allocations: 88.86 kB / 0.5181 GB, free: 9.824 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004418/0.269, allocations: 115.2 kB / 0.5182 GB, free: 9.824 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002716/0.2693, allocations: 175.9 kB / 0.5184 GB, free: 9.824 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001175/0.2694, allocations: 26.84 kB / 0.5184 GB, free: 9.824 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001378/0.2695, allocations: 74.16 kB / 0.5185 GB, free: 9.824 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001155/0.2697, allocations: 67.94 kB / 0.5186 GB, free: 9.824 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 2.653e-05/0.2697, allocations: 6.156 kB / 0.5186 GB, free: 9.824 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001078/0.2698, allocations: 38.98 kB / 0.5186 GB, free: 9.824 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 5.708e-05/0.2699, allocations: 34.11 kB / 0.5186 GB, free: 9.82 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 5.431e-05/0.2699, allocations: 49.95 kB / 0.5187 GB, free: 9.785 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002219/0.2702, allocations: 142.6 kB / 0.5188 GB, free: 9.77 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.2702, allocations: 0.7969 kB / 0.5188 GB, free: 9.77 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.583e-06/0.2702, allocations: 0 / 0.5188 GB, free: 9.77 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.268e-06/0.2702, allocations: 1.281 kB / 0.5188 GB, free: 9.77 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: 17 * Number of variables: 17 Notification: Performance of Generate backend data structure: time 0.00081/0.271, allocations: 0.5471 MB / 0.5194 GB, free: 9.285 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.481e-05/0.271, allocations: 9.906 kB / 0.5194 GB, free: 9.285 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.129e-05/0.2711, allocations: 17.44 kB / 0.5194 GB, free: 9.277 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002602/0.2714, allocations: 243 kB / 0.5196 GB, free: 9.059 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.005e-05/0.2714, allocations: 6.75 kB / 0.5196 GB, free: 9.059 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.915e-05/0.2714, allocations: 8.5 kB / 0.5196 GB, free: 9.059 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004124/0.2718, allocations: 168 kB / 0.5198 GB, free: 8.992 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.165e-06/0.2719, allocations: 0.5938 kB / 0.5198 GB, free: 8.992 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.97e-05/0.2719, allocations: 5.422 kB / 0.5198 GB, free: 8.992 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.484e-06/0.2719, allocations: 6.312 kB / 0.5198 GB, free: 8.988 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004995/0.2724, allocations: 137.7 kB / 0.5199 GB, free: 8.98 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005391/0.273, allocations: 0.5456 MB / 0.5205 GB, free: 8.539 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006677/0.2736, allocations: 187.8 kB / 0.5206 GB, free: 8.508 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002656/0.2739, allocations: 85.73 kB / 0.5207 GB, free: 8.496 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.584e-05/0.2739, allocations: 2.734 kB / 0.5207 GB, free: 8.496 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003933/0.2743, allocations: 148.1 kB / 0.5209 GB, free: 8.445 MB / 346.7 MB Notification: Performance of pre-optimization done (n=12): time 1.814e-06/0.2744, allocations: 0 / 0.5209 GB, free: 8.445 MB / 346.7 MB Notification: Performance of matching and sorting (n=12): time 0.0008953/0.2753, allocations: 297.8 kB / 0.5212 GB, free: 8.395 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.595e-05/0.2753, allocations: 58.92 kB / 0.5212 GB, free: 8.328 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001992/0.2755, allocations: 235.7 kB / 0.5214 GB, free: 8.219 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.852e-05/0.2755, allocations: 31.17 kB / 0.5215 GB, free: 8.188 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.761e-05/0.2756, allocations: 124.6 kB / 0.5216 GB, free: 8.094 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.078e-05/0.2756, allocations: 36.67 kB / 0.5216 GB, free: 8.074 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.698e-06/0.2756, allocations: 4 kB / 0.5216 GB, free: 8.074 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 4.913e-05/0.2757, allocations: 331.6 kB / 0.5219 GB, free: 7.762 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000261/0.276, allocations: 85 kB / 0.522 GB, free: 7.758 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002642/0.2762, allocations: 114.1 kB / 0.5221 GB, free: 7.715 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002678/0.2765, allocations: 114 kB / 0.5222 GB, free: 7.676 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.515e-06/0.2765, allocations: 1.375 kB / 0.5222 GB, free: 7.676 MB / 346.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0006207/0.2772, allocations: 281.3 kB / 0.5225 GB, free: 7.59 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.586e-05/0.2772, allocations: 35.17 kB / 0.5225 GB, free: 7.559 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.272e-06/0.2772, allocations: 2.219 kB / 0.5225 GB, free: 7.559 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.359e-05/0.2772, allocations: 6.297 kB / 0.5226 GB, free: 7.555 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001831/0.2774, allocations: 46.56 kB / 0.5226 GB, free: 7.547 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.923e-06/0.2774, allocations: 2.016 kB / 0.5226 GB, free: 7.547 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001921/0.2776, allocations: 43.03 kB / 0.5226 GB, free: 7.539 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.75e-05/0.2776, allocations: 6.5 kB / 0.5226 GB, free: 7.539 MB / 346.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: 11 ($whenCondition2,$PRE.t_new.nextTimeEvent,$whenCondition1,$PRE.trapezoid1.T_start,trapezoid1.T_start,$PRE.trapezoid1.count,trapezoid1.count,t_new.nextTimeEvent,$PRE.t_new.nextTimeEventScaled,t_new.nextTimeEventScaled,err1.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 1 * 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 9.23e-05/0.2777, allocations: 142 kB / 0.5228 GB, free: 7.418 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.857e-05/0.2778, allocations: 17.53 kB / 0.5228 GB, free: 7.41 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.741e-05/0.2778, allocations: 21.09 kB / 0.5228 GB, free: 7.406 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.208e-06/0.2778, allocations: 5.766 kB / 0.5228 GB, free: 7.402 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.12e-06/0.2778, allocations: 5.594 kB / 0.5228 GB, free: 7.398 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.446e-06/0.2779, allocations: 0.7031 kB / 0.5228 GB, free: 7.398 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001611/0.278, allocations: 234 kB / 0.5231 GB, free: 7.211 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.944e-06/0.278, allocations: 0.5156 kB / 0.5231 GB, free: 7.211 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001632/0.2782, allocations: 33.73 kB / 0.5231 GB, free: 7.207 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.144e-06/0.2782, allocations: 0 / 0.5231 GB, free: 7.207 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.453e-05/0.2782, allocations: 3.312 kB / 0.5231 GB, free: 7.207 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.834e-06/0.2782, allocations: 1.156 kB / 0.5231 GB, free: 7.207 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.953e-06/0.2782, allocations: 3.953 kB / 0.5231 GB, free: 7.203 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008368/0.2791, allocations: 346 kB / 0.5234 GB, free: 7.117 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.03e-05/0.2791, allocations: 91.39 kB / 0.5235 GB, free: 7.016 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.165e-05/0.2792, allocations: 7 kB / 0.5235 GB, free: 7.016 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000179/0.2794, allocations: 33.59 kB / 0.5235 GB, free: 7.008 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.573e-05/0.2794, allocations: 18.25 kB / 0.5236 GB, free: 7.008 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.935e-05/0.2795, allocations: 16.33 kB / 0.5236 GB, free: 7 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001335/0.2796, allocations: 168.3 kB / 0.5237 GB, free: 6.926 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2796, allocations: 0 / 0.5237 GB, free: 6.926 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002363/0.2799, allocations: 39.38 kB / 0.5238 GB, free: 6.922 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (err1.y) * Number of discrete variables: 6 ($whenCondition2,$whenCondition1,trapezoid1.T_start,trapezoid1.count,t_new.nextTimeEvent,t_new.nextTimeEventScaled) * Number of discrete states: 3 (trapezoid1.count,t_new.nextTimeEventScaled,t_new.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.000748/0.2806, allocations: 403.6 kB / 0.5242 GB, free: 6.727 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.000602/0.2812, allocations: 253 kB / 0.5244 GB, free: 6.645 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.914e-06/0.2812, allocations: 1.312 kB / 0.5244 GB, free: 6.645 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002663/0.2815, allocations: 81.78 kB / 0.5245 GB, free: 6.645 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003182/0.2818, allocations: 49.53 kB / 0.5245 GB, free: 6.637 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005928/0.2824, allocations: 380.9 kB / 0.5249 GB, free: 6.395 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001302/0.2826, allocations: 0.7317 MB / 0.5256 GB, free: 5.688 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.141e-05/0.2826, allocations: 19 kB / 0.5256 GB, free: 5.68 MB / 346.7 MB Notification: Performance of SimCode: time 2.21e-07/0.2827, allocations: 0 / 0.5256 GB, free: 5.68 MB / 346.7 MB Notification: Performance of Templates: time 0.004969/0.2876, allocations: 2.828 MB / 0.5284 GB, free: 5.426 MB / 346.7 MB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test14.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test14.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test14.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test14.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test14.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test14 --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test14.pipe 2>&1)