Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test4.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.Test4,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.Test4") translateModel(ModelicaTest.Tables.CombiTimeTable.Test4,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.Test4") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001118/0.001118, allocations: 200.3 kB / 16.1 MB, free: 5.703 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.404/1.404, allocations: 226.6 MB / 243.4 MB, free: 8.102 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007539/0.0007538, allocations: 99.17 kB / 295.5 MB, free: 6.895 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3447/0.3447, allocations: 44.82 MB / 392.3 MB, free: 35.71 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002682/0.0002682, allocations: 8 kB / 465.3 MB, free: 12.67 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3531/0.3534, allocations: 62.97 MB / 0.5159 GB, free: 37.02 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Tables.CombiTimeTable.Test4): time 0.001733/0.3552, allocations: 1.442 MB / 0.5173 GB, free: 35.96 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.001193/0.3564, allocations: 0.9506 MB / 0.5182 GB, free: 35.31 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.889e-05/0.3565, allocations: 0 / 0.5182 GB, free: 35.31 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002741/0.3568, allocations: 85.03 kB / 0.5183 GB, free: 35.29 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002226/0.357, allocations: 98.55 kB / 0.5184 GB, free: 35.25 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002307/0.3573, allocations: 94.75 kB / 0.5185 GB, free: 35.2 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001341/0.3574, allocations: 103.7 kB / 0.5186 GB, free: 35.15 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.199e-05/0.3575, allocations: 9.797 kB / 0.5186 GB, free: 35.15 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.127e-05/0.3576, allocations: 58.78 kB / 0.5187 GB, free: 35.12 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.359e-05/0.3576, allocations: 44.64 kB / 0.5187 GB, free: 35.11 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 1.47e-05/0.3577, allocations: 2.906 kB / 0.5187 GB, free: 35.11 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.923e-05/0.3578, allocations: 55.14 kB / 0.5188 GB, free: 35.1 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 3.957e-05/0.3578, allocations: 24.25 kB / 0.5188 GB, free: 35.09 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 4.897e-05/0.3579, allocations: 60.89 kB / 0.5188 GB, free: 35.03 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001252/0.358, allocations: 102.6 kB / 0.5189 GB, free: 35 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.178e-06/0.358, allocations: 2.812 kB / 0.5189 GB, free: 35 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.263e-06/0.358, allocations: 0 / 0.5189 GB, free: 35 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.847e-06/0.358, allocations: 0 / 0.5189 GB, free: 35 MB / 378.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.0004112/0.3584, allocations: 421.3 kB / 0.5193 GB, free: 34.58 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.04e-05/0.3585, allocations: 7.25 kB / 0.5193 GB, free: 34.58 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.481e-05/0.3585, allocations: 10.75 kB / 0.5194 GB, free: 34.58 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001651/0.3587, allocations: 220.7 kB / 0.5196 GB, free: 34.35 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.61e-05/0.3587, allocations: 3.125 kB / 0.5196 GB, free: 34.35 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.847e-05/0.3587, allocations: 18.02 kB / 0.5196 GB, free: 34.34 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001243/0.3589, allocations: 58 kB / 0.5196 GB, free: 34.3 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.838e-06/0.3589, allocations: 4 kB / 0.5196 GB, free: 34.29 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.287e-06/0.3589, allocations: 6.75 kB / 0.5197 GB, free: 34.29 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.729e-06/0.3589, allocations: 3.375 kB / 0.5197 GB, free: 34.29 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.753e-05/0.359, allocations: 18.98 kB / 0.5197 GB, free: 34.29 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002901/0.3593, allocations: 301.2 kB / 0.52 GB, free: 33.99 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001855/0.3595, allocations: 67.23 kB / 0.52 GB, free: 33.95 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.993e-05/0.3595, allocations: 25.11 kB / 0.52 GB, free: 33.93 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.586e-05/0.3596, allocations: 2.75 kB / 0.5201 GB, free: 33.93 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001388/0.3597, allocations: 68.16 kB / 0.5201 GB, free: 33.88 MB / 378.7 MB Notification: Performance of pre-optimization done (n=7): time 1.322e-06/0.3597, allocations: 0 / 0.5201 GB, free: 33.88 MB / 378.7 MB Notification: Performance of matching and sorting (n=11): time 0.0006143/0.3603, allocations: 246.4 kB / 0.5204 GB, free: 33.77 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.458e-05/0.3604, allocations: 59.28 kB / 0.5204 GB, free: 33.7 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001573/0.3605, allocations: 222.7 kB / 0.5206 GB, free: 33.55 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.136e-05/0.3606, allocations: 25.7 kB / 0.5206 GB, free: 33.52 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.649e-05/0.3606, allocations: 112 kB / 0.5208 GB, free: 33.42 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.609e-05/0.3606, allocations: 33.56 kB / 0.5208 GB, free: 33.39 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.69e-06/0.3606, allocations: 2.906 kB / 0.5208 GB, free: 33.39 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 5.172e-05/0.3607, allocations: 328.2 kB / 0.5211 GB, free: 33.07 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.001e-05/0.3608, allocations: 25.61 kB / 0.5211 GB, free: 33.06 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.32e-05/0.3608, allocations: 53.03 kB / 0.5212 GB, free: 33.03 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001145/0.361, allocations: 75.83 kB / 0.5212 GB, free: 32.98 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.11e-07/0.361, allocations: 3.938 kB / 0.5213 GB, free: 32.98 MB / 378.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001755/0.3611, allocations: 131.4 kB / 0.5214 GB, free: 32.91 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.242e-05/0.3612, allocations: 4.875 kB / 0.5214 GB, free: 32.91 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.057e-06/0.3612, allocations: 0 / 0.5214 GB, free: 32.91 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.102e-05/0.3612, allocations: 0 / 0.5214 GB, free: 32.91 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.494e-05/0.3613, allocations: 25.02 kB / 0.5214 GB, free: 32.91 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.242e-06/0.3613, allocations: 11 kB / 0.5214 GB, free: 32.9 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.291e-05/0.3613, allocations: 2.844 kB / 0.5214 GB, free: 32.9 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.789e-06/0.3614, allocations: 2.938 kB / 0.5214 GB, free: 32.9 MB / 378.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 7.877e-05/0.3614, allocations: 137 kB / 0.5216 GB, free: 32.77 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.756e-05/0.3615, allocations: 9.625 kB / 0.5216 GB, free: 32.77 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.258e-05/0.3615, allocations: 22.66 kB / 0.5216 GB, free: 32.75 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.214e-06/0.3615, allocations: 2.719 kB / 0.5216 GB, free: 32.75 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.649e-06/0.3615, allocations: 3.938 kB / 0.5216 GB, free: 32.75 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.166e-06/0.3615, allocations: 4 kB / 0.5216 GB, free: 32.75 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003896/0.3619, allocations: 460.2 kB / 0.522 GB, free: 32.36 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.054e-06/0.3619, allocations: 2.969 kB / 0.522 GB, free: 32.36 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.119e-05/0.362, allocations: 13.05 kB / 0.522 GB, free: 32.36 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.755e-06/0.362, allocations: 3.688 kB / 0.522 GB, free: 32.36 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.002e-05/0.362, allocations: 3.938 kB / 0.5221 GB, free: 32.36 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.613e-06/0.362, allocations: 3.125 kB / 0.5221 GB, free: 32.36 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.143e-06/0.362, allocations: 4 kB / 0.5221 GB, free: 32.35 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001902/0.3622, allocations: 228.5 kB / 0.5223 GB, free: 32.17 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.424e-05/0.3623, allocations: 97.84 kB / 0.5224 GB, free: 32.07 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.313e-05/0.3623, allocations: 0 / 0.5224 GB, free: 32.07 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.189e-05/0.3624, allocations: 6.969 kB / 0.5224 GB, free: 32.06 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.17e-05/0.3624, allocations: 20.91 kB / 0.5224 GB, free: 32.05 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.377e-05/0.3624, allocations: 6.172 kB / 0.5224 GB, free: 32.05 MB / 378.7 MB Notification: Performance of sorting global known variables: time 9.638e-05/0.3625, allocations: 166.1 kB / 0.5226 GB, free: 31.95 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.11e-07/0.3625, allocations: 0 / 0.5226 GB, free: 31.95 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002438/0.3628, allocations: 28.47 kB / 0.5226 GB, free: 31.95 MB / 378.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.00095/0.3637, allocations: 0.5045 MB / 0.5231 GB, free: 31.7 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0001696/0.3639, allocations: 89.28 kB / 0.5232 GB, free: 31.66 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.3639, allocations: 0 / 0.5232 GB, free: 31.66 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 7.059e-05/0.364, allocations: 39.38 kB / 0.5232 GB, free: 31.65 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003212/0.3643, allocations: 30.14 kB / 0.5232 GB, free: 31.64 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004023/0.3647, allocations: 328.1 kB / 0.5235 GB, free: 31.4 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001291/0.3649, allocations: 0.7105 MB / 0.5242 GB, free: 30.7 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.857e-05/0.3649, allocations: 22.94 kB / 0.5243 GB, free: 30.69 MB / 378.7 MB Notification: Performance of SimCode: time 2.8e-07/0.3649, allocations: 0 / 0.5243 GB, free: 30.69 MB / 378.7 MB Notification: Performance of Templates: time 0.00313/0.3681, allocations: 2.22 MB / 0.5264 GB, free: 30.44 MB / 378.7 MB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test4.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test4.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test4.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test4.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test4.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test4 --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test4.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test4_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Tables/CombiTimeTable/Test4/Test4.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test4.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches