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.001079/0.001079, allocations: 201 kB / 15.8 MB, free: 5.961 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.262/1.262, allocations: 226.6 MB / 243.1 MB, free: 14.29 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007784/0.0007785, allocations: 94.09 kB / 295.1 MB, free: 10.06 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1763/0.1763, allocations: 44.83 MB / 392 MB, free: 9.328 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002605/0.0002607, allocations: 8 kB / 464.7 MB, free: 49.79 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08778/0.08806, allocations: 62.96 MB / 0.5153 GB, free: 2.777 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.IntegerTable): time 0.002369/0.09048, allocations: 1.942 MB / 0.5172 GB, free: 0.8164 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.1735/0.264, allocations: 1.613 MB / 0.5188 GB, free: 9.785 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000163/0.2642, allocations: 7.656 kB / 0.5188 GB, free: 9.785 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003577/0.2645, allocations: 128.5 kB / 0.5189 GB, free: 9.773 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004398/0.265, allocations: 219 kB / 0.5191 GB, free: 9.73 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001353/0.2664, allocations: 0.5802 MB / 0.5197 GB, free: 9.691 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005025/0.2669, allocations: 489.5 kB / 0.5202 GB, free: 9.617 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000143/0.267, allocations: 60.25 kB / 0.5202 GB, free: 9.605 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002414/0.2673, allocations: 197 kB / 0.5204 GB, free: 9.555 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002223/0.2675, allocations: 195 kB / 0.5206 GB, free: 9.504 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 5.888e-05/0.2676, allocations: 9.188 kB / 0.5206 GB, free: 9.504 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002657/0.2678, allocations: 123.4 kB / 0.5207 GB, free: 9.492 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001318/0.268, allocations: 111.9 kB / 0.5208 GB, free: 9.473 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 7.426e-05/0.2681, allocations: 104.8 kB / 0.5209 GB, free: 9.422 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005159/0.2686, allocations: 446.5 kB / 0.5214 GB, free: 9.387 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.989e-06/0.2686, allocations: 0.7031 kB / 0.5214 GB, free: 9.387 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.593e-06/0.2686, allocations: 0 / 0.5214 GB, free: 9.387 MB / 346.7 MB Notification: Performance of Transformations before backend: time 6.302e-06/0.2686, allocations: 0 / 0.5214 GB, free: 9.387 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: 28 * Number of variables: 28 Notification: Performance of Generate backend data structure: time 0.0008953/0.2695, allocations: 0.8308 MB / 0.5222 GB, free: 8.703 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.963e-05/0.2695, allocations: 9.531 kB / 0.5222 GB, free: 8.703 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.343e-05/0.2696, allocations: 54.22 kB / 0.5222 GB, free: 8.676 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005044/0.2701, allocations: 464.8 kB / 0.5227 GB, free: 8.414 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.76e-05/0.2702, allocations: 13.5 kB / 0.5227 GB, free: 8.414 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.827e-05/0.2702, allocations: 17.48 kB / 0.5227 GB, free: 8.41 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000392/0.2706, allocations: 263.6 kB / 0.5229 GB, free: 8.27 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.358e-06/0.2706, allocations: 0 / 0.5229 GB, free: 8.27 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.425e-05/0.2707, allocations: 7.094 kB / 0.523 GB, free: 8.27 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.72e-06/0.2707, allocations: 6.938 kB / 0.523 GB, free: 8.266 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002708/0.2709, allocations: 107.2 kB / 0.5231 GB, free: 8.262 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009572/0.2719, allocations: 0.8821 MB / 0.5239 GB, free: 7.734 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005737/0.2725, allocations: 296.2 kB / 0.5242 GB, free: 7.574 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001961/0.2727, allocations: 103.6 kB / 0.5243 GB, free: 7.516 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.263e-05/0.2727, allocations: 14.88 kB / 0.5243 GB, free: 7.508 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003768/0.2731, allocations: 222.8 kB / 0.5245 GB, free: 7.375 MB / 346.7 MB Notification: Performance of pre-optimization done (n=24): time 1.714e-06/0.2731, allocations: 3.938 kB / 0.5245 GB, free: 7.371 MB / 346.7 MB Notification: Performance of matching and sorting (n=24): time 0.0008556/0.274, allocations: 402.5 kB / 0.5249 GB, free: 7.211 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.456e-05/0.2741, allocations: 347.4 kB / 0.5253 GB, free: 6.797 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007668/0.2749, allocations: 0.6596 MB / 0.5259 GB, free: 6.531 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.978e-05/0.2749, allocations: 39.17 kB / 0.5259 GB, free: 6.492 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001396/0.275, allocations: 231.4 kB / 0.5262 GB, free: 6.305 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.99e-05/0.2751, allocations: 71.05 kB / 0.5262 GB, free: 6.254 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.235e-05/0.2751, allocations: 5.156 kB / 0.5262 GB, free: 6.25 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 8.932e-05/0.2752, allocations: 371.8 kB / 0.5266 GB, free: 5.91 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000198/0.2754, allocations: 78.83 kB / 0.5267 GB, free: 5.887 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002784/0.2757, allocations: 247.3 kB / 0.5269 GB, free: 5.68 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002151/0.2759, allocations: 109.1 kB / 0.527 GB, free: 5.629 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.2759, allocations: 1.281 kB / 0.527 GB, free: 5.629 MB / 346.7 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0005556/0.2765, allocations: 315.7 kB / 0.5273 GB, free: 5.484 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.483e-05/0.2765, allocations: 9.484 kB / 0.5273 GB, free: 5.48 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.364e-06/0.2765, allocations: 2.547 kB / 0.5273 GB, free: 5.48 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.732e-05/0.2766, allocations: 3.156 kB / 0.5273 GB, free: 5.48 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002333/0.2768, allocations: 58.34 kB / 0.5274 GB, free: 5.473 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.426e-06/0.2768, allocations: 3.344 kB / 0.5274 GB, free: 5.473 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001896/0.277, allocations: 29.61 kB / 0.5274 GB, free: 5.461 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.301e-05/0.277, allocations: 15.48 kB / 0.5274 GB, free: 5.457 MB / 346.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.0002057/0.2772, allocations: 220.2 kB / 0.5276 GB, free: 5.297 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.758e-05/0.2773, allocations: 54.92 kB / 0.5277 GB, free: 5.27 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.044e-05/0.2774, allocations: 64.56 kB / 0.5277 GB, free: 5.238 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.66e-06/0.2774, allocations: 3.156 kB / 0.5277 GB, free: 5.238 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.023e-06/0.2774, allocations: 2.094 kB / 0.5277 GB, free: 5.238 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.46e-06/0.2774, allocations: 6 kB / 0.5278 GB, free: 5.234 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000364/0.2778, allocations: 420.8 kB / 0.5282 GB, free: 4.957 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.317e-06/0.2778, allocations: 2.25 kB / 0.5282 GB, free: 4.957 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001155/0.2779, allocations: 26.59 kB / 0.5282 GB, free: 4.953 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.246e-06/0.278, allocations: 2.438 kB / 0.5282 GB, free: 4.953 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.174e-05/0.278, allocations: 12.34 kB / 0.5282 GB, free: 4.949 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.206e-06/0.278, allocations: 5.266 kB / 0.5282 GB, free: 4.945 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.464e-06/0.278, allocations: 1.859 kB / 0.5282 GB, free: 4.945 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005785/0.2786, allocations: 370.7 kB / 0.5286 GB, free: 4.746 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.54e-05/0.2787, allocations: 149.2 kB / 0.5287 GB, free: 4.609 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.245e-05/0.2788, allocations: 10.44 kB / 0.5287 GB, free: 4.605 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001722/0.2789, allocations: 22.62 kB / 0.5287 GB, free: 4.598 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.959e-05/0.279, allocations: 37.73 kB / 0.5288 GB, free: 4.586 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.108e-05/0.2791, allocations: 14.03 kB / 0.5288 GB, free: 4.586 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0005453/0.2796, allocations: 490.2 kB / 0.5292 GB, free: 4.387 MB / 346.7 MB Notification: Performance of sort global known variables: time 6.11e-07/0.2796, allocations: 0.75 kB / 0.5292 GB, free: 4.387 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0004129/0.28, allocations: 94.72 kB / 0.5293 GB, free: 4.375 MB / 346.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.0008563/0.2809, allocations: 464.6 kB / 0.5298 GB, free: 4.141 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0004968/0.2814, allocations: 224.7 kB / 0.53 GB, free: 4.07 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.096e-06/0.2814, allocations: 0.7812 kB / 0.53 GB, free: 4.07 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002477/0.2817, allocations: 128.8 kB / 0.5301 GB, free: 4.027 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006233/0.2823, allocations: 133.9 kB / 0.5302 GB, free: 3.992 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001059/0.2834, allocations: 0.9082 MB / 0.5311 GB, free: 3.438 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003085/0.2837, allocations: 0.8502 MB / 0.532 GB, free: 2.719 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000118/0.2838, allocations: 52.11 kB / 0.532 GB, free: 2.707 MB / 346.7 MB Notification: Performance of SimCode: time 3.2e-07/0.2838, allocations: 0 / 0.532 GB, free: 2.707 MB / 346.7 MB Notification: Performance of Templates: time 0.01036/0.2942, allocations: 7.209 MB / 0.5391 GB, free: 404 kB / 346.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