Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test41.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.Test41,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|t_new.y.1.|d_t_new.y",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test41") translateModel(ModelicaTest.Tables.CombiTimeTable.Test41,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|t_new.y.1.|d_t_new.y",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test41") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008796/0.0008796, allocations: 200.5 kB / 15.8 MB, free: 6.305 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.264/1.264, allocations: 226.6 MB / 243.1 MB, free: 14.12 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0006888/0.0006888, allocations: 93.12 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.1857/0.1857, allocations: 44.84 MB / 392 MB, free: 9.32 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002474/0.0002474, allocations: 11.98 kB / 464.8 MB, free: 49.78 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08649/0.08675, allocations: 62.96 MB / 0.5153 GB, free: 2.777 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Tables.CombiTimeTable.Test41): time 0.001715/0.0885, allocations: 1.42 MB / 0.5167 GB, free: 1.34 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.00124/0.08976, allocations: 0.948 MB / 0.5177 GB, free: 396 kB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.463e-05/0.08983, allocations: 7.875 kB / 0.5177 GB, free: 388 kB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002469/0.09008, allocations: 71.83 kB / 0.5177 GB, free: 316 kB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002114/0.0903, allocations: 91.72 kB / 0.5178 GB, free: 224 kB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002465/0.09056, allocations: 94.64 kB / 0.5179 GB, free: 132 kB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001346/0.09071, allocations: 103.7 kB / 0.518 GB, free: 28 kB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 6.572e-05/0.09078, allocations: 12 kB / 0.518 GB, free: 16 kB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1695/0.2603, allocations: 40 kB / 0.5181 GB, free: 9.879 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001363/0.2605, allocations: 48.45 kB / 0.5181 GB, free: 9.879 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 1.952e-05/0.2605, allocations: 1.812 kB / 0.5181 GB, free: 9.879 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001442/0.2607, allocations: 41.02 kB / 0.5181 GB, free: 9.879 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 5.007e-05/0.2607, allocations: 20.44 kB / 0.5182 GB, free: 9.879 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 5.097e-05/0.2608, allocations: 38.42 kB / 0.5182 GB, free: 9.848 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002105/0.261, allocations: 91.91 kB / 0.5183 GB, free: 9.848 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.783e-06/0.261, allocations: 4.188 kB / 0.5183 GB, free: 9.848 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.683e-06/0.261, allocations: 1.203 kB / 0.5183 GB, free: 9.848 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.238e-06/0.261, allocations: 1.094 kB / 0.5183 GB, free: 9.848 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.0005486/0.2616, allocations: 412.9 kB / 0.5187 GB, free: 9.461 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.736e-05/0.2616, allocations: 10.16 kB / 0.5187 GB, free: 9.461 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.382e-05/0.2617, allocations: 10.81 kB / 0.5187 GB, free: 9.457 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002049/0.2619, allocations: 219 kB / 0.5189 GB, free: 9.242 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.97e-05/0.2619, allocations: 1.953 kB / 0.5189 GB, free: 9.242 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.871e-05/0.2619, allocations: 9 kB / 0.5189 GB, free: 9.242 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001415/0.2621, allocations: 54.38 kB / 0.519 GB, free: 9.211 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.576e-06/0.2621, allocations: 0 / 0.519 GB, free: 9.211 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.121e-05/0.2621, allocations: 2.25 kB / 0.519 GB, free: 9.211 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.769e-06/0.2621, allocations: 0.8125 kB / 0.519 GB, free: 9.211 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.429e-05/0.2622, allocations: 20.31 kB / 0.519 GB, free: 9.211 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003058/0.2625, allocations: 293.2 kB / 0.5193 GB, free: 8.945 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001633/0.2627, allocations: 60.47 kB / 0.5193 GB, free: 8.922 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.247e-05/0.2628, allocations: 21 kB / 0.5194 GB, free: 8.914 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.074e-05/0.2628, allocations: 1.312 kB / 0.5194 GB, free: 8.914 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001547/0.2629, allocations: 70.09 kB / 0.5194 GB, free: 8.863 MB / 346.7 MB Notification: Performance of pre-optimization done (n=6): time 1.463e-06/0.263, allocations: 0 / 0.5194 GB, free: 8.863 MB / 346.7 MB Notification: Performance of matching and sorting (n=8): time 0.0004969/0.2635, allocations: 178.9 kB / 0.5196 GB, free: 8.812 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.633e-05/0.2635, allocations: 53.78 kB / 0.5196 GB, free: 8.75 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002076/0.2637, allocations: 223.2 kB / 0.5199 GB, free: 8.637 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.083e-05/0.2637, allocations: 28.11 kB / 0.5199 GB, free: 8.605 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.028e-05/0.2638, allocations: 105.9 kB / 0.52 GB, free: 8.523 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.556e-05/0.2638, allocations: 30.28 kB / 0.52 GB, free: 8.508 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.058e-06/0.2638, allocations: 7.312 kB / 0.52 GB, free: 8.504 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 4.862e-05/0.2639, allocations: 327.2 kB / 0.5203 GB, free: 8.191 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.518e-05/0.2639, allocations: 16.22 kB / 0.5204 GB, free: 8.191 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.832e-05/0.264, allocations: 38.36 kB / 0.5204 GB, free: 8.176 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.283e-05/0.2641, allocations: 27.48 kB / 0.5204 GB, free: 8.176 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.2641, allocations: 0.9688 kB / 0.5204 GB, free: 8.176 MB / 346.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001713/0.2643, allocations: 111.2 kB / 0.5205 GB, free: 8.129 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.321e-05/0.2643, allocations: 4.656 kB / 0.5205 GB, free: 8.129 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.508e-06/0.2643, allocations: 1.031 kB / 0.5205 GB, free: 8.129 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.105e-05/0.2643, allocations: 1.984 kB / 0.5205 GB, free: 8.129 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.504e-05/0.2644, allocations: 14.62 kB / 0.5205 GB, free: 8.129 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.262e-06/0.2644, allocations: 1.688 kB / 0.5205 GB, free: 8.129 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.631e-05/0.2645, allocations: 5.906 kB / 0.5205 GB, free: 8.129 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.308e-06/0.2645, allocations: 11.14 kB / 0.5206 GB, free: 8.125 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.518e-05/0.2645, allocations: 128.8 kB / 0.5207 GB, free: 8.012 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.024e-05/0.2646, allocations: 19.06 kB / 0.5207 GB, free: 8 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.227e-05/0.2646, allocations: 20.8 kB / 0.5207 GB, free: 8 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.076e-06/0.2646, allocations: 2.156 kB / 0.5207 GB, free: 8 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.407e-06/0.2646, allocations: 0 / 0.5207 GB, free: 8 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.467e-06/0.2646, allocations: 1.094 kB / 0.5207 GB, free: 8 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003575/0.265, allocations: 400.4 kB / 0.5211 GB, free: 7.691 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.014e-06/0.265, allocations: 1.031 kB / 0.5211 GB, free: 7.691 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.269e-05/0.2651, allocations: 9.438 kB / 0.5211 GB, free: 7.691 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.565e-06/0.2651, allocations: 5.062 kB / 0.5211 GB, free: 7.688 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.438e-06/0.2651, allocations: 4.094 kB / 0.5211 GB, free: 7.688 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.773e-06/0.2651, allocations: 1.094 kB / 0.5211 GB, free: 7.688 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.795e-06/0.2651, allocations: 7.766 kB / 0.5211 GB, free: 7.684 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001856/0.2653, allocations: 201.1 kB / 0.5213 GB, free: 7.539 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.171e-05/0.2653, allocations: 89.42 kB / 0.5214 GB, free: 7.441 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.339e-05/0.2654, allocations: 7.781 kB / 0.5214 GB, free: 7.438 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.024e-05/0.2654, allocations: 3.672 kB / 0.5214 GB, free: 7.438 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.398e-05/0.2655, allocations: 11.69 kB / 0.5214 GB, free: 7.434 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.44e-05/0.2655, allocations: 4.938 kB / 0.5214 GB, free: 7.434 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001263/0.2656, allocations: 168.3 kB / 0.5216 GB, free: 7.359 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2656, allocations: 0 / 0.5216 GB, free: 7.359 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002289/0.2659, allocations: 26.59 kB / 0.5216 GB, free: 7.355 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.0009107/0.2668, allocations: 467 kB / 0.5221 GB, free: 7.141 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001653/0.2669, allocations: 57.45 kB / 0.5221 GB, free: 7.141 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.573e-06/0.267, allocations: 0 / 0.5221 GB, free: 7.141 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 6.519e-05/0.267, allocations: 28.09 kB / 0.5221 GB, free: 7.141 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000321/0.2674, allocations: 29.56 kB / 0.5222 GB, free: 7.137 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004102/0.2678, allocations: 302.6 kB / 0.5225 GB, free: 6.934 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001327/0.2679, allocations: 0.712 MB / 0.5232 GB, free: 6.234 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.479e-05/0.268, allocations: 16.72 kB / 0.5232 GB, free: 6.227 MB / 346.7 MB Notification: Performance of SimCode: time 2.3e-07/0.268, allocations: 0 / 0.5232 GB, free: 6.227 MB / 346.7 MB Notification: Performance of Templates: time 0.00387/0.2718, allocations: 1.978 MB / 0.5251 GB, free: 6.031 MB / 346.7 MB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test41.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test41.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test41.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test41.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test41.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test41 --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test41.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test41_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Tables/CombiTimeTable/Test41/Test41.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test41.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches