Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.IntegerTable.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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/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 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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_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_ModelicaTest.Blocks.IntegerTable") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001234/0.001234, allocations: 109 kB / 18.45 MB, free: 4.645 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00152/0.00152, allocations: 214.8 kB / 19.4 MB, free: 3.695 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.4/1.4, allocations: 227.4 MB / 247.6 MB, free: 10.51 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2273/0.2273, allocations: 46.1 MB / 344.9 MB, free: 11.53 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001509/0.001509, allocations: 80.11 kB / 482 MB, free: 4.113 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3634/0.365, allocations: 62.43 MB / 0.5316 GB, free: 13.63 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.IntegerTable): time 0.003764/0.3688, allocations: 2.33 MB / 0.5339 GB, free: 11.79 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002789/0.3716, allocations: 1.689 MB / 0.5356 GB, free: 10.46 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001676/0.3718, allocations: 11.72 kB / 0.5356 GB, free: 10.46 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004504/0.3722, allocations: 140.4 kB / 0.5357 GB, free: 10.37 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006088/0.3729, allocations: 285 kB / 0.536 GB, free: 10.16 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001307/0.3742, allocations: 0.5356 MB / 0.5365 GB, free: 9.797 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006975/0.3749, allocations: 0.5646 MB / 0.5371 GB, free: 9.453 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002173/0.3751, allocations: 80.81 kB / 0.5371 GB, free: 9.406 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003455/0.3755, allocations: 229.4 kB / 0.5374 GB, free: 9.27 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002956/0.3758, allocations: 228 kB / 0.5376 GB, free: 9.133 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.156e-05/0.3759, allocations: 31.56 kB / 0.5376 GB, free: 9.129 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003834/0.3763, allocations: 176.1 kB / 0.5378 GB, free: 9.055 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001954/0.3765, allocations: 128.9 kB / 0.5379 GB, free: 8.973 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000228/0.3767, allocations: 211.8 kB / 0.5381 GB, free: 8.809 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000778/0.3775, allocations: 0.6009 MB / 0.5387 GB, free: 8.398 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.212e-06/0.3775, allocations: 0 / 0.5387 GB, free: 8.398 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.555e-06/0.3775, allocations: 1.406 kB / 0.5387 GB, free: 8.398 MB / 398.1 MB Notification: Performance of Transformations before backend: time 9.267e-06/0.3775, allocations: 4 kB / 0.5387 GB, free: 8.395 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.001437/0.379, allocations: 0.9025 MB / 0.5396 GB, free: 7.562 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.871e-05/0.379, allocations: 9.906 kB / 0.5396 GB, free: 7.562 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001282/0.3792, allocations: 54.09 kB / 0.5396 GB, free: 7.535 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008317/0.38, allocations: 491 kB / 0.5401 GB, free: 7.121 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.261e-05/0.38, allocations: 11.55 kB / 0.5401 GB, free: 7.117 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.508e-05/0.3801, allocations: 22.34 kB / 0.5401 GB, free: 7.105 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005285/0.3806, allocations: 264.3 kB / 0.5404 GB, free: 6.875 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.202e-05/0.3807, allocations: 1.594 kB / 0.5404 GB, free: 6.875 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.912e-05/0.3807, allocations: 6.625 kB / 0.5404 GB, free: 6.871 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.426e-06/0.3807, allocations: 2.281 kB / 0.5404 GB, free: 6.871 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003147/0.381, allocations: 110.1 kB / 0.5405 GB, free: 6.816 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001283/0.3823, allocations: 0.883 MB / 0.5414 GB, free: 6.02 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007247/0.3831, allocations: 292.6 kB / 0.5416 GB, free: 5.812 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002679/0.3833, allocations: 111.7 kB / 0.5417 GB, free: 5.734 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.242e-05/0.3834, allocations: 11.41 kB / 0.5418 GB, free: 5.727 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000459/0.3838, allocations: 221.8 kB / 0.542 GB, free: 5.555 MB / 398.1 MB Notification: Performance of pre-optimization done (n=24): time 1.583e-06/0.3839, allocations: 1.281 kB / 0.542 GB, free: 5.555 MB / 398.1 MB Notification: Performance of matching and sorting (n=24): time 0.001064/0.3849, allocations: 406.6 kB / 0.5424 GB, free: 5.344 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002003/0.3851, allocations: 347.5 kB / 0.5427 GB, free: 4.93 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009581/0.3861, allocations: 0.6615 MB / 0.5433 GB, free: 4.574 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.077e-05/0.3862, allocations: 38.3 kB / 0.5434 GB, free: 4.535 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002118/0.3864, allocations: 236.7 kB / 0.5436 GB, free: 4.328 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.22e-05/0.3865, allocations: 65.25 kB / 0.5437 GB, free: 4.273 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000114/0.3866, allocations: 60.95 kB / 0.5437 GB, free: 4.234 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002016/0.3868, allocations: 373.8 kB / 0.5441 GB, free: 3.875 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002231/0.387, allocations: 82.02 kB / 0.5441 GB, free: 3.836 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003861/0.3874, allocations: 242.3 kB / 0.5444 GB, free: 3.613 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005269/0.3879, allocations: 234.2 kB / 0.5446 GB, free: 3.453 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.367e-06/0.388, allocations: 0 / 0.5446 GB, free: 3.453 MB / 398.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0007358/0.3887, allocations: 310.2 kB / 0.5449 GB, free: 3.289 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.939e-05/0.3887, allocations: 6.125 kB / 0.5449 GB, free: 3.289 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.168e-05/0.3888, allocations: 2.25 kB / 0.5449 GB, free: 3.289 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.789e-05/0.3888, allocations: 10.97 kB / 0.5449 GB, free: 3.281 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003035/0.3891, allocations: 60.52 kB / 0.545 GB, free: 3.262 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.653e-05/0.3891, allocations: 7.438 kB / 0.545 GB, free: 3.258 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002313/0.3894, allocations: 28.45 kB / 0.545 GB, free: 3.242 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.588e-05/0.3894, allocations: 8.656 kB / 0.545 GB, free: 3.242 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.0002875/0.3897, allocations: 225.4 kB / 0.5452 GB, free: 3.066 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.69e-05/0.3898, allocations: 58.81 kB / 0.5453 GB, free: 3.035 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001372/0.3899, allocations: 59.44 kB / 0.5453 GB, free: 2.996 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.001e-05/0.39, allocations: 7.438 kB / 0.5454 GB, free: 2.992 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.298e-06/0.39, allocations: 5.156 kB / 0.5454 GB, free: 2.988 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.484e-06/0.39, allocations: 1.094 kB / 0.5454 GB, free: 2.988 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005341/0.3905, allocations: 425.9 kB / 0.5458 GB, free: 2.617 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.306e-06/0.3905, allocations: 1.188 kB / 0.5458 GB, free: 2.617 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001269/0.3907, allocations: 22.23 kB / 0.5458 GB, free: 2.613 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.258e-06/0.3907, allocations: 2.781 kB / 0.5458 GB, free: 2.613 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.128e-05/0.3907, allocations: 11.95 kB / 0.5458 GB, free: 2.605 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.702e-06/0.3907, allocations: 5.594 kB / 0.5458 GB, free: 2.602 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.286e-06/0.3907, allocations: 5.406 kB / 0.5458 GB, free: 2.598 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007662/0.3915, allocations: 366.9 kB / 0.5462 GB, free: 2.301 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001141/0.3916, allocations: 128.5 kB / 0.5463 GB, free: 2.156 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.635e-05/0.3917, allocations: 11.98 kB / 0.5463 GB, free: 2.145 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001596/0.3919, allocations: 23.92 kB / 0.5463 GB, free: 2.121 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001266/0.392, allocations: 35.97 kB / 0.5464 GB, free: 2.086 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.634e-05/0.3921, allocations: 11.98 kB / 0.5464 GB, free: 2.074 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0005878/0.3927, allocations: 498.7 kB / 0.5468 GB, free: 1.59 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3927, allocations: 0 / 0.5468 GB, free: 1.59 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005369/0.3932, allocations: 99.89 kB / 0.5469 GB, free: 1.492 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.001179/0.3944, allocations: 467.9 kB / 0.5474 GB, free: 1.172 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0005545/0.395, allocations: 223.6 kB / 0.5476 GB, free: 0.9531 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.846e-06/0.395, allocations: 0 / 0.5476 GB, free: 0.9531 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002786/0.3953, allocations: 124.4 kB / 0.5477 GB, free: 0.832 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006785/0.3959, allocations: 162 kB / 0.5479 GB, free: 0.6875 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001321/0.3973, allocations: 0.8382 MB / 0.5487 GB, free: 15.81 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004221/0.3977, allocations: 0.8506 MB / 0.5495 GB, free: 14.93 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001205/0.3978, allocations: 51.41 kB / 0.5496 GB, free: 14.88 MB / 414.1 MB Notification: Performance of SimCode: time 1.573e-06/0.3978, allocations: 4 kB / 0.5496 GB, free: 14.87 MB / 414.1 MB Notification: Performance of Templates: time 0.01057/0.4084, allocations: 7.316 MB / 0.5567 GB, free: 7.574 MB / 414.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Blocks.IntegerTable.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.IntegerTable.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.IntegerTable.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.IntegerTable.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.IntegerTable.sim & ./ModelicaTest_trunk_ModelicaTest.Blocks.IntegerTable -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Blocks.IntegerTable.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Blocks.IntegerTable_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/IntegerTable/IntegerTable.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Blocks.IntegerTable.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches