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: "" <> buildModelFMU(ModelicaTest.Blocks.IntegerTable,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Blocks_IntegerTable",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.IntegerTable,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Blocks_IntegerTable",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001204/0.001204, allocations: 193.9 kB / 16.09 MB, free: 5.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.231/1.231, allocations: 226.5 MB / 243.4 MB, free: 8.215 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007362/0.0007362, allocations: 91.14 kB / 295.5 MB, free: 6.887 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2945/0.2945, allocations: 44.82 MB / 392.3 MB, free: 35.7 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002571/0.0002572, allocations: 11.98 kB / 465.4 MB, free: 12.56 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2596/0.2599, allocations: 62.95 MB / 0.516 GB, free: 36.97 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.IntegerTable): time 0.00185/0.2618, allocations: 1.948 MB / 0.5179 GB, free: 35.55 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.00186/0.2637, allocations: 1.635 MB / 0.5194 GB, free: 34.43 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001315/0.2638, allocations: 3.344 kB / 0.5195 GB, free: 34.43 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003382/0.2642, allocations: 121.2 kB / 0.5196 GB, free: 34.39 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004014/0.2646, allocations: 224.1 kB / 0.5198 GB, free: 34.29 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001199/0.2658, allocations: 0.5696 MB / 0.5203 GB, free: 34.02 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003984/0.2662, allocations: 492.8 kB / 0.5208 GB, free: 33.79 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001432/0.2663, allocations: 71.06 kB / 0.5209 GB, free: 33.75 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000187/0.2665, allocations: 200.7 kB / 0.5211 GB, free: 33.68 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001629/0.2667, allocations: 185.7 kB / 0.5212 GB, free: 33.61 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 3.669e-05/0.2668, allocations: 12.47 kB / 0.5213 GB, free: 33.6 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002146/0.267, allocations: 123.8 kB / 0.5214 GB, free: 33.57 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001011/0.2671, allocations: 115.2 kB / 0.5215 GB, free: 33.53 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001223/0.2672, allocations: 202.3 kB / 0.5217 GB, free: 33.38 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003232/0.2675, allocations: 451.6 kB / 0.5221 GB, free: 33.26 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.2676, allocations: 0 / 0.5221 GB, free: 33.26 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.192e-06/0.2676, allocations: 0 / 0.5221 GB, free: 33.26 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.621e-06/0.2676, allocations: 0 / 0.5221 GB, free: 33.26 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.0008752/0.2685, allocations: 0.8171 MB / 0.5229 GB, free: 32.54 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.536e-05/0.2685, allocations: 10.94 kB / 0.5229 GB, free: 32.54 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.327e-05/0.2685, allocations: 54.77 kB / 0.523 GB, free: 32.49 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.751e-05/0.2686, allocations: 53.38 kB / 0.523 GB, free: 32.46 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004415/0.2691, allocations: 487.4 kB / 0.5235 GB, free: 32.11 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.119e-05/0.2691, allocations: 10.27 kB / 0.5235 GB, free: 32.11 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.617e-05/0.2691, allocations: 14.34 kB / 0.5235 GB, free: 32.11 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003643/0.2695, allocations: 265.8 kB / 0.5238 GB, free: 31.92 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.456e-06/0.2695, allocations: 3.984 kB / 0.5238 GB, free: 31.91 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.218e-05/0.2695, allocations: 6.906 kB / 0.5238 GB, free: 31.91 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.39e-06/0.2696, allocations: 6.156 kB / 0.5238 GB, free: 31.91 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002454/0.2698, allocations: 105.6 kB / 0.5239 GB, free: 31.88 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008246/0.2706, allocations: 0.8892 MB / 0.5247 GB, free: 31.2 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005212/0.2712, allocations: 296.7 kB / 0.525 GB, free: 31.02 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001811/0.2714, allocations: 109.1 kB / 0.5251 GB, free: 30.96 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.834e-05/0.2714, allocations: 2.844 kB / 0.5251 GB, free: 30.96 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003436/0.2718, allocations: 222.8 kB / 0.5253 GB, free: 30.83 MB / 378.7 MB Notification: Performance of pre-optimization done (n=24): time 1.964e-06/0.2718, allocations: 0 / 0.5253 GB, free: 30.83 MB / 378.7 MB Notification: Performance of matching and sorting (n=24): time 0.0008049/0.2726, allocations: 406.3 kB / 0.5257 GB, free: 30.66 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.206e-05/0.2726, allocations: 347.5 kB / 0.5261 GB, free: 30.25 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005884/0.2732, allocations: 0.6638 MB / 0.5267 GB, free: 29.98 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.559e-05/0.2733, allocations: 32.39 kB / 0.5267 GB, free: 29.95 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001221/0.2734, allocations: 245.3 kB / 0.527 GB, free: 29.75 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.472e-05/0.2735, allocations: 60.42 kB / 0.527 GB, free: 29.7 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.335e-05/0.2735, allocations: 6.625 kB / 0.527 GB, free: 29.7 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 7.134e-05/0.2736, allocations: 371.4 kB / 0.5274 GB, free: 29.36 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001765/0.2737, allocations: 87.91 kB / 0.5275 GB, free: 29.32 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002272/0.274, allocations: 245.8 kB / 0.5277 GB, free: 29.12 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003519/0.2743, allocations: 229.1 kB / 0.5279 GB, free: 28.98 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.2743, allocations: 1.969 kB / 0.5279 GB, free: 28.98 MB / 378.7 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0004875/0.2748, allocations: 314.6 kB / 0.5282 GB, free: 28.83 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.336e-05/0.2749, allocations: 5.969 kB / 0.5282 GB, free: 28.83 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.41e-06/0.2749, allocations: 2.938 kB / 0.5282 GB, free: 28.83 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.404e-05/0.2749, allocations: 6.75 kB / 0.5283 GB, free: 28.83 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000224/0.2751, allocations: 59.02 kB / 0.5283 GB, free: 28.82 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.365e-06/0.2751, allocations: 10.88 kB / 0.5283 GB, free: 28.81 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001925/0.2753, allocations: 33.86 kB / 0.5284 GB, free: 28.8 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.033e-05/0.2754, allocations: 12.78 kB / 0.5284 GB, free: 28.79 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.0001853/0.2755, allocations: 222.5 kB / 0.5286 GB, free: 28.63 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.609e-05/0.2756, allocations: 52.47 kB / 0.5286 GB, free: 28.61 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.314e-05/0.2757, allocations: 63.48 kB / 0.5287 GB, free: 28.57 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.068e-06/0.2757, allocations: 3.031 kB / 0.5287 GB, free: 28.57 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.621e-06/0.2757, allocations: 3.156 kB / 0.5287 GB, free: 28.57 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.749e-06/0.2757, allocations: 7.234 kB / 0.5287 GB, free: 28.57 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002913/0.276, allocations: 422.1 kB / 0.5291 GB, free: 28.29 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.713e-06/0.276, allocations: 3.062 kB / 0.5291 GB, free: 28.29 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001112/0.2761, allocations: 24.83 kB / 0.5291 GB, free: 28.28 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.085e-06/0.2762, allocations: 3.094 kB / 0.5291 GB, free: 28.28 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.879e-05/0.2762, allocations: 10.23 kB / 0.5291 GB, free: 28.28 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.757e-06/0.2762, allocations: 6.844 kB / 0.5291 GB, free: 28.27 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.373e-06/0.2762, allocations: 7.031 kB / 0.5292 GB, free: 28.27 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005174/0.2767, allocations: 362 kB / 0.5295 GB, free: 28.08 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.78e-05/0.2768, allocations: 142.4 kB / 0.5296 GB, free: 27.95 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.843e-05/0.2769, allocations: 17.66 kB / 0.5297 GB, free: 27.93 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001622/0.277, allocations: 15.05 kB / 0.5297 GB, free: 27.93 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.069e-05/0.2771, allocations: 40.5 kB / 0.5297 GB, free: 27.92 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.751e-05/0.2772, allocations: 18.5 kB / 0.5297 GB, free: 27.91 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.000409/0.2776, allocations: 491.5 kB / 0.5302 GB, free: 27.71 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2776, allocations: 0 / 0.5302 GB, free: 27.71 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003665/0.278, allocations: 100.9 kB / 0.5303 GB, free: 27.7 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.001438/0.2794, allocations: 1.238 MB / 0.5315 GB, free: 26.84 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0004569/0.2799, allocations: 225.3 kB / 0.5317 GB, free: 26.77 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.2799, allocations: 4.25 kB / 0.5317 GB, free: 26.77 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002246/0.2801, allocations: 118.1 kB / 0.5318 GB, free: 26.73 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006648/0.2808, allocations: 140.6 kB / 0.532 GB, free: 26.69 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003398/0.2842, allocations: 2.878 MB / 0.5348 GB, free: 25.24 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002346/0.2845, allocations: 0.8525 MB / 0.5356 GB, free: 24.52 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001971/0.2847, allocations: 172 kB / 0.5358 GB, free: 24.41 MB / 378.7 MB Notification: Performance of SimCode: time 3.61e-07/0.2847, allocations: 0 / 0.5358 GB, free: 24.41 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.443/3.728, allocations: 8.231 MB / 0.5438 GB, free: 23.18 MB / 378.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_cpp_ModelicaTest.Blocks.IntegerTable_res.mat --tempDir=temp_ModelicaTest_trunk_cpp_ModelicaTest_Blocks_IntegerTable_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_cpp_ModelicaTest_Blocks_IntegerTable.fmu > ModelicaTest_trunk_cpp_ModelicaTest.Blocks.IntegerTable.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_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","../files/ModelicaTest_trunk_cpp_ModelicaTest.Blocks.IntegerTable.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches