Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test29.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.Test29,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|t_new.y.1.|d_t_new.y",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test29") translateModel(ModelicaTest.Tables.CombiTimeTable.Test29,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|t_new.y.1.|d_t_new.y",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test29") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001023/0.001023, allocations: 201.8 kB / 15.8 MB, free: 6.309 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.288/1.288, allocations: 226.6 MB / 243.1 MB, free: 12.55 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007075/0.0007072, allocations: 97.36 kB / 295.1 MB, free: 4.402 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1796/0.1796, allocations: 44.84 MB / 392 MB, free: 11.37 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000268/0.000268, allocations: 8 kB / 464.7 MB, free: 68.08 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08978/0.09007, allocations: 62.96 MB / 0.5153 GB, free: 5.113 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Tables.CombiTimeTable.Test29): time 0.00146/0.09156, allocations: 1.424 MB / 0.5167 GB, free: 3.672 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.001055/0.09262, allocations: 0.948 MB / 0.5176 GB, free: 2.719 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.209e-05/0.09269, allocations: 3.938 kB / 0.5177 GB, free: 2.715 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002032/0.0929, allocations: 31.92 kB / 0.5177 GB, free: 2.684 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001833/0.09309, allocations: 75.67 kB / 0.5178 GB, free: 2.609 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002012/0.0933, allocations: 91.83 kB / 0.5178 GB, free: 2.52 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001122/0.09342, allocations: 95.67 kB / 0.5179 GB, free: 2.426 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 6.166e-05/0.09349, allocations: 8 kB / 0.5179 GB, free: 2.418 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.13e-05/0.09356, allocations: 39.78 kB / 0.518 GB, free: 2.379 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.837e-05/0.09362, allocations: 35.78 kB / 0.518 GB, free: 2.344 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 1.231e-05/0.09364, allocations: 0 / 0.518 GB, free: 2.344 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.771e-05/0.09371, allocations: 47.86 kB / 0.5181 GB, free: 2.297 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 2.695e-05/0.09374, allocations: 11.92 kB / 0.5181 GB, free: 2.285 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 3.032e-05/0.09378, allocations: 33.7 kB / 0.5181 GB, free: 2.246 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001051/0.09389, allocations: 96.03 kB / 0.5182 GB, free: 2.152 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.685e-06/0.0939, allocations: 8 kB / 0.5182 GB, free: 2.145 MB / 346.7 MB Notification: Performance of FrontEnd: time 8.92e-07/0.09391, allocations: 0 / 0.5182 GB, free: 2.145 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.617e-06/0.09392, allocations: 0 / 0.5182 GB, free: 2.145 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.0003193/0.09424, allocations: 395 kB / 0.5186 GB, free: 1.711 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.66e-05/0.09427, allocations: 12.03 kB / 0.5186 GB, free: 1.699 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.744e-05/0.09431, allocations: 11.81 kB / 0.5186 GB, free: 1.688 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001386/0.09445, allocations: 211.5 kB / 0.5188 GB, free: 1.441 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.03e-05/0.09447, allocations: 0 / 0.5188 GB, free: 1.441 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.676e-05/0.09449, allocations: 7.938 kB / 0.5188 GB, free: 1.434 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001061/0.0946, allocations: 57.67 kB / 0.5189 GB, free: 1.371 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.985e-06/0.09462, allocations: 3.938 kB / 0.5189 GB, free: 1.367 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.665e-06/0.09463, allocations: 0 / 0.5189 GB, free: 1.367 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.24e-06/0.09464, allocations: 0 / 0.5189 GB, free: 1.367 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.803e-05/0.09471, allocations: 19.98 kB / 0.5189 GB, free: 1.348 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002341/0.09495, allocations: 280.9 kB / 0.5192 GB, free: 1.023 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001319/0.09509, allocations: 66.61 kB / 0.5192 GB, free: 0.9492 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.26e-05/0.09514, allocations: 20.84 kB / 0.5192 GB, free: 0.9258 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.535e-05/0.09516, allocations: 0 / 0.5192 GB, free: 0.9258 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001252/0.09529, allocations: 71.3 kB / 0.5193 GB, free: 0.8438 MB / 346.7 MB Notification: Performance of pre-optimization done (n=6): time 1.172e-06/0.0953, allocations: 0 / 0.5193 GB, free: 0.8438 MB / 346.7 MB Notification: Performance of matching and sorting (n=8): time 0.0003991/0.09571, allocations: 169.5 kB / 0.5195 GB, free: 0.6719 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.965e-05/0.09574, allocations: 59.39 kB / 0.5195 GB, free: 0.6016 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001192/0.09586, allocations: 200.1 kB / 0.5197 GB, free: 408 kB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 9.127e-06/0.09588, allocations: 29.7 kB / 0.5197 GB, free: 372 kB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.943e-05/0.09591, allocations: 100.1 kB / 0.5198 GB, free: 268 kB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.765e-05/0.09594, allocations: 27.69 kB / 0.5199 GB, free: 240 kB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.246e-06/0.09594, allocations: 0 / 0.5199 GB, free: 240 kB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001014/0.09605, allocations: 322.8 kB / 0.5202 GB, free: 15.91 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.251e-05/0.09611, allocations: 27.98 kB / 0.5202 GB, free: 15.88 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.766e-05/0.09617, allocations: 33.7 kB / 0.5202 GB, free: 15.84 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.457e-05/0.09624, allocations: 28.19 kB / 0.5203 GB, free: 15.82 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.51e-07/0.09624, allocations: 0 / 0.5203 GB, free: 15.82 MB / 362.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001634/0.09641, allocations: 105.4 kB / 0.5204 GB, free: 15.71 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.121e-05/0.09643, allocations: 7.984 kB / 0.5204 GB, free: 15.7 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.456e-06/0.09644, allocations: 128 / 0.5204 GB, free: 15.7 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.394e-06/0.09645, allocations: 0 / 0.5204 GB, free: 15.7 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.063e-05/0.09654, allocations: 27.97 kB / 0.5204 GB, free: 15.67 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.807e-06/0.09655, allocations: 0 / 0.5204 GB, free: 15.67 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.146e-05/0.0966, allocations: 0 / 0.5204 GB, free: 15.67 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.217e-06/0.09661, allocations: 11.94 kB / 0.5204 GB, free: 15.66 MB / 362.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.086e-05/0.0967, allocations: 121.8 kB / 0.5205 GB, free: 15.53 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.681e-05/0.09672, allocations: 11.91 kB / 0.5205 GB, free: 15.52 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.777e-05/0.09677, allocations: 17.39 kB / 0.5206 GB, free: 15.5 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.747e-06/0.09677, allocations: 0 / 0.5206 GB, free: 15.5 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.016e-06/0.09678, allocations: 11.94 kB / 0.5206 GB, free: 15.49 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.358e-06/0.09679, allocations: 3.984 kB / 0.5206 GB, free: 15.49 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004038/0.0972, allocations: 391.3 kB / 0.5209 GB, free: 15.05 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.09e-06/0.09722, allocations: 4 kB / 0.5209 GB, free: 15.04 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.101e-05/0.09725, allocations: 7.984 kB / 0.521 GB, free: 15.04 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.576e-06/0.09726, allocations: 4 kB / 0.521 GB, free: 15.03 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.436e-06/0.09728, allocations: 4 kB / 0.521 GB, free: 15.03 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.166e-06/0.09728, allocations: 3.938 kB / 0.521 GB, free: 15.02 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.747e-06/0.09729, allocations: 11.98 kB / 0.521 GB, free: 15.01 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002295/0.09753, allocations: 200.2 kB / 0.5212 GB, free: 14.8 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.825e-05/0.09759, allocations: 89 kB / 0.5213 GB, free: 14.69 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.892e-05/0.09762, allocations: 4 kB / 0.5213 GB, free: 14.69 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.763e-05/0.09769, allocations: 4 kB / 0.5213 GB, free: 14.68 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.848e-05/0.09773, allocations: 11.94 kB / 0.5213 GB, free: 14.67 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.225e-05/0.09775, allocations: 8 kB / 0.5213 GB, free: 14.66 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001119/0.09786, allocations: 147.2 kB / 0.5214 GB, free: 14.52 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.09787, allocations: 0 / 0.5214 GB, free: 14.52 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002174/0.09809, allocations: 20 kB / 0.5214 GB, free: 14.5 MB / 362.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.0008656/0.09896, allocations: 470.6 kB / 0.5219 GB, free: 14.19 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001485/0.09912, allocations: 55.97 kB / 0.5219 GB, free: 14.14 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.482e-06/0.09913, allocations: 0 / 0.5219 GB, free: 14.14 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 6.463e-05/0.0992, allocations: 32.08 kB / 0.522 GB, free: 14.11 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000291/0.0995, allocations: 28.12 kB / 0.522 GB, free: 14.08 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000399/0.09991, allocations: 275.9 kB / 0.5223 GB, free: 13.77 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002724/0.1002, allocations: 0.7083 MB / 0.523 GB, free: 13.04 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.641e-05/0.1002, allocations: 23.42 kB / 0.523 GB, free: 13.02 MB / 362.7 MB Notification: Performance of SimCode: time 2.61e-07/0.1002, allocations: 0 / 0.523 GB, free: 13.02 MB / 362.7 MB Notification: Performance of Templates: time 0.003062/0.1033, allocations: 1.93 MB / 0.5249 GB, free: 11.09 MB / 362.7 MB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test29.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test29.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test29.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test29.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test29.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test29 --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test29.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test29_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Tables/CombiTimeTable/Test29/Test29.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test29.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches