Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test7.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.Test7,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|t_new.y.1.|d_t_new.y|d2_t_new.y",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test7") translateModel(ModelicaTest.Tables.CombiTimeTable.Test7,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|t_new.y.1.|d_t_new.y|d2_t_new.y",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test7") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009599/0.0009604, allocations: 201.8 kB / 15.8 MB, free: 6.328 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.294/1.294, 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.0007382/0.0007382, allocations: 96.84 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.1884/0.1884, allocations: 44.83 MB / 392 MB, free: 9.316 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002334/0.0002334, allocations: 12 kB / 464.7 MB, free: 49.75 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09241/0.09265, allocations: 62.96 MB / 0.5153 GB, free: 2.75 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Tables.CombiTimeTable.Test7): time 0.002095/0.09479, allocations: 1.435 MB / 0.5167 GB, free: 1.297 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.001358/0.09617, allocations: 0.9557 MB / 0.5177 GB, free: 344 kB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.012e-05/0.09625, allocations: 4 kB / 0.5177 GB, free: 340 kB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003044/0.09657, allocations: 99.72 kB / 0.5178 GB, free: 240 kB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002479/0.09683, allocations: 107.7 kB / 0.5179 GB, free: 132 kB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002615/0.0971, allocations: 91.77 kB / 0.518 GB, free: 40 kB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.178/0.2751, allocations: 97.89 kB / 0.5181 GB, free: 9.895 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001355/0.2752, allocations: 12.7 kB / 0.5181 GB, free: 9.895 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001538/0.2754, allocations: 50.84 kB / 0.5181 GB, free: 9.895 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001319/0.2755, allocations: 56.55 kB / 0.5182 GB, free: 9.895 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 1.871e-05/0.2756, allocations: 4.281 kB / 0.5182 GB, free: 9.895 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001847/0.2758, allocations: 50.27 kB / 0.5182 GB, free: 9.895 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 5.418e-05/0.2758, allocations: 27.52 kB / 0.5182 GB, free: 9.895 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 4.133e-05/0.2759, allocations: 40.88 kB / 0.5183 GB, free: 9.863 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002232/0.2761, allocations: 108.2 kB / 0.5184 GB, free: 9.863 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.11e-06/0.2761, allocations: 0 / 0.5184 GB, free: 9.863 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.215e-06/0.2761, allocations: 0.8125 kB / 0.5184 GB, free: 9.863 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.669e-06/0.2761, allocations: 0 / 0.5184 GB, free: 9.863 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0004846/0.2766, allocations: 436.7 kB / 0.5188 GB, free: 9.465 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.547e-05/0.2767, allocations: 8.594 kB / 0.5188 GB, free: 9.465 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.628e-05/0.2767, allocations: 11.47 kB / 0.5188 GB, free: 9.461 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001941/0.2769, allocations: 215.3 kB / 0.519 GB, free: 9.25 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.529e-05/0.2769, allocations: 3.281 kB / 0.519 GB, free: 9.25 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.133e-05/0.277, allocations: 6.703 kB / 0.519 GB, free: 9.25 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001425/0.2771, allocations: 58.31 kB / 0.5191 GB, free: 9.219 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.896e-06/0.2771, allocations: 0 / 0.5191 GB, free: 9.219 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.061e-05/0.2772, allocations: 2.609 kB / 0.5191 GB, free: 9.219 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.488e-06/0.2772, allocations: 1.062 kB / 0.5191 GB, free: 9.219 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.273e-05/0.2773, allocations: 26.02 kB / 0.5191 GB, free: 9.219 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003443/0.2776, allocations: 312.9 kB / 0.5194 GB, free: 8.945 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002446/0.2779, allocations: 66.91 kB / 0.5195 GB, free: 8.918 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.222e-05/0.2779, allocations: 21.78 kB / 0.5195 GB, free: 8.91 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.899e-05/0.278, allocations: 1.781 kB / 0.5195 GB, free: 8.91 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001787/0.2781, allocations: 71.7 kB / 0.5196 GB, free: 8.859 MB / 346.7 MB Notification: Performance of pre-optimization done (n=7): time 1.432e-06/0.2782, allocations: 0 / 0.5196 GB, free: 8.859 MB / 346.7 MB Notification: Performance of matching and sorting (n=11): time 0.0007527/0.2789, allocations: 248.5 kB / 0.5198 GB, free: 8.797 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.553e-05/0.2789, allocations: 61.78 kB / 0.5199 GB, free: 8.73 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002485/0.2792, allocations: 247.3 kB / 0.5201 GB, free: 8.625 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.343e-05/0.2792, allocations: 28.27 kB / 0.5201 GB, free: 8.594 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.163e-05/0.2793, allocations: 117.1 kB / 0.5202 GB, free: 8.508 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.16e-05/0.2793, allocations: 34.09 kB / 0.5203 GB, free: 8.488 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.849e-06/0.2793, allocations: 7.594 kB / 0.5203 GB, free: 8.488 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 5.347e-05/0.2794, allocations: 325 kB / 0.5206 GB, free: 8.176 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.62e-05/0.2795, allocations: 32.69 kB / 0.5206 GB, free: 8.172 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.273e-05/0.2795, allocations: 47.61 kB / 0.5207 GB, free: 8.156 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.714e-05/0.2796, allocations: 35.22 kB / 0.5207 GB, free: 8.156 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.82e-07/0.2796, allocations: 0 / 0.5207 GB, free: 8.156 MB / 346.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001936/0.2798, allocations: 129 kB / 0.5208 GB, free: 8.113 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.386e-05/0.2799, allocations: 6.125 kB / 0.5208 GB, free: 8.113 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.358e-06/0.2799, allocations: 0 / 0.5208 GB, free: 8.113 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.227e-05/0.2799, allocations: 5.688 kB / 0.5208 GB, free: 8.109 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.917e-05/0.28, allocations: 23.06 kB / 0.5209 GB, free: 8.109 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.191e-06/0.28, allocations: 5.234 kB / 0.5209 GB, free: 8.105 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.867e-05/0.28, allocations: 9.016 kB / 0.5209 GB, free: 8.105 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.077e-06/0.28, allocations: 3.125 kB / 0.5209 GB, free: 8.105 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 (13): * Single equations (assignments): 13 * 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 9.286e-05/0.2801, allocations: 134.2 kB / 0.521 GB, free: 7.992 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.271e-05/0.2802, allocations: 15.97 kB / 0.521 GB, free: 7.984 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.303e-05/0.2802, allocations: 23.95 kB / 0.521 GB, free: 7.984 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.755e-06/0.2802, allocations: 1.094 kB / 0.521 GB, free: 7.984 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.057e-06/0.2802, allocations: 4 kB / 0.5211 GB, free: 7.98 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.069e-06/0.2803, allocations: 9.5 kB / 0.5211 GB, free: 7.977 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004455/0.2807, allocations: 451.7 kB / 0.5215 GB, free: 7.664 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.124e-06/0.2807, allocations: 0.6875 kB / 0.5215 GB, free: 7.664 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.638e-05/0.2808, allocations: 19.92 kB / 0.5215 GB, free: 7.664 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.597e-06/0.2808, allocations: 1.797 kB / 0.5215 GB, free: 7.664 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.13e-05/0.2808, allocations: 10.95 kB / 0.5215 GB, free: 7.656 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.415e-06/0.2808, allocations: 1.625 kB / 0.5215 GB, free: 7.656 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.904e-06/0.2808, allocations: 2.5 kB / 0.5215 GB, free: 7.656 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002155/0.281, allocations: 232 kB / 0.5217 GB, free: 7.5 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.173e-05/0.2811, allocations: 95.61 kB / 0.5218 GB, free: 7.398 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.467e-05/0.2811, allocations: 4.062 kB / 0.5218 GB, free: 7.398 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.432e-05/0.2812, allocations: 14.56 kB / 0.5219 GB, free: 7.391 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.528e-05/0.2812, allocations: 9.125 kB / 0.5219 GB, free: 7.391 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.629e-05/0.2812, allocations: 4.906 kB / 0.5219 GB, free: 7.391 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001376/0.2814, allocations: 191.6 kB / 0.5221 GB, free: 7.312 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.2814, allocations: 1.188 kB / 0.5221 GB, free: 7.312 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002562/0.2817, allocations: 30.23 kB / 0.5221 GB, free: 7.309 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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 (11): * Single equations (assignments): 9 * 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.0009722/0.2826, allocations: 0.5152 MB / 0.5226 GB, free: 7.059 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001845/0.2828, allocations: 78.75 kB / 0.5227 GB, free: 7.059 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.784e-06/0.2828, allocations: 0 / 0.5227 GB, free: 7.059 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 7.744e-05/0.2829, allocations: 39.11 kB / 0.5227 GB, free: 7.059 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003148/0.2832, allocations: 28.56 kB / 0.5227 GB, free: 7.059 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004661/0.2837, allocations: 358 kB / 0.5231 GB, free: 6.824 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000144/0.2839, allocations: 0.7223 MB / 0.5238 GB, free: 6.125 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.735e-05/0.2839, allocations: 22.53 kB / 0.5238 GB, free: 6.117 MB / 346.7 MB Notification: Performance of SimCode: time 2.1e-07/0.2839, allocations: 1.406 kB / 0.5238 GB, free: 6.117 MB / 346.7 MB Notification: Performance of Templates: time 0.00414/0.2881, allocations: 2.284 MB / 0.526 GB, free: 5.875 MB / 346.7 MB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test7.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test7.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test7.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test7.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test7.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test7 --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test7.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test7_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Tables/CombiTimeTable/Test7/Test7.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test7.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches