Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Blocks.IntegerTable.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_4.0.0_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_4.0.0_ModelicaTest.Blocks.IntegerTable") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001451/0.001451, allocations: 110.4 kB / 17.78 MB, free: 5.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001545/0.001545, allocations: 187.9 kB / 18.71 MB, free: 4.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.34/1.34, allocations: 222.9 MB / 242.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2239/0.2239, allocations: 44.19 MB / 336.7 MB, free: 2.668 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001246/0.001246, allocations: 59.91 kB / 470.5 MB, free: 13.18 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3735/0.3747, allocations: 60.81 MB / 0.5189 GB, free: 3.617 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.IntegerTable): time 0.003273/0.378, allocations: 2.286 MB / 0.5211 GB, free: 1.996 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0023/0.3803, allocations: 1.56 MB / 0.5226 GB, free: 0.9258 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001485/0.3805, allocations: 7.844 kB / 0.5226 GB, free: 0.9219 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004414/0.381, allocations: 139.1 kB / 0.5228 GB, free: 0.8711 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004183/0.3814, allocations: 222 kB / 0.523 GB, free: 0.7539 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001567/0.383, allocations: 0.6541 MB / 0.5236 GB, free: 440 kB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005747/0.3836, allocations: 0.5352 MB / 0.5242 GB, free: 176 kB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001549/0.3837, allocations: 69.27 kB / 0.5242 GB, free: 144 kB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002552/0.384, allocations: 221 kB / 0.5244 GB, free: 44 kB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003001/0.3843, allocations: 217.9 kB / 0.5246 GB, free: 15.95 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.252e-05/0.3844, allocations: 24.72 kB / 0.5247 GB, free: 15.95 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003608/0.3847, allocations: 171.2 kB / 0.5248 GB, free: 15.91 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001842/0.3849, allocations: 126.2 kB / 0.5249 GB, free: 15.86 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002082/0.3851, allocations: 199.9 kB / 0.5251 GB, free: 15.71 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007723/0.3859, allocations: 0.5801 MB / 0.5257 GB, free: 15.47 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.551e-06/0.3859, allocations: 0 / 0.5257 GB, free: 15.47 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.803e-06/0.3859, allocations: 0 / 0.5257 GB, free: 15.47 MB / 398.1 MB Notification: Performance of Transformations before backend: time 9.538e-06/0.386, allocations: 0 / 0.5257 GB, free: 15.47 MB / 398.1 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.001268/0.3872, allocations: 0.8866 MB / 0.5266 GB, free: 14.67 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.862e-05/0.3873, allocations: 8.25 kB / 0.5266 GB, free: 14.67 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001089/0.3874, allocations: 54.41 kB / 0.5266 GB, free: 14.64 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006329/0.388, allocations: 465.9 kB / 0.5271 GB, free: 14.24 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.353e-05/0.3881, allocations: 15.48 kB / 0.5271 GB, free: 14.23 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.917e-05/0.3881, allocations: 21.69 kB / 0.5271 GB, free: 14.22 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004259/0.3885, allocations: 258.3 kB / 0.5274 GB, free: 14 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.238e-06/0.3886, allocations: 0 / 0.5274 GB, free: 14 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.836e-05/0.3886, allocations: 14.72 kB / 0.5274 GB, free: 13.99 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.951e-06/0.3886, allocations: 2.75 kB / 0.5274 GB, free: 13.99 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002788/0.3889, allocations: 110.5 kB / 0.5275 GB, free: 13.93 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001016/0.3899, allocations: 0.8794 MB / 0.5283 GB, free: 13.14 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006355/0.3906, allocations: 292.9 kB / 0.5286 GB, free: 12.93 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002366/0.3908, allocations: 107.1 kB / 0.5287 GB, free: 12.86 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.332e-05/0.3908, allocations: 11.55 kB / 0.5287 GB, free: 12.85 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003842/0.3912, allocations: 210.7 kB / 0.5289 GB, free: 12.68 MB / 398.1 MB Notification: Performance of pre-optimization done (n=24): time 1.803e-06/0.3913, allocations: 5.312 kB / 0.5289 GB, free: 12.68 MB / 398.1 MB Notification: Performance of matching and sorting (n=24): time 0.0009386/0.3922, allocations: 405.8 kB / 0.5293 GB, free: 12.47 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001544/0.3924, allocations: 343.3 kB / 0.5296 GB, free: 12.06 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007005/0.3931, allocations: 0.6276 MB / 0.5303 GB, free: 11.72 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.327e-05/0.3931, allocations: 38.27 kB / 0.5303 GB, free: 11.68 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001671/0.3933, allocations: 231 kB / 0.5305 GB, free: 11.48 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.768e-05/0.3933, allocations: 62.39 kB / 0.5306 GB, free: 11.43 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.49e-05/0.3935, allocations: 63.94 kB / 0.5306 GB, free: 11.38 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000159/0.3936, allocations: 369.3 kB / 0.531 GB, free: 11.03 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001998/0.3938, allocations: 82.2 kB / 0.5311 GB, free: 10.99 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003139/0.3941, allocations: 239.4 kB / 0.5313 GB, free: 10.77 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004388/0.3946, allocations: 236.4 kB / 0.5315 GB, free: 10.61 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.346e-06/0.3946, allocations: 1.719 kB / 0.5315 GB, free: 10.61 MB / 398.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0006044/0.3952, allocations: 315.8 kB / 0.5318 GB, free: 10.43 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.521e-05/0.3952, allocations: 5.656 kB / 0.5318 GB, free: 10.43 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.66e-06/0.3952, allocations: 1.25 kB / 0.5318 GB, free: 10.43 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.681e-05/0.3953, allocations: 8.594 kB / 0.5318 GB, free: 10.43 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002413/0.3955, allocations: 51.88 kB / 0.5319 GB, free: 10.42 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.925e-06/0.3955, allocations: 3.375 kB / 0.5319 GB, free: 10.42 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001927/0.3957, allocations: 36.33 kB / 0.5319 GB, free: 10.39 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.428e-05/0.3958, allocations: 13.14 kB / 0.5319 GB, free: 10.39 MB / 398.1 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 ($PRE.integerTable.combiTimeTable.nextTimeEvent,$whenCondition4,integerTable.combiTimeTable.nextTimeEventScaled,$PRE.integerTable.combiTimeTable.nextTimeEventScaled,integerTable.combiTimeTable.nextTimeEvent,integerTable.y,$PRE.integerTable2.combiTimeTable.nextTimeEvent,$whenCondition3,integerTable2.combiTimeTable.nextTimeEventScaled,$PRE.integerTable2.combiTimeTable.nextTimeEventScaled,integerTable2.combiTimeTable.nextTimeEvent,integerTable2.y,$PRE.integerTable3.combiTimeTable.nextTimeEvent,$whenCondition2,integerTable3.combiTimeTable.nextTimeEventScaled,$PRE.integerTable3.combiTimeTable.nextTimeEventScaled,integerTable3.combiTimeTable.nextTimeEvent,integerTable3.y,$PRE.integerTable4.combiTimeTable.nextTimeEvent,$whenCondition1,integerTable4.combiTimeTable.nextTimeEventScaled,$PRE.integerTable4.combiTimeTable.nextTimeEventScaled,integerTable4.combiTimeTable.nextTimeEvent,integerTable4.y) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002221/0.396, allocations: 220 kB / 0.5321 GB, free: 10.22 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.46e-05/0.3961, allocations: 57.17 kB / 0.5322 GB, free: 10.19 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.088e-05/0.3962, allocations: 58.06 kB / 0.5323 GB, free: 10.15 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.752e-06/0.3962, allocations: 7.438 kB / 0.5323 GB, free: 10.14 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.184e-06/0.3962, allocations: 1.156 kB / 0.5323 GB, free: 10.14 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.02e-06/0.3962, allocations: 1.188 kB / 0.5323 GB, free: 10.14 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003817/0.3966, allocations: 401.3 kB / 0.5326 GB, free: 9.793 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.074e-06/0.3966, allocations: 1.188 kB / 0.5327 GB, free: 9.793 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001134/0.3967, allocations: 30.48 kB / 0.5327 GB, free: 9.781 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.036e-06/0.3967, allocations: 2.281 kB / 0.5327 GB, free: 9.781 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.318e-05/0.3968, allocations: 16.73 kB / 0.5327 GB, free: 9.77 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.707e-06/0.3968, allocations: 5.219 kB / 0.5327 GB, free: 9.766 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.665e-06/0.3968, allocations: 5.234 kB / 0.5327 GB, free: 9.762 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006223/0.3974, allocations: 367.3 kB / 0.5331 GB, free: 9.531 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.877e-05/0.3975, allocations: 130.5 kB / 0.5332 GB, free: 9.402 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.809e-05/0.3976, allocations: 8.5 kB / 0.5332 GB, free: 9.398 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001531/0.3977, allocations: 23.77 kB / 0.5332 GB, free: 9.383 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.288e-05/0.3978, allocations: 38.61 kB / 0.5332 GB, free: 9.359 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.844e-05/0.3979, allocations: 10.78 kB / 0.5333 GB, free: 9.359 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0004626/0.3983, allocations: 466.5 kB / 0.5337 GB, free: 9.113 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3984, allocations: 5.125 kB / 0.5337 GB, free: 9.109 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004331/0.3988, allocations: 101.5 kB / 0.5338 GB, free: 9.086 MB / 398.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000984/0.3998, allocations: 463.5 kB / 0.5342 GB, free: 8.859 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0005177/0.4003, allocations: 221.8 kB / 0.5345 GB, free: 8.766 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.815e-06/0.4003, allocations: 1.312 kB / 0.5345 GB, free: 8.766 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003376/0.4007, allocations: 169.5 kB / 0.5346 GB, free: 8.688 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005987/0.4013, allocations: 151.4 kB / 0.5348 GB, free: 8.613 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001111/0.4024, allocations: 0.7646 MB / 0.5355 GB, free: 8.129 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004013/0.4028, allocations: 0.8399 MB / 0.5363 GB, free: 7.355 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002248/0.403, allocations: 89.89 kB / 0.5364 GB, free: 7.312 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001138/0.4032, allocations: 50.3 kB / 0.5365 GB, free: 7.297 MB / 398.1 MB Notification: Performance of SimCode: time 3.21e-07/0.4032, allocations: 0 / 0.5365 GB, free: 7.297 MB / 398.1 MB Notification: Performance of Templates: time 0.01229/0.4155, allocations: 7.733 MB / 0.544 GB, free: 1.895 MB / 398.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Blocks.IntegerTable.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.IntegerTable.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.IntegerTable.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.IntegerTable.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.IntegerTable.sim & ./ModelicaTest_4.0.0_ModelicaTest.Blocks.IntegerTable -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Blocks.IntegerTable.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Blocks.IntegerTable.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches