Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test17.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.Test17,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|t_new.y.1.|d_t_new.y",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test17") translateModel(ModelicaTest.Tables.CombiTimeTable.Test17,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|t_new.y.1.|d_t_new.y",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test17") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009487/0.0009487, allocations: 202.2 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.26/1.26, allocations: 226.6 MB / 243.1 MB, free: 14.28 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007366/0.0007366, allocations: 96.25 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.1947/0.1947, allocations: 44.85 MB / 392 MB, free: 9.324 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002388/0.0002389, allocations: 8 kB / 464.7 MB, free: 49.75 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09293/0.09318, allocations: 62.96 MB / 0.5153 GB, free: 2.758 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Tables.CombiTimeTable.Test17): time 0.001953/0.09517, allocations: 1.424 MB / 0.5167 GB, free: 1.316 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.00138/0.09658, allocations: 0.9441 MB / 0.5176 GB, free: 376 kB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.687e-05/0.09669, allocations: 7.938 kB / 0.5177 GB, free: 368 kB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002672/0.09697, allocations: 35.89 kB / 0.5177 GB, free: 332 kB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002673/0.09725, allocations: 67.7 kB / 0.5178 GB, free: 264 kB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003011/0.09756, allocations: 98.56 kB / 0.5178 GB, free: 168 kB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001587/0.09773, allocations: 91.69 kB / 0.5179 GB, free: 76 kB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.463e-05/0.09783, allocations: 4 kB / 0.5179 GB, free: 72 kB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.719e-05/0.09792, allocations: 39.78 kB / 0.518 GB, free: 32 kB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.1803/0.2783, allocations: 34.73 kB / 0.518 GB, free: 9.816 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 3.875e-05/0.2783, allocations: 1.312 kB / 0.518 GB, free: 9.816 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001588/0.2785, allocations: 34.62 kB / 0.518 GB, free: 9.816 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 5.308e-05/0.2786, allocations: 13.86 kB / 0.5181 GB, free: 9.816 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 5.496e-05/0.2786, allocations: 41.83 kB / 0.5181 GB, free: 9.785 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001857/0.2788, allocations: 87.55 kB / 0.5182 GB, free: 9.785 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.548e-06/0.2788, allocations: 0 / 0.5182 GB, free: 9.785 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.254e-06/0.2788, allocations: 0.6875 kB / 0.5182 GB, free: 9.785 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.658e-06/0.2789, allocations: 0 / 0.5182 GB, free: 9.785 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.0004581/0.2793, allocations: 399.3 kB / 0.5186 GB, free: 9.41 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.61e-05/0.2794, allocations: 9.406 kB / 0.5186 GB, free: 9.41 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.851e-05/0.2794, allocations: 13.41 kB / 0.5186 GB, free: 9.402 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001863/0.2796, allocations: 211.5 kB / 0.5188 GB, free: 9.195 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.506e-05/0.2796, allocations: 2 kB / 0.5188 GB, free: 9.195 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.052e-05/0.2796, allocations: 2.656 kB / 0.5188 GB, free: 9.195 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001455/0.2798, allocations: 53.83 kB / 0.5188 GB, free: 9.164 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.148e-05/0.2798, allocations: 0 / 0.5188 GB, free: 9.164 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.164e-05/0.2798, allocations: 7.625 kB / 0.5188 GB, free: 9.164 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.11e-06/0.2798, allocations: 0.8125 kB / 0.5188 GB, free: 9.164 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.541e-05/0.2799, allocations: 18.59 kB / 0.5189 GB, free: 9.164 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003051/0.2802, allocations: 283.5 kB / 0.5191 GB, free: 8.898 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001665/0.2804, allocations: 62.31 kB / 0.5192 GB, free: 8.871 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.575e-05/0.2805, allocations: 20.27 kB / 0.5192 GB, free: 8.863 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.055e-05/0.2805, allocations: 1.656 kB / 0.5192 GB, free: 8.863 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001607/0.2807, allocations: 65.36 kB / 0.5193 GB, free: 8.816 MB / 346.7 MB Notification: Performance of pre-optimization done (n=6): time 1.342e-06/0.2807, allocations: 4 kB / 0.5193 GB, free: 8.812 MB / 346.7 MB Notification: Performance of matching and sorting (n=8): time 0.0005196/0.2812, allocations: 174.9 kB / 0.5195 GB, free: 8.762 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.431e-05/0.2812, allocations: 53.38 kB / 0.5195 GB, free: 8.699 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001721/0.2814, allocations: 187.5 kB / 0.5197 GB, free: 8.594 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.244e-05/0.2814, allocations: 28.58 kB / 0.5197 GB, free: 8.562 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.291e-05/0.2815, allocations: 100.3 kB / 0.5198 GB, free: 8.48 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.716e-05/0.2815, allocations: 29.22 kB / 0.5198 GB, free: 8.465 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.463e-06/0.2815, allocations: 1.25 kB / 0.5198 GB, free: 8.465 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 5.402e-05/0.2816, allocations: 332.7 kB / 0.5202 GB, free: 8.148 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.929e-05/0.2817, allocations: 18.83 kB / 0.5202 GB, free: 8.148 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.215e-05/0.2817, allocations: 37.97 kB / 0.5202 GB, free: 8.133 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.734e-05/0.2818, allocations: 21.06 kB / 0.5202 GB, free: 8.133 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.42e-07/0.2818, allocations: 3.281 kB / 0.5202 GB, free: 8.133 MB / 346.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001738/0.282, allocations: 102.2 kB / 0.5203 GB, free: 8.094 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.46e-05/0.282, allocations: 6.859 kB / 0.5203 GB, free: 8.094 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.658e-06/0.282, allocations: 7.969 kB / 0.5203 GB, free: 8.086 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.11e-05/0.282, allocations: 1.344 kB / 0.5203 GB, free: 8.086 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.015e-05/0.2821, allocations: 15.17 kB / 0.5204 GB, free: 8.086 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.452e-06/0.2821, allocations: 1.797 kB / 0.5204 GB, free: 8.086 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.824e-05/0.2822, allocations: 5.078 kB / 0.5204 GB, free: 8.086 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.007e-06/0.2822, allocations: 6.734 kB / 0.5204 GB, free: 8.082 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.81e-05/0.2823, allocations: 126.8 kB / 0.5205 GB, free: 7.969 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.781e-05/0.2823, allocations: 9.938 kB / 0.5205 GB, free: 7.965 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.502e-05/0.2824, allocations: 19.67 kB / 0.5205 GB, free: 7.961 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.505e-06/0.2824, allocations: 1.469 kB / 0.5205 GB, free: 7.961 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.34e-06/0.2824, allocations: 4.547 kB / 0.5205 GB, free: 7.961 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.038e-06/0.2824, allocations: 1.703 kB / 0.5205 GB, free: 7.961 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003626/0.2827, allocations: 398.8 kB / 0.5209 GB, free: 7.652 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.234e-06/0.2828, allocations: 1.531 kB / 0.5209 GB, free: 7.652 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.287e-05/0.2828, allocations: 10.41 kB / 0.5209 GB, free: 7.652 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.114e-06/0.2828, allocations: 0 / 0.5209 GB, free: 7.652 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.877e-06/0.2828, allocations: 7.297 kB / 0.5209 GB, free: 7.648 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.803e-06/0.2828, allocations: 0.6094 kB / 0.5209 GB, free: 7.648 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.453e-06/0.2828, allocations: 5.609 kB / 0.5209 GB, free: 7.645 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001813/0.283, allocations: 206.2 kB / 0.5211 GB, free: 7.5 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.932e-05/0.2831, allocations: 87.56 kB / 0.5212 GB, free: 7.402 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.262e-05/0.2831, allocations: 4.906 kB / 0.5212 GB, free: 7.402 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.126e-05/0.2832, allocations: 7.141 kB / 0.5212 GB, free: 7.398 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.317e-05/0.2832, allocations: 10.3 kB / 0.5212 GB, free: 7.395 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.485e-05/0.2832, allocations: 3.75 kB / 0.5212 GB, free: 7.395 MB / 346.7 MB Notification: Performance of sorting global known variables: time 9.763e-05/0.2833, allocations: 139.9 kB / 0.5214 GB, free: 7.32 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.2833, allocations: 0 / 0.5214 GB, free: 7.32 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002378/0.2836, allocations: 25.17 kB / 0.5214 GB, free: 7.316 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.0008469/0.2844, allocations: 462.2 kB / 0.5218 GB, free: 7.105 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001647/0.2846, allocations: 51.75 kB / 0.5219 GB, free: 7.105 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.2846, allocations: 2.375 kB / 0.5219 GB, free: 7.105 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 6.99e-05/0.2847, allocations: 32.56 kB / 0.5219 GB, free: 7.105 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003128/0.285, allocations: 26.2 kB / 0.5219 GB, free: 7.105 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003745/0.2854, allocations: 265.4 kB / 0.5222 GB, free: 6.91 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001241/0.2855, allocations: 0.7063 MB / 0.5229 GB, free: 6.211 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.615e-05/0.2856, allocations: 17.64 kB / 0.5229 GB, free: 6.203 MB / 346.7 MB Notification: Performance of SimCode: time 7.82e-07/0.2856, allocations: 3.938 kB / 0.5229 GB, free: 6.199 MB / 346.7 MB Notification: Performance of Templates: time 0.003565/0.2891, allocations: 1.92 MB / 0.5248 GB, free: 6.008 MB / 346.7 MB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test17.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test17.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test17.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test17.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test17.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test17 --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test17.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test17_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Tables/CombiTimeTable/Test17/Test17.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test17.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches