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/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/ModelicaServices 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.IntegerTable,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_IntegerTable",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.IntegerTable,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_IntegerTable",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009586/0.0009588, allocations: 177.3 kB / 17.06 MB, free: 5.098 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.329/1.329, allocations: 223.2 MB / 241 MB, free: 11.91 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008655/0.0008656, allocations: 99.78 kB / 292.1 MB, free: 10.93 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.3471/0.3471, allocations: 44.21 MB / 387.5 MB, free: 38.79 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003293/0.0003293, allocations: 12 kB / 460 MB, free: 1.461 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3685/0.3689, allocations: 61.89 MB / 0.5096 GB, free: 38 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1259/0.4949, allocations: 90.02 MB / 0.5975 GB, free: 5.102 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002462/0.4952, allocations: 71.94 kB / 0.5976 GB, free: 5.035 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03778/0.533, allocations: 13.31 MB / 0.6106 GB, free: 7.715 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.934e-06/0.533, allocations: 0 / 0.6106 GB, free: 7.715 MB / 426.7 MB Notification: Performance of Transformations before backend: time 3.748e-05/0.5331, allocations: 8 kB / 0.6106 GB, free: 7.707 MB / 426.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.001333/0.5344, allocations: 0.8675 MB / 0.6115 GB, free: 6.762 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.426e-05/0.5345, allocations: 8.031 kB / 0.6115 GB, free: 6.754 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.594e-05/0.5345, allocations: 50.48 kB / 0.6115 GB, free: 6.695 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000102/0.5346, allocations: 51.44 kB / 0.6116 GB, free: 6.645 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008537/0.5355, allocations: 495.2 kB / 0.612 GB, free: 6.117 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.41e-05/0.5355, allocations: 8.234 kB / 0.6121 GB, free: 6.109 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.491e-05/0.5356, allocations: 16 kB / 0.6121 GB, free: 6.094 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004578/0.536, allocations: 275.3 kB / 0.6123 GB, free: 5.785 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.936e-06/0.5361, allocations: 0 / 0.6123 GB, free: 5.785 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.842e-05/0.5361, allocations: 12 kB / 0.6123 GB, free: 5.773 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.867e-06/0.5361, allocations: 11.88 kB / 0.6124 GB, free: 5.762 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002834/0.5364, allocations: 111.9 kB / 0.6125 GB, free: 5.652 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00123/0.5376, allocations: 0.9265 MB / 0.6134 GB, free: 4.664 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006151/0.5383, allocations: 306.9 kB / 0.6137 GB, free: 4.328 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.264e-05/0.5383, allocations: 8.062 kB / 0.6137 GB, free: 4.32 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004232/0.5387, allocations: 226.6 kB / 0.6139 GB, free: 4.074 MB / 426.7 MB Notification: Performance of pre-optimization done (n=24): time 1.703e-06/0.5388, allocations: 0 / 0.6139 GB, free: 4.074 MB / 426.7 MB Notification: Performance of matching and sorting (n=24): time 0.0009311/0.5397, allocations: 413.5 kB / 0.6143 GB, free: 3.664 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001914/0.5399, allocations: 350.1 kB / 0.6146 GB, free: 3.242 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007389/0.5406, allocations: 0.5762 MB / 0.6152 GB, free: 2.656 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 3.916e-05/0.5407, allocations: 33.7 kB / 0.6152 GB, free: 2.617 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001756/0.5409, allocations: 224.5 kB / 0.6154 GB, free: 2.395 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.722e-05/0.5409, allocations: 71.11 kB / 0.6155 GB, free: 2.324 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.387e-05/0.541, allocations: 8 kB / 0.6155 GB, free: 2.316 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001689/0.5411, allocations: 358.8 kB / 0.6158 GB, free: 1.957 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000205/0.5413, allocations: 87.94 kB / 0.6159 GB, free: 1.871 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003398/0.5417, allocations: 263 kB / 0.6162 GB, free: 1.555 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002419/0.5419, allocations: 112.1 kB / 0.6163 GB, free: 1.445 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.258e-06/0.542, allocations: 3.984 kB / 0.6163 GB, free: 1.441 MB / 426.7 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0006036/0.5426, allocations: 324.8 kB / 0.6166 GB, free: 1.117 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.992e-05/0.5426, allocations: 5.406 kB / 0.6166 GB, free: 1.113 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.728e-06/0.5426, allocations: 4 kB / 0.6166 GB, free: 1.109 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.738e-05/0.5426, allocations: 3.953 kB / 0.6166 GB, free: 1.105 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000271/0.5429, allocations: 63.89 kB / 0.6167 GB, free: 1.043 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.109e-05/0.5429, allocations: 4 kB / 0.6167 GB, free: 1.039 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002132/0.5432, allocations: 31.95 kB / 0.6167 GB, free: 1.008 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.351e-05/0.5432, allocations: 12 kB / 0.6167 GB, free: 0.9961 MB / 426.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.0002503/0.5434, allocations: 218 kB / 0.6169 GB, free: 0.7734 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.002e-05/0.5435, allocations: 55.34 kB / 0.617 GB, free: 0.7188 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007157/0.5443, allocations: 381.2 kB / 0.6173 GB, free: 348 kB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.08e-06/0.5443, allocations: 4 kB / 0.6173 GB, free: 344 kB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.342e-06/0.5443, allocations: 3.953 kB / 0.6173 GB, free: 340 kB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.479e-06/0.5443, allocations: 0 / 0.6173 GB, free: 340 kB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004616/0.5448, allocations: 445.1 kB / 0.6178 GB, free: 15.85 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.108e-06/0.5448, allocations: 4 kB / 0.6178 GB, free: 15.84 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000144/0.5449, allocations: 31.92 kB / 0.6178 GB, free: 15.81 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.166e-06/0.5449, allocations: 4 kB / 0.6178 GB, free: 15.81 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.775e-05/0.545, allocations: 11.98 kB / 0.6178 GB, free: 15.8 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.536e-06/0.545, allocations: 4 kB / 0.6178 GB, free: 15.79 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.165e-06/0.545, allocations: 7.938 kB / 0.6178 GB, free: 15.79 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000678/0.5457, allocations: 429.8 kB / 0.6182 GB, free: 15.32 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001875/0.5459, allocations: 156.5 kB / 0.6184 GB, free: 15.14 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.741e-05/0.5459, allocations: 12 kB / 0.6184 GB, free: 15.13 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001748/0.5461, allocations: 19.98 kB / 0.6184 GB, free: 15.11 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001048/0.5462, allocations: 31.95 kB / 0.6184 GB, free: 15.08 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.675e-05/0.5463, allocations: 15.98 kB / 0.6185 GB, free: 15.07 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0005219/0.5468, allocations: 470.8 kB / 0.6189 GB, free: 14.61 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5468, allocations: 0 / 0.6189 GB, free: 14.61 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.0005172/0.5473, allocations: 127.8 kB / 0.619 GB, free: 14.48 MB / 442.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.nextTimeEvent,integerTable4.combiTimeTable.nextTimeEventScaled,integerTable3.combiTimeTable.nextTimeEvent,integerTable3.combiTimeTable.nextTimeEventScaled,integerTable2.combiTimeTable.nextTimeEvent,integerTable2.combiTimeTable.nextTimeEventScaled,integerTable.combiTimeTable.nextTimeEvent,integerTable.combiTimeTable.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (28): * Single equations (assignments): 20 * 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.002199/0.5495, allocations: 1.543 MB / 0.6205 GB, free: 13.06 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.0006482/0.5502, allocations: 275.7 kB / 0.6208 GB, free: 12.79 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 2.785e-06/0.5502, allocations: 0 / 0.6208 GB, free: 12.79 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003603/0.5506, allocations: 188.1 kB / 0.621 GB, free: 12.61 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005851/0.5512, allocations: 128.3 kB / 0.6211 GB, free: 12.48 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00448/0.5557, allocations: 3.775 MB / 0.6248 GB, free: 8.602 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000465/0.5561, allocations: 0.8547 MB / 0.6256 GB, free: 7.723 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0002769/0.5564, allocations: 91.83 kB / 0.6257 GB, free: 7.637 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003035/0.5567, allocations: 167.4 kB / 0.6259 GB, free: 7.473 MB / 442.7 MB Notification: Performance of SimCode: time 3.8e-07/0.5568, allocations: 0 / 0.6259 GB, free: 7.473 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02644/0.5832, allocations: 11.8 MB / 0.6374 GB, free: 11.83 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000186/0.5834, allocations: 195.7 kB / 0.6376 GB, free: 11.6 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.21/2.794, allocations: 64 / 0.6376 GB, free: 11.6 MB / 458.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Blocks.IntegerTable_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Blocks_IntegerTable_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Blocks_IntegerTable.fmu > ModelicaTest_4.0.0_ModelicaTest.Blocks.IntegerTable.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Blocks.IntegerTable_res.mat does not exist to compare? outputFormat=mat