Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test42.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.Test42,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|t_new.y.1.|d_t_new.y",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test42") translateModel(ModelicaTest.Tables.CombiTimeTable.Test42,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|t_new.y.1.|d_t_new.y",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test42") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00103/0.001035, allocations: 200.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.295/1.295, 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.0007883/0.0007883, allocations: 100.6 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.1849/0.1849, allocations: 44.83 MB / 392 MB, free: 9.348 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002289/0.0002289, allocations: 8 kB / 464.7 MB, free: 49.78 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09031/0.09055, allocations: 62.95 MB / 0.5153 GB, free: 2.781 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Tables.CombiTimeTable.Test42): time 0.001882/0.09248, allocations: 1.424 MB / 0.5167 GB, free: 1.34 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.001337/0.09384, allocations: 0.9441 MB / 0.5176 GB, free: 400 kB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.359e-05/0.09394, allocations: 3.938 kB / 0.5176 GB, free: 396 kB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003302/0.09428, allocations: 43.88 kB / 0.5177 GB, free: 352 kB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002613/0.09456, allocations: 75.69 kB / 0.5178 GB, free: 276 kB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002819/0.09485, allocations: 91.83 kB / 0.5179 GB, free: 184 kB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001445/0.095, allocations: 95.67 kB / 0.5179 GB, free: 88 kB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.131e-05/0.0951, allocations: 4 kB / 0.5179 GB, free: 84 kB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.851e-05/0.09519, allocations: 39.8 kB / 0.518 GB, free: 44 kB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.116e-05/0.09527, allocations: 35.83 kB / 0.518 GB, free: 8 kB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 1.592e-05/0.09529, allocations: 0 / 0.518 GB, free: 8 kB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.1905/0.2858, allocations: 35.14 kB / 0.5181 GB, free: 9.828 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 6.693e-05/0.2859, allocations: 20.2 kB / 0.5181 GB, free: 9.828 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 5.241e-05/0.286, allocations: 38.61 kB / 0.5181 GB, free: 9.797 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001861/0.2862, allocations: 89.44 kB / 0.5182 GB, free: 9.797 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.57e-06/0.2862, allocations: 1.453 kB / 0.5182 GB, free: 9.797 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.773e-06/0.2862, allocations: 3.375 kB / 0.5182 GB, free: 9.797 MB / 346.7 MB Notification: Performance of Transformations before backend: time 8.716e-06/0.2862, allocations: 0 / 0.5182 GB, free: 9.797 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.0004269/0.2866, allocations: 408.5 kB / 0.5186 GB, free: 9.414 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.557e-05/0.2867, allocations: 9.312 kB / 0.5186 GB, free: 9.414 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.991e-05/0.2867, allocations: 10.7 kB / 0.5186 GB, free: 9.41 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001765/0.2869, allocations: 215.3 kB / 0.5188 GB, free: 9.199 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.559e-05/0.2869, allocations: 3.094 kB / 0.5188 GB, free: 9.199 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.096e-05/0.2869, allocations: 4.625 kB / 0.5188 GB, free: 9.199 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001442/0.2871, allocations: 58.66 kB / 0.5189 GB, free: 9.168 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.049e-05/0.2871, allocations: 7.047 kB / 0.5189 GB, free: 9.164 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.001e-05/0.2871, allocations: 1.844 kB / 0.5189 GB, free: 9.164 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.418e-06/0.2871, allocations: 0.5312 kB / 0.5189 GB, free: 9.164 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.247e-05/0.2872, allocations: 18.45 kB / 0.5189 GB, free: 9.164 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002915/0.2875, allocations: 293.4 kB / 0.5192 GB, free: 8.898 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001481/0.2877, allocations: 57.39 kB / 0.5192 GB, free: 8.875 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.117e-05/0.2877, allocations: 21.31 kB / 0.5193 GB, free: 8.867 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.712e-05/0.2878, allocations: 1.844 kB / 0.5193 GB, free: 8.867 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001534/0.2879, allocations: 69.5 kB / 0.5193 GB, free: 8.816 MB / 346.7 MB Notification: Performance of pre-optimization done (n=6): time 1.322e-06/0.2879, allocations: 0 / 0.5193 GB, free: 8.816 MB / 346.7 MB Notification: Performance of matching and sorting (n=8): time 0.0004986/0.2884, allocations: 171.1 kB / 0.5195 GB, free: 8.77 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.421e-05/0.2885, allocations: 54.14 kB / 0.5195 GB, free: 8.707 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001971/0.2887, allocations: 220.1 kB / 0.5197 GB, free: 8.598 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.098e-05/0.2887, allocations: 28.05 kB / 0.5198 GB, free: 8.566 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.53e-05/0.2887, allocations: 103.4 kB / 0.5199 GB, free: 8.484 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.642e-05/0.2888, allocations: 33.59 kB / 0.5199 GB, free: 8.465 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.418e-06/0.2888, allocations: 1.969 kB / 0.5199 GB, free: 8.465 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 4.639e-05/0.2888, allocations: 325.2 kB / 0.5202 GB, free: 8.152 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.603e-05/0.2889, allocations: 18.86 kB / 0.5202 GB, free: 8.152 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.854e-05/0.289, allocations: 37.08 kB / 0.5203 GB, free: 8.137 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.055e-05/0.289, allocations: 24.62 kB / 0.5203 GB, free: 8.137 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.11e-07/0.289, allocations: 2.344 kB / 0.5203 GB, free: 8.137 MB / 346.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001703/0.2892, allocations: 102.3 kB / 0.5204 GB, free: 8.098 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.281e-05/0.2892, allocations: 6.688 kB / 0.5204 GB, free: 8.098 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.198e-06/0.2892, allocations: 0 / 0.5204 GB, free: 8.098 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.206e-05/0.2893, allocations: 1.859 kB / 0.5204 GB, free: 8.098 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.357e-05/0.2894, allocations: 15.45 kB / 0.5204 GB, free: 8.098 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.643e-06/0.2894, allocations: 4.281 kB / 0.5204 GB, free: 8.098 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.655e-05/0.2894, allocations: 6.469 kB / 0.5204 GB, free: 8.098 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.606e-06/0.2894, allocations: 6.578 kB / 0.5204 GB, free: 8.094 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 8.177e-05/0.2895, allocations: 129.8 kB / 0.5206 GB, free: 7.977 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.925e-05/0.2895, allocations: 14.62 kB / 0.5206 GB, free: 7.969 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.488e-05/0.2896, allocations: 21.33 kB / 0.5206 GB, free: 7.969 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.435e-06/0.2896, allocations: 0.9688 kB / 0.5206 GB, free: 7.969 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.218e-06/0.2896, allocations: 1.125 kB / 0.5206 GB, free: 7.969 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.647e-06/0.2896, allocations: 2.266 kB / 0.5206 GB, free: 7.969 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003499/0.29, allocations: 395 kB / 0.521 GB, free: 7.664 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.144e-06/0.29, allocations: 3.719 kB / 0.521 GB, free: 7.664 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.25e-05/0.29, allocations: 14.95 kB / 0.521 GB, free: 7.66 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.124e-06/0.29, allocations: 0.9375 kB / 0.521 GB, free: 7.66 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.766e-06/0.29, allocations: 2.844 kB / 0.521 GB, free: 7.66 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.565e-06/0.2901, allocations: 5.281 kB / 0.521 GB, free: 7.66 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.384e-06/0.2901, allocations: 5.078 kB / 0.521 GB, free: 7.656 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001711/0.2902, allocations: 201.6 kB / 0.5212 GB, free: 7.512 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.736e-05/0.2903, allocations: 93.19 kB / 0.5213 GB, free: 7.41 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.162e-05/0.2903, allocations: 2.203 kB / 0.5213 GB, free: 7.41 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.922e-05/0.2904, allocations: 6.297 kB / 0.5213 GB, free: 7.41 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.156e-05/0.2904, allocations: 9.938 kB / 0.5213 GB, free: 7.406 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.423e-05/0.2904, allocations: 8.406 kB / 0.5213 GB, free: 7.402 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001115/0.2905, allocations: 157.3 kB / 0.5215 GB, free: 7.328 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2906, allocations: 0 / 0.5215 GB, free: 7.328 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002348/0.2908, allocations: 20.5 kB / 0.5215 GB, free: 7.328 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.0008385/0.2916, allocations: 460.8 kB / 0.5219 GB, free: 7.113 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001634/0.2918, allocations: 63.61 kB / 0.522 GB, free: 7.109 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.375e-06/0.2918, allocations: 0.5 kB / 0.522 GB, free: 7.109 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 6.715e-05/0.2919, allocations: 28.55 kB / 0.522 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.000311/0.2922, allocations: 37.92 kB / 0.522 GB, free: 7.094 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004982/0.2927, allocations: 290.6 kB / 0.5223 GB, free: 6.891 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001755/0.2929, allocations: 0.7079 MB / 0.523 GB, free: 6.195 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.11e-05/0.293, allocations: 16.41 kB / 0.523 GB, free: 6.188 MB / 346.7 MB Notification: Performance of SimCode: time 2.21e-07/0.293, allocations: 0 / 0.523 GB, free: 6.188 MB / 346.7 MB Notification: Performance of Templates: time 0.004013/0.297, allocations: 1.963 MB / 0.5249 GB, free: 5.988 MB / 346.7 MB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test42.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test42.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test42.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test42.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test42.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test42 --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test42.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test42_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Tables/CombiTimeTable/Test42/Test42.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test42.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches