Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Blocks.IntegerTable.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.IntegerTable,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Blocks_IntegerTable",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.IntegerTable,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Blocks_IntegerTable",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001358/0.001358, allocations: 178.3 kB / 8.005 MB, free: 1.07 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.707/1.707, allocations: 205.3 MB / 213.7 MB, free: 1.73 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008598/0.0008597, allocations: 82.64 kB / 261.7 MB, free: 1.688 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2188/0.2188, allocations: 43.5 MB / 353.2 MB, free: 292 kB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 1.7e-05/1.692e-05, allocations: 4 kB / 418.3 MB, free: 28.45 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1246/0.1246, allocations: 58.86 MB / 477.2 MB, free: 1.555 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4451/0.5698, allocations: 87.72 MB / 0.5517 GB, free: 7.059 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003751/0.5703, allocations: 69.09 kB / 0.5517 GB, free: 7.027 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03591/0.6062, allocations: 12.83 MB / 0.5643 GB, free: 12.68 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.513e-06/0.6062, allocations: 0 / 0.5643 GB, free: 12.68 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.62e-05/0.6063, allocations: 8 kB / 0.5643 GB, free: 12.67 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.001165/0.6075, allocations: 0.7588 MB / 0.565 GB, free: 11.87 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.977e-05/0.6075, allocations: 8.031 kB / 0.565 GB, free: 11.86 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001252/0.6076, allocations: 59.3 kB / 0.5651 GB, free: 11.8 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008601/0.6085, allocations: 489 kB / 0.5656 GB, free: 11.35 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.571e-05/0.6086, allocations: 4 kB / 0.5656 GB, free: 11.34 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.837e-05/0.6086, allocations: 15.11 kB / 0.5656 GB, free: 11.33 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002243/0.6088, allocations: 93.19 kB / 0.5657 GB, free: 11.27 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000391/0.6092, allocations: 244.1 kB / 0.5659 GB, free: 11.04 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.095e-05/0.6093, allocations: 0 / 0.5659 GB, free: 11.04 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.648e-05/0.6093, allocations: 3.984 kB / 0.5659 GB, free: 11.03 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.553e-06/0.6093, allocations: 8 kB / 0.5659 GB, free: 11.02 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001214/0.6105, allocations: 0.8977 MB / 0.5668 GB, free: 10.21 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003655/0.6109, allocations: 260 kB / 0.567 GB, free: 9.992 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001282/0.611, allocations: 105.5 kB / 0.5671 GB, free: 9.906 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.015e-05/0.6111, allocations: 0 / 0.5671 GB, free: 9.906 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00032/0.6114, allocations: 216.5 kB / 0.5673 GB, free: 9.711 MB / 378.7 MB Notification: Performance of pre-optimization done (n=24): time 1.743e-06/0.6114, allocations: 0 / 0.5673 GB, free: 9.711 MB / 378.7 MB Notification: Performance of matching and sorting (n=24): time 0.0005614/0.612, allocations: 297.1 kB / 0.5676 GB, free: 9.477 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001658/0.6122, allocations: 342.2 kB / 0.568 GB, free: 9.062 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007103/0.6129, allocations: 0.5566 MB / 0.5685 GB, free: 8.629 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.536e-05/0.6129, allocations: 29.7 kB / 0.5685 GB, free: 8.594 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001679/0.6131, allocations: 219.9 kB / 0.5687 GB, free: 8.469 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.56e-05/0.6132, allocations: 67.06 kB / 0.5688 GB, free: 8.41 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.372e-05/0.6132, allocations: 0 / 0.5688 GB, free: 8.41 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.000158/0.6134, allocations: 365.4 kB / 0.5691 GB, free: 8.066 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001109/0.6135, allocations: 70.61 kB / 0.5692 GB, free: 8.027 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002404/0.6137, allocations: 236.6 kB / 0.5694 GB, free: 7.777 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001522/0.6139, allocations: 98.89 kB / 0.5695 GB, free: 7.715 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.916e-06/0.6139, allocations: 0 / 0.5695 GB, free: 7.715 MB / 378.7 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0004422/0.6143, allocations: 290.1 kB / 0.5698 GB, free: 7.48 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.115e-05/0.6144, allocations: 7.953 kB / 0.5698 GB, free: 7.473 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.558e-06/0.6144, allocations: 4 kB / 0.5698 GB, free: 7.469 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.011e-05/0.6144, allocations: 3.984 kB / 0.5698 GB, free: 7.465 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000304/0.6147, allocations: 59.91 kB / 0.5699 GB, free: 7.41 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.252e-06/0.6147, allocations: 4 kB / 0.5699 GB, free: 7.406 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002144/0.615, allocations: 27.83 kB / 0.5699 GB, free: 7.379 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.125e-05/0.615, allocations: 8 kB / 0.5699 GB, free: 7.371 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 () * 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.0001567/0.6152, allocations: 138 kB / 0.5701 GB, free: 7.234 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0004533/0.6156, allocations: 302.2 kB / 0.5703 GB, free: 6.996 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.201e-05/0.6157, allocations: 59.3 kB / 0.5704 GB, free: 6.938 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005695/0.6163, allocations: 330 kB / 0.5707 GB, free: 6.684 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.821e-06/0.6163, allocations: 4 kB / 0.5707 GB, free: 6.68 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.124e-06/0.6163, allocations: 4 kB / 0.5707 GB, free: 6.676 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.521e-06/0.6163, allocations: 0 / 0.5707 GB, free: 6.676 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004306/0.6168, allocations: 398.3 kB / 0.5711 GB, free: 6.328 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.72e-06/0.6168, allocations: 7.938 kB / 0.5711 GB, free: 6.32 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001413/0.6169, allocations: 31.67 kB / 0.5711 GB, free: 6.293 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.382e-06/0.6169, allocations: 7.953 kB / 0.5711 GB, free: 6.285 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.736e-05/0.617, allocations: 11.98 kB / 0.5712 GB, free: 6.273 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.288e-06/0.617, allocations: 7.938 kB / 0.5712 GB, free: 6.266 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.028e-06/0.617, allocations: 0 / 0.5712 GB, free: 6.266 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005509/0.6176, allocations: 398.3 kB / 0.5715 GB, free: 5.898 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001731/0.6178, allocations: 153.3 kB / 0.5717 GB, free: 5.742 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.243e-05/0.6179, allocations: 7.984 kB / 0.5717 GB, free: 5.734 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001889/0.6181, allocations: 19.55 kB / 0.5717 GB, free: 5.719 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001242/0.6182, allocations: 39.7 kB / 0.5718 GB, free: 5.688 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.997e-05/0.6182, allocations: 15.05 kB / 0.5718 GB, free: 5.676 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0005901/0.6188, allocations: 436.3 kB / 0.5722 GB, free: 5.359 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.6188, allocations: 4 kB / 0.5722 GB, free: 5.355 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0006286/0.6195, allocations: 114.8 kB / 0.5723 GB, free: 5.246 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.nextTimeEvent,integerTable4.combiTimeTable.nextTimeEventScaled,integerTable3.combiTimeTable.nextTimeEvent,integerTable3.combiTimeTable.nextTimeEventScaled,integerTable2.combiTimeTable.nextTimeEvent,integerTable2.combiTimeTable.nextTimeEventScaled,integerTable.combiTimeTable.nextTimeEvent,integerTable.combiTimeTable.nextTimeEventScaled) * 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.002114/0.6216, allocations: 1.441 MB / 0.5737 GB, free: 3.883 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0005334/0.6221, allocations: 252 kB / 0.5739 GB, free: 3.699 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.308e-06/0.6222, allocations: 256 / 0.5739 GB, free: 3.699 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002651/0.6224, allocations: 175.5 kB / 0.5741 GB, free: 3.574 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008298/0.6233, allocations: 116.2 kB / 0.5742 GB, free: 3.48 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001816/0.6251, allocations: 0.7164 MB / 0.5749 GB, free: 2.812 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006168/0.6257, allocations: 0.8568 MB / 0.5758 GB, free: 1.938 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0003418/0.6261, allocations: 87.83 kB / 0.5758 GB, free: 1.855 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002697/0.6264, allocations: 174.5 kB / 0.576 GB, free: 1.789 MB / 378.7 MB Notification: Performance of SimCode: time 1.212e-06/0.6264, allocations: 0 / 0.576 GB, free: 1.789 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03503/0.6614, allocations: 10.94 MB / 0.5867 GB, free: 6.863 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001812/0.6617, allocations: 149.9 kB / 0.5868 GB, free: 6.672 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.303/2.965, allocations: 0 / 0.5868 GB, free: 6.672 MB / 394.7 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.IntegerTable.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.IntegerTable.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.IntegerTable.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.IntegerTable.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Blocks.IntegerTable_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Blocks_IntegerTable_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Blocks_IntegerTable.fmu > ModelicaTest_3.2.3_ModelicaTest.Blocks.IntegerTable.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.Blocks.IntegerTable_res.mat does not exist to compare? outputFormat=mat