Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Blocks.Examples.BusUsage.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) 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(Modelica.Blocks.Examples.BusUsage,fileNamePrefix="Modelica_3_2_3_Modelica_Blocks_Examples_BusUsage",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.BusUsage,fileNamePrefix="Modelica_3_2_3_Modelica_Blocks_Examples_BusUsage",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.001002/0.001002, allocations: 172.2 kB / 14.1 MB, free: 1.223 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.317/1.317, allocations: 205.2 MB / 219.8 MB, free: 14.21 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008322/0.0008322, allocations: 82.7 kB / 268 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.694e-05/2.696e-05, allocations: 4 kB / 322.5 MB, free: 17.27 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0775/0.07754, allocations: 47.57 MB / 370.1 MB, free: 1.637 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2725/0.3501, allocations: 76 MB / 446.1 MB, free: 1.238 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001921/0.3504, allocations: 64.41 kB / 446.2 MB, free: 1.207 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.003927/0.3543, allocations: 1.464 MB / 447.6 MB, free: 15.93 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.342e-06/0.3543, allocations: 4 kB / 447.6 MB, free: 15.93 MB / 330.7 MB Notification: Performance of Transformations before backend: time 7.043e-06/0.3543, allocations: 0 / 447.6 MB, free: 15.93 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0004166/0.3548, allocations: 364 kB / 448 MB, free: 15.53 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.97e-05/0.3548, allocations: 8.031 kB / 448 MB, free: 15.52 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.428e-05/0.3549, allocations: 42.48 kB / 448 MB, free: 15.48 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.688e-05/0.3549, allocations: 7.906 kB / 448.1 MB, free: 15.47 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001366/0.355, allocations: 167 kB / 448.2 MB, free: 15.27 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.17e-05/0.3551, allocations: 7.875 kB / 448.2 MB, free: 15.26 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.441e-05/0.3551, allocations: 15.89 kB / 448.2 MB, free: 15.25 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001683/0.3553, allocations: 102.7 kB / 448.3 MB, free: 15.14 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.797e-06/0.3553, allocations: 0 / 448.3 MB, free: 15.14 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.13e-05/0.3553, allocations: 2.438 kB / 448.3 MB, free: 15.14 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.112e-06/0.3553, allocations: 4 kB / 448.3 MB, free: 15.14 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.8e-05/0.3554, allocations: 32.44 kB / 448.4 MB, free: 15.11 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005997/0.356, allocations: 0.6499 MB / 449 MB, free: 14.43 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001055/0.3561, allocations: 98.55 kB / 449.1 MB, free: 14.3 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.556e-05/0.3562, allocations: 44.23 kB / 449.2 MB, free: 14.24 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.042e-05/0.3562, allocations: 7.984 kB / 449.2 MB, free: 14.23 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.911e-05/0.3563, allocations: 42.05 kB / 449.2 MB, free: 14.19 MB / 330.7 MB Notification: Performance of pre-optimization done (n=6): time 1.262e-06/0.3563, allocations: 0 / 449.2 MB, free: 14.19 MB / 330.7 MB Notification: Performance of matching and sorting (n=6): time 0.0002603/0.3565, allocations: 73.44 kB / 449.3 MB, free: 14.12 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001051/0.3566, allocations: 170 kB / 449.5 MB, free: 13.92 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001022/0.3568, allocations: 106.6 kB / 449.6 MB, free: 13.81 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.796e-05/0.3568, allocations: 29.64 kB / 449.6 MB, free: 13.78 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.421e-05/0.3569, allocations: 95.62 kB / 449.7 MB, free: 13.69 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.418e-05/0.3569, allocations: 11.75 kB / 449.7 MB, free: 13.68 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.769e-06/0.3569, allocations: 3.812 kB / 449.7 MB, free: 13.68 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001353/0.3571, allocations: 318.8 kB / 450 MB, free: 13.36 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.78e-05/0.3571, allocations: 15.88 kB / 450 MB, free: 13.34 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.451e-05/0.3572, allocations: 47.98 kB / 450.1 MB, free: 13.29 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.324e-05/0.3572, allocations: 11.86 kB / 450.1 MB, free: 13.28 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.663e-06/0.3572, allocations: 8 kB / 450.1 MB, free: 13.27 MB / 330.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001144/0.3573, allocations: 73.09 kB / 450.2 MB, free: 13.2 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.594e-05/0.3574, allocations: 8 kB / 450.2 MB, free: 13.2 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.394e-06/0.3574, allocations: 0 / 450.2 MB, free: 13.2 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.253e-05/0.3574, allocations: 3.938 kB / 450.2 MB, free: 13.19 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001059/0.3575, allocations: 15.98 kB / 450.2 MB, free: 13.18 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.294e-06/0.3575, allocations: 4 kB / 450.2 MB, free: 13.17 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.389e-05/0.3576, allocations: 8.156 kB / 450.2 MB, free: 13.16 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.138e-05/0.3576, allocations: 7.953 kB / 450.2 MB, free: 13.16 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 3 (part.booleanExpression.y,booleanStep.y,integerStep.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (6): * Single equations (assignments): 6 * 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 7.339e-05/0.3577, allocations: 116.8 kB / 450.3 MB, free: 13.04 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.577e-05/0.3578, allocations: 7.906 kB / 450.3 MB, free: 13.03 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.998e-05/0.3578, allocations: 10.92 kB / 450.3 MB, free: 13.03 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.498e-06/0.3578, allocations: 4 kB / 450.3 MB, free: 13.02 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.689e-06/0.3578, allocations: 0 / 450.3 MB, free: 13.02 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.534e-06/0.3578, allocations: 4 kB / 450.3 MB, free: 13.02 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003779/0.3582, allocations: 184.8 kB / 450.5 MB, free: 12.8 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.675e-06/0.3582, allocations: 4 kB / 450.5 MB, free: 12.8 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.015e-05/0.3583, allocations: 15.92 kB / 450.5 MB, free: 12.79 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.089e-06/0.3583, allocations: 4 kB / 450.6 MB, free: 12.78 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.698e-06/0.3583, allocations: 0 / 450.6 MB, free: 12.78 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.236e-06/0.3584, allocations: 4 kB / 450.6 MB, free: 12.78 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.864e-06/0.3584, allocations: 0 / 450.6 MB, free: 12.78 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003226/0.3587, allocations: 0.5063 MB / 451.1 MB, free: 12.24 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.834e-05/0.3587, allocations: 88.62 kB / 451.1 MB, free: 12.14 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.584e-05/0.3588, allocations: 4 kB / 451.2 MB, free: 12.14 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001997/0.359, allocations: 11.98 kB / 451.2 MB, free: 12.12 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.655e-05/0.359, allocations: 7.938 kB / 451.2 MB, free: 12.12 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.653e-06/0.359, allocations: 4 kB / 451.2 MB, free: 12.12 MB / 330.7 MB Notification: Performance of sorting global known variables: time 5.486e-05/0.3591, allocations: 91.14 kB / 451.3 MB, free: 12.03 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.3591, allocations: 0 / 451.3 MB, free: 12.03 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0003341/0.3594, allocations: 15.91 kB / 451.3 MB, free: 12.02 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 3 (part.booleanExpression.y,booleanStep.y,integerStep.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 6 * 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 Backend phase and start with SimCode phase: time 0.0005717/0.36, allocations: 1.307 MB / 452.6 MB, free: 10.68 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.000115/0.3601, allocations: 47.55 kB / 452.6 MB, free: 10.65 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.3602, allocations: 8.281 kB / 452.6 MB, free: 10.64 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 4.365e-05/0.3602, allocations: 15.94 kB / 452.7 MB, free: 10.63 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002587/0.3605, allocations: 9.344 kB / 452.7 MB, free: 10.62 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005363/0.361, allocations: 177.9 kB / 452.8 MB, free: 10.41 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002635/0.3613, allocations: 0.6887 MB / 453.5 MB, free: 9.699 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 4.203e-05/0.3613, allocations: 8 kB / 453.5 MB, free: 9.691 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.379e-05/0.3614, allocations: 23.17 kB / 453.6 MB, free: 9.676 MB / 330.7 MB Notification: Performance of SimCode: time 4.31e-07/0.3614, allocations: 0 / 453.6 MB, free: 9.676 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01166/0.3731, allocations: 1.343 MB / 454.9 MB, free: 8.34 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001828/0.3733, allocations: 134.3 kB / 455 MB, free: 8.117 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.563/1.937, allocations: 0 / 455 MB, free: 8.117 MB / 330.7 MB (rm -f Modelica_3.2.3_Modelica.Blocks.Examples.BusUsage.pipe ; mkfifo Modelica_3.2.3_Modelica.Blocks.Examples.BusUsage.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Blocks.Examples.BusUsage.pipe >> ../files/Modelica_3.2.3_Modelica.Blocks.Examples.BusUsage.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Blocks.Examples.BusUsage_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Blocks_Examples_BusUsage_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Blocks_Examples_BusUsage.fmu > Modelica_3.2.3_Modelica.Blocks.Examples.BusUsage.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Blocks.Examples.BusUsage_res.mat does not exist to compare? outputFormat=mat