Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Blocks.IntegerTable.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.Blocks.IntegerTable,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integerTable.y|integerTable2.y|integerTable3.y|integerTable4.y",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Blocks.IntegerTable") translateModel(ModelicaTest.Blocks.IntegerTable,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integerTable.y|integerTable2.y|integerTable3.y|integerTable4.y",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Blocks.IntegerTable") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001542/0.001542, allocations: 194.4 kB / 16.1 MB, free: 5.676 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.279/1.279, allocations: 226.5 MB / 243.4 MB, free: 6.469 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008076/0.0008076, allocations: 110.1 kB / 295.5 MB, free: 6.672 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3442/0.3442, allocations: 44.82 MB / 392.3 MB, free: 35.63 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004217/0.0004217, allocations: 11.98 kB / 465.3 MB, free: 12.67 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3569/0.3574, allocations: 62.95 MB / 0.5159 GB, free: 37.36 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.IntegerTable): time 0.002063/0.3595, allocations: 1.941 MB / 0.5178 GB, free: 35.95 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.002061/0.3616, allocations: 1.633 MB / 0.5194 GB, free: 34.82 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001438/0.3617, allocations: 3.938 kB / 0.5194 GB, free: 34.82 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003511/0.3621, allocations: 122.8 kB / 0.5195 GB, free: 34.79 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004334/0.3625, allocations: 229 kB / 0.5197 GB, free: 34.68 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001373/0.3639, allocations: 0.5731 MB / 0.5203 GB, free: 34.4 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005093/0.3644, allocations: 491.4 kB / 0.5207 GB, free: 34.17 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001852/0.3646, allocations: 78.17 kB / 0.5208 GB, free: 34.13 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002417/0.3649, allocations: 198.8 kB / 0.521 GB, free: 34.05 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002322/0.3651, allocations: 193.7 kB / 0.5212 GB, free: 33.98 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 4.019e-05/0.3652, allocations: 11.31 kB / 0.5212 GB, free: 33.98 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002996/0.3655, allocations: 114.5 kB / 0.5213 GB, free: 33.95 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001537/0.3656, allocations: 113.5 kB / 0.5214 GB, free: 33.91 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002474/0.3659, allocations: 201 kB / 0.5216 GB, free: 33.76 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005084/0.3664, allocations: 445.4 kB / 0.522 GB, free: 33.65 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.474e-06/0.3664, allocations: 0 / 0.522 GB, free: 33.65 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.615e-06/0.3664, allocations: 4 kB / 0.522 GB, free: 33.64 MB / 378.7 MB Notification: Performance of Transformations before backend: time 7.203e-06/0.3665, allocations: 0 / 0.522 GB, free: 33.64 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: 28 * Number of variables: 28 Notification: Performance of Generate backend data structure: time 0.001117/0.3676, allocations: 0.8185 MB / 0.5228 GB, free: 32.93 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.82e-05/0.3676, allocations: 14.78 kB / 0.5228 GB, free: 32.93 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.348e-05/0.3677, allocations: 55.12 kB / 0.5229 GB, free: 32.9 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005451/0.3683, allocations: 480.2 kB / 0.5233 GB, free: 32.55 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.496e-05/0.3683, allocations: 14.36 kB / 0.5234 GB, free: 32.55 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.255e-05/0.3684, allocations: 17 kB / 0.5234 GB, free: 32.54 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003893/0.3688, allocations: 262.1 kB / 0.5236 GB, free: 32.36 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.089e-05/0.3688, allocations: 2.844 kB / 0.5236 GB, free: 32.36 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.645e-05/0.3688, allocations: 6.906 kB / 0.5236 GB, free: 32.35 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.292e-06/0.3688, allocations: 2.656 kB / 0.5236 GB, free: 32.35 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002657/0.3691, allocations: 110.2 kB / 0.5237 GB, free: 32.31 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008894/0.37, allocations: 0.8866 MB / 0.5246 GB, free: 31.64 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000559/0.3706, allocations: 295.3 kB / 0.5249 GB, free: 31.46 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001962/0.3708, allocations: 107.1 kB / 0.525 GB, free: 31.4 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.776e-05/0.3708, allocations: 6.375 kB / 0.525 GB, free: 31.4 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003883/0.3712, allocations: 226.7 kB / 0.5252 GB, free: 31.27 MB / 378.7 MB Notification: Performance of pre-optimization done (n=24): time 2.134e-06/0.3712, allocations: 0 / 0.5252 GB, free: 31.27 MB / 378.7 MB Notification: Performance of matching and sorting (n=24): time 0.0008127/0.372, allocations: 404.9 kB / 0.5256 GB, free: 31.1 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.45e-05/0.3721, allocations: 344.3 kB / 0.5259 GB, free: 30.69 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006751/0.3728, allocations: 0.6608 MB / 0.5266 GB, free: 30.42 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.089e-05/0.3729, allocations: 42.86 kB / 0.5266 GB, free: 30.38 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001386/0.373, allocations: 240.9 kB / 0.5268 GB, free: 30.18 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.818e-05/0.3731, allocations: 64.94 kB / 0.5269 GB, free: 30.14 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.388e-05/0.3731, allocations: 4 kB / 0.5269 GB, free: 30.13 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 8.953e-05/0.3732, allocations: 372.7 kB / 0.5273 GB, free: 29.79 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001841/0.3734, allocations: 80.92 kB / 0.5273 GB, free: 29.77 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002714/0.3736, allocations: 245 kB / 0.5276 GB, free: 29.56 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003905/0.374, allocations: 230.1 kB / 0.5278 GB, free: 29.42 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.3741, allocations: 0 / 0.5278 GB, free: 29.42 MB / 378.7 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0005143/0.3746, allocations: 316.4 kB / 0.5281 GB, free: 29.27 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.73e-05/0.3746, allocations: 6.188 kB / 0.5281 GB, free: 29.27 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.105e-06/0.3746, allocations: 6.719 kB / 0.5281 GB, free: 29.27 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.632e-05/0.3746, allocations: 6.812 kB / 0.5281 GB, free: 29.27 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002321/0.3749, allocations: 55.03 kB / 0.5282 GB, free: 29.26 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.488e-06/0.3749, allocations: 6.688 kB / 0.5282 GB, free: 29.26 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001846/0.3751, allocations: 28.55 kB / 0.5282 GB, free: 29.25 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.223e-05/0.3751, allocations: 14.62 kB / 0.5282 GB, free: 29.24 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 24 ($whenCondition4,$PRE.integerTable.combiTimeTable.nextTimeEvent,integerTable.y,integerTable.combiTimeTable.nextTimeEvent,$PRE.integerTable.combiTimeTable.nextTimeEventScaled,integerTable.combiTimeTable.nextTimeEventScaled,$whenCondition3,$PRE.integerTable2.combiTimeTable.nextTimeEvent,integerTable2.y,integerTable2.combiTimeTable.nextTimeEvent,$PRE.integerTable2.combiTimeTable.nextTimeEventScaled,integerTable2.combiTimeTable.nextTimeEventScaled,$whenCondition2,$PRE.integerTable3.combiTimeTable.nextTimeEvent,integerTable3.y,integerTable3.combiTimeTable.nextTimeEvent,$PRE.integerTable3.combiTimeTable.nextTimeEventScaled,integerTable3.combiTimeTable.nextTimeEventScaled,$whenCondition1,$PRE.integerTable4.combiTimeTable.nextTimeEvent,integerTable4.y,integerTable4.combiTimeTable.nextTimeEvent,$PRE.integerTable4.combiTimeTable.nextTimeEventScaled,integerTable4.combiTimeTable.nextTimeEventScaled) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (32): * Single equations (assignments): 32 * 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 0.0002097/0.3753, allocations: 227 kB / 0.5284 GB, free: 29.08 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.389e-05/0.3754, allocations: 52.69 kB / 0.5285 GB, free: 29.05 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.227e-05/0.3755, allocations: 60.09 kB / 0.5285 GB, free: 29.02 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.972e-06/0.3755, allocations: 6.594 kB / 0.5286 GB, free: 29.02 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.706e-06/0.3755, allocations: 2.719 kB / 0.5286 GB, free: 29.02 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.55e-06/0.3755, allocations: 3.609 kB / 0.5286 GB, free: 29.02 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003297/0.3759, allocations: 417.7 kB / 0.529 GB, free: 28.74 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.755e-06/0.3759, allocations: 2.5 kB / 0.529 GB, free: 28.74 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001051/0.376, allocations: 26.55 kB / 0.529 GB, free: 28.73 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.635e-06/0.376, allocations: 0 / 0.529 GB, free: 28.73 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.151e-05/0.376, allocations: 8.609 kB / 0.529 GB, free: 28.73 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.06e-06/0.376, allocations: 10.31 kB / 0.529 GB, free: 28.73 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.675e-06/0.376, allocations: 0 / 0.529 GB, free: 28.73 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005414/0.3766, allocations: 374.4 kB / 0.5294 GB, free: 28.52 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001009/0.3767, allocations: 149.2 kB / 0.5295 GB, free: 28.39 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.075e-05/0.3768, allocations: 9.062 kB / 0.5295 GB, free: 28.38 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000154/0.3769, allocations: 24.88 kB / 0.5295 GB, free: 28.38 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.539e-05/0.377, allocations: 31.75 kB / 0.5296 GB, free: 28.37 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.296e-05/0.3771, allocations: 22.88 kB / 0.5296 GB, free: 28.36 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0004404/0.3775, allocations: 488.4 kB / 0.5301 GB, free: 28.16 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3775, allocations: 4 kB / 0.5301 GB, free: 28.16 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004114/0.3779, allocations: 102.1 kB / 0.5302 GB, free: 28.14 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 16 ($whenCondition4,integerTable.y,integerTable.combiTimeTable.nextTimeEvent,integerTable.combiTimeTable.nextTimeEventScaled,$whenCondition3,integerTable2.y,integerTable2.combiTimeTable.nextTimeEvent,integerTable2.combiTimeTable.nextTimeEventScaled,$whenCondition2,integerTable3.y,integerTable3.combiTimeTable.nextTimeEvent,integerTable3.combiTimeTable.nextTimeEventScaled,$whenCondition1,integerTable4.y,integerTable4.combiTimeTable.nextTimeEvent,integerTable4.combiTimeTable.nextTimeEventScaled) * Number of discrete states: 8 (integerTable4.combiTimeTable.nextTimeEventScaled,integerTable4.combiTimeTable.nextTimeEvent,integerTable3.combiTimeTable.nextTimeEventScaled,integerTable3.combiTimeTable.nextTimeEvent,integerTable2.combiTimeTable.nextTimeEventScaled,integerTable2.combiTimeTable.nextTimeEvent,integerTable.combiTimeTable.nextTimeEventScaled,integerTable.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 8 * 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.0009268/0.3789, allocations: 458.2 kB / 0.5306 GB, free: 27.91 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0004804/0.3794, allocations: 217.2 kB / 0.5308 GB, free: 27.84 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.749e-06/0.3794, allocations: 3.312 kB / 0.5308 GB, free: 27.84 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002367/0.3796, allocations: 135.2 kB / 0.5309 GB, free: 27.79 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006327/0.3803, allocations: 128.4 kB / 0.531 GB, free: 27.76 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001071/0.3813, allocations: 0.8998 MB / 0.5319 GB, free: 27.21 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002492/0.3816, allocations: 0.8442 MB / 0.5328 GB, free: 26.5 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001144/0.3817, allocations: 54.78 kB / 0.5328 GB, free: 26.48 MB / 378.7 MB Notification: Performance of SimCode: time 2.6e-07/0.3817, allocations: 4 kB / 0.5328 GB, free: 26.48 MB / 378.7 MB Notification: Performance of Templates: time 0.01086/0.3926, allocations: 7.189 MB / 0.5398 GB, free: 25.64 MB / 378.7 MB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Blocks.IntegerTable.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Blocks.IntegerTable.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Blocks.IntegerTable.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Blocks.IntegerTable.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Blocks.IntegerTable.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Blocks.IntegerTable --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Blocks.IntegerTable.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Blocks.IntegerTable_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/IntegerTable/IntegerTable.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Blocks.IntegerTable.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches