Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test61.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.Test61,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|t_new.y.1.",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test61") translateModel(ModelicaTest.Tables.CombiTimeTable.Test61,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|t_new.y.1.",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test61") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009907/0.0009908, 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.271/1.271, 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.0007323/0.0007323, allocations: 93.25 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.1856/0.1856, allocations: 44.84 MB / 392 MB, free: 9.348 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002603/0.0002601, allocations: 12 kB / 464.7 MB, free: 49.78 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0946/0.09487, allocations: 62.96 MB / 0.5153 GB, free: 2.781 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Tables.CombiTimeTable.Test61): time 0.001946/0.09687, allocations: 1.388 MB / 0.5167 GB, free: 1.375 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.001361/0.09825, allocations: 0.9285 MB / 0.5176 GB, free: 452 kB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.476e-05/0.09833, allocations: 0 / 0.5176 GB, free: 452 kB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002743/0.09861, allocations: 51.86 kB / 0.5176 GB, free: 400 kB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002303/0.09885, allocations: 87.66 kB / 0.5177 GB, free: 312 kB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002403/0.0991, allocations: 86.59 kB / 0.5178 GB, free: 228 kB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001458/0.09926, allocations: 91.62 kB / 0.5179 GB, free: 136 kB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.666e-05/0.09932, allocations: 4.234 kB / 0.5179 GB, free: 132 kB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.26e-05/0.09942, allocations: 43.78 kB / 0.5179 GB, free: 88 kB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.844e-05/0.09951, allocations: 31.84 kB / 0.518 GB, free: 56 kB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 1.517e-05/0.09953, allocations: 8 kB / 0.518 GB, free: 48 kB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.363e-05/0.09961, allocations: 23.98 kB / 0.518 GB, free: 24 kB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 3.923e-05/0.09966, allocations: 23.92 kB / 0.518 GB, free: 0 / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.1773/0.277, allocations: 40.91 kB / 0.5181 GB, free: 9.824 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002299/0.2772, allocations: 88.84 kB / 0.5182 GB, free: 9.824 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.518e-06/0.2773, allocations: 1 kB / 0.5182 GB, free: 9.824 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.673e-06/0.2773, allocations: 0 / 0.5182 GB, free: 9.824 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.488e-06/0.2773, allocations: 0 / 0.5182 GB, free: 9.824 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: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.0004765/0.2778, allocations: 421 kB / 0.5186 GB, free: 9.438 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.762e-05/0.2778, allocations: 12.5 kB / 0.5186 GB, free: 9.438 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.845e-05/0.2779, allocations: 19.66 kB / 0.5186 GB, free: 9.43 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001975/0.2781, allocations: 212.2 kB / 0.5188 GB, free: 9.219 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.591e-05/0.2781, allocations: 2.234 kB / 0.5188 GB, free: 9.219 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.276e-05/0.2781, allocations: 1.875 kB / 0.5188 GB, free: 9.219 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001284/0.2783, allocations: 50.48 kB / 0.5188 GB, free: 9.188 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.003e-06/0.2783, allocations: 0 / 0.5188 GB, free: 9.188 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.078e-05/0.2783, allocations: 4.938 kB / 0.5188 GB, free: 9.188 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.959e-06/0.2783, allocations: 1.656 kB / 0.5188 GB, free: 9.188 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.672e-05/0.2784, allocations: 13.2 kB / 0.5189 GB, free: 9.188 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001699/0.2785, allocations: 198.5 kB / 0.519 GB, free: 8.992 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001496/0.2787, allocations: 54.8 kB / 0.5191 GB, free: 8.969 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.184e-05/0.2788, allocations: 22.28 kB / 0.5191 GB, free: 8.961 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.177e-05/0.2788, allocations: 1.828 kB / 0.5191 GB, free: 8.961 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001539/0.279, allocations: 66.88 kB / 0.5192 GB, free: 8.91 MB / 346.7 MB Notification: Performance of pre-optimization done (n=5): time 1.312e-06/0.279, allocations: 1.094 kB / 0.5192 GB, free: 8.91 MB / 346.7 MB Notification: Performance of matching and sorting (n=5): time 0.0002655/0.2792, allocations: 99.92 kB / 0.5193 GB, free: 8.875 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.422e-05/0.2793, allocations: 52.09 kB / 0.5193 GB, free: 8.812 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002674/0.2795, allocations: 268.9 kB / 0.5196 GB, free: 8.711 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.034e-05/0.2796, allocations: 28.52 kB / 0.5196 GB, free: 8.68 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.447e-05/0.2796, allocations: 111.1 kB / 0.5197 GB, free: 8.598 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.988e-05/0.2797, allocations: 15.48 kB / 0.5197 GB, free: 8.59 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.278e-06/0.2797, allocations: 0.75 kB / 0.5197 GB, free: 8.59 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 5.824e-05/0.2797, allocations: 329.2 kB / 0.5201 GB, free: 8.277 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.342e-05/0.2798, allocations: 14.73 kB / 0.5201 GB, free: 8.277 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.244e-05/0.2798, allocations: 32.56 kB / 0.5201 GB, free: 8.258 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.084e-05/0.2799, allocations: 16.62 kB / 0.5201 GB, free: 8.258 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-06/0.2799, allocations: 3.953 kB / 0.5201 GB, free: 8.254 MB / 346.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001428/0.2801, allocations: 87.91 kB / 0.5202 GB, free: 8.215 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.409e-05/0.2801, allocations: 9.297 kB / 0.5202 GB, free: 8.215 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.238e-06/0.2801, allocations: 0 / 0.5202 GB, free: 8.215 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.247e-05/0.2801, allocations: 1 kB / 0.5202 GB, free: 8.215 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.159e-05/0.2802, allocations: 19.25 kB / 0.5202 GB, free: 8.211 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.202e-06/0.2802, allocations: 0.9688 kB / 0.5202 GB, free: 8.211 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.597e-05/0.2803, allocations: 3.172 kB / 0.5202 GB, free: 8.211 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.436e-06/0.2803, allocations: 2.594 kB / 0.5202 GB, free: 8.211 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 (7): * Single equations (assignments): 7 * 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 8.558e-05/0.2804, allocations: 139.1 kB / 0.5204 GB, free: 8.094 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.125e-05/0.2804, allocations: 18.38 kB / 0.5204 GB, free: 8.082 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.442e-05/0.2804, allocations: 20.86 kB / 0.5204 GB, free: 8.078 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.665e-06/0.2804, allocations: 1.844 kB / 0.5204 GB, free: 8.078 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.687e-06/0.2804, allocations: 0 / 0.5204 GB, free: 8.078 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.557e-06/0.2805, allocations: 6.719 kB / 0.5204 GB, free: 8.074 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001159/0.2806, allocations: 194.2 kB / 0.5206 GB, free: 7.887 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-06/0.2806, allocations: 0.75 kB / 0.5206 GB, free: 7.887 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.004e-05/0.2806, allocations: 8.297 kB / 0.5206 GB, free: 7.883 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.054e-06/0.2806, allocations: 1.062 kB / 0.5206 GB, free: 7.883 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.257e-06/0.2806, allocations: 2.266 kB / 0.5206 GB, free: 7.883 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.793e-06/0.2806, allocations: 0 / 0.5206 GB, free: 7.883 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.405e-06/0.2806, allocations: 4.266 kB / 0.5206 GB, free: 7.883 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001671/0.2808, allocations: 113.6 kB / 0.5207 GB, free: 7.809 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.237e-05/0.2809, allocations: 95.8 kB / 0.5208 GB, free: 7.703 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.188e-05/0.2809, allocations: 6.734 kB / 0.5208 GB, free: 7.699 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.978e-05/0.2809, allocations: 4.234 kB / 0.5208 GB, free: 7.699 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.941e-05/0.281, allocations: 5.266 kB / 0.5208 GB, free: 7.699 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.345e-05/0.281, allocations: 2.641 kB / 0.5208 GB, free: 7.699 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001603/0.2812, allocations: 203.2 kB / 0.521 GB, free: 7.625 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.2812, allocations: 0 / 0.521 GB, free: 7.625 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0001932/0.2814, allocations: 22.75 kB / 0.521 GB, free: 7.621 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,t_new.nextTimeEvent,t_new.nextTimeEventScaled) * Number of discrete states: 2 (t_new.nextTimeEventScaled,t_new.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (5): * Single equations (assignments): 3 * 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.0007527/0.2821, allocations: 419.8 kB / 0.5214 GB, free: 7.426 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001395/0.2823, allocations: 37.95 kB / 0.5215 GB, free: 7.426 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.694e-06/0.2823, allocations: 0 / 0.5215 GB, free: 7.426 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 5.536e-05/0.2823, allocations: 21.31 kB / 0.5215 GB, free: 7.426 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002381/0.2826, allocations: 30.67 kB / 0.5215 GB, free: 7.422 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000442/0.283, allocations: 308.5 kB / 0.5218 GB, free: 7.219 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001385/0.2832, allocations: 0.7186 MB / 0.5225 GB, free: 6.52 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.906e-05/0.2832, allocations: 14.77 kB / 0.5225 GB, free: 6.512 MB / 346.7 MB Notification: Performance of SimCode: time 2.31e-07/0.2832, allocations: 1.719 kB / 0.5225 GB, free: 6.512 MB / 346.7 MB Notification: Performance of Templates: time 0.003501/0.2867, allocations: 1.855 MB / 0.5244 GB, free: 6.316 MB / 346.7 MB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test61.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test61.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test61.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test61.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test61.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test61 --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test61.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test61_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Tables/CombiTimeTable/Test61/Test61.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test61.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches