Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_Modelica_Blocks_Examples_BusUsage",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.BusUsage,fileNamePrefix="Modelica_3_2_3_cpp_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.001443/0.001443, allocations: 179.4 kB / 8.364 MB, free: 0.7148 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.896/1.896, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001111/0.001111, allocations: 98.47 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.606e-05/2.604e-05, allocations: 4 kB / 314.9 MB, free: 9.07 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3697/0.3697, allocations: 47.56 MB / 362.4 MB, free: 45.74 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1663/0.5361, allocations: 75.35 MB / 437.8 MB, free: 10.86 MB / 331.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002591/0.5364, allocations: 69.38 kB / 437.8 MB, free: 10.8 MB / 331.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.005844/0.5423, allocations: 1.451 MB / 439.3 MB, free: 9.363 MB / 331.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.5423, allocations: 0 / 439.3 MB, free: 9.363 MB / 331.1 MB Notification: Performance of Transformations before backend: time 7.455e-06/0.5424, allocations: 0 / 439.3 MB, free: 9.363 MB / 331.1 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.0005223/0.5429, allocations: 369.1 kB / 439.7 MB, free: 8.961 MB / 331.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.671e-05/0.5429, allocations: 9.625 kB / 439.7 MB, free: 8.953 MB / 331.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.384e-05/0.543, allocations: 11.89 kB / 439.7 MB, free: 8.941 MB / 331.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001589/0.5432, allocations: 171 kB / 439.8 MB, free: 8.734 MB / 331.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.918e-05/0.5432, allocations: 4 kB / 439.8 MB, free: 8.73 MB / 331.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.975e-05/0.5432, allocations: 14.08 kB / 439.9 MB, free: 8.719 MB / 331.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00013/0.5434, allocations: 27.94 kB / 439.9 MB, free: 8.691 MB / 331.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001874/0.5436, allocations: 87.41 kB / 440 MB, free: 8.586 MB / 331.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.012e-05/0.5436, allocations: 0 / 440 MB, free: 8.586 MB / 331.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.597e-05/0.5436, allocations: 6.719 kB / 440 MB, free: 8.582 MB / 331.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.041e-06/0.5436, allocations: 0 / 440 MB, free: 8.582 MB / 331.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007875/0.5444, allocations: 0.6101 MB / 440.6 MB, free: 7.922 MB / 331.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001571/0.5446, allocations: 100.2 kB / 440.7 MB, free: 7.781 MB / 331.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.269e-05/0.5447, allocations: 44.48 kB / 440.7 MB, free: 7.727 MB / 331.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.774e-05/0.5447, allocations: 0 / 440.7 MB, free: 7.727 MB / 331.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.855e-05/0.5448, allocations: 46.48 kB / 440.8 MB, free: 7.672 MB / 331.1 MB Notification: Performance of pre-optimization done (n=6): time 1.874e-06/0.5448, allocations: 0 / 440.8 MB, free: 7.672 MB / 331.1 MB Notification: Performance of matching and sorting (n=6): time 0.0003202/0.5451, allocations: 65.53 kB / 440.8 MB, free: 7.602 MB / 331.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.601e-05/0.5452, allocations: 159.2 kB / 441 MB, free: 7.41 MB / 331.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001095/0.5454, allocations: 105 kB / 441.1 MB, free: 7.301 MB / 331.1 MB Notification: Performance of collectPreVariables (initialization): time 2.36e-05/0.5454, allocations: 29.86 kB / 441.1 MB, free: 7.266 MB / 331.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.288e-05/0.5455, allocations: 162.5 kB / 441.3 MB, free: 7.105 MB / 331.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.284e-05/0.5455, allocations: 19.73 kB / 441.3 MB, free: 7.086 MB / 331.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.851e-06/0.5455, allocations: 0 / 441.3 MB, free: 7.086 MB / 331.1 MB Notification: Performance of setup shared object (initialization): time 0.0001369/0.5457, allocations: 318.8 kB / 441.6 MB, free: 6.766 MB / 331.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.253e-05/0.5457, allocations: 15.92 kB / 441.6 MB, free: 6.75 MB / 331.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.254e-05/0.5458, allocations: 37.86 kB / 441.7 MB, free: 6.699 MB / 331.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.941e-05/0.5459, allocations: 16 kB / 441.7 MB, free: 6.684 MB / 331.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.485e-06/0.5459, allocations: 2.344 kB / 441.7 MB, free: 6.684 MB / 331.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001827/0.5461, allocations: 69.53 kB / 441.8 MB, free: 6.609 MB / 331.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.094e-05/0.5461, allocations: 4 kB / 441.8 MB, free: 6.605 MB / 331.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.267e-06/0.5461, allocations: 1.875 kB / 441.8 MB, free: 6.605 MB / 331.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.776e-05/0.5462, allocations: 12.09 kB / 441.8 MB, free: 6.594 MB / 331.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001725/0.5464, allocations: 19.92 kB / 441.8 MB, free: 6.574 MB / 331.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.521e-06/0.5464, allocations: 0 / 441.8 MB, free: 6.574 MB / 331.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001158/0.5465, allocations: 11.98 kB / 441.8 MB, free: 6.562 MB / 331.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.568e-05/0.5465, allocations: 4 kB / 441.8 MB, free: 6.559 MB / 331.1 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 9.828e-05/0.5466, allocations: 104.9 kB / 441.9 MB, free: 6.449 MB / 331.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0002533/0.5469, allocations: 73.56 kB / 442 MB, free: 6.371 MB / 331.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001083/0.547, allocations: 7.906 kB / 442 MB, free: 6.363 MB / 331.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.045e-05/0.5471, allocations: 18.83 kB / 442 MB, free: 6.348 MB / 331.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.489e-06/0.5471, allocations: 0 / 442 MB, free: 6.348 MB / 331.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.336e-06/0.5471, allocations: 5.5 kB / 442 MB, free: 6.344 MB / 331.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.667e-06/0.5471, allocations: 0 / 442 MB, free: 6.344 MB / 331.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000455/0.5476, allocations: 154.2 kB / 442.2 MB, free: 6.156 MB / 331.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.25e-06/0.5476, allocations: 4 kB / 442.2 MB, free: 6.152 MB / 331.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00012/0.5477, allocations: 16.14 kB / 442.2 MB, free: 6.137 MB / 331.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.823e-06/0.5478, allocations: 4 kB / 442.2 MB, free: 6.133 MB / 331.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.062e-05/0.5478, allocations: 0 / 442.2 MB, free: 6.133 MB / 331.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.224e-05/0.5478, allocations: 4 kB / 442.2 MB, free: 6.129 MB / 331.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.307e-06/0.5478, allocations: 3.938 kB / 442.2 MB, free: 6.125 MB / 331.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003639/0.5482, allocations: 0.5054 MB / 442.7 MB, free: 5.578 MB / 331.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.551e-05/0.5483, allocations: 81.02 kB / 442.8 MB, free: 5.48 MB / 331.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.453e-05/0.5483, allocations: 10.58 kB / 442.8 MB, free: 5.473 MB / 331.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003621/0.5487, allocations: 11.98 kB / 442.8 MB, free: 5.461 MB / 331.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.467e-05/0.5487, allocations: 19.92 kB / 442.8 MB, free: 5.441 MB / 331.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.825e-06/0.5488, allocations: 0 / 442.8 MB, free: 5.441 MB / 331.1 MB Notification: Performance of sorting global known variables: time 6.528e-05/0.5488, allocations: 92.14 kB / 442.9 MB, free: 5.352 MB / 331.1 MB Notification: Performance of sort global known variables: time 4.21e-07/0.5488, allocations: 0 / 442.9 MB, free: 5.352 MB / 331.1 MB Notification: Performance of remove unused functions: time 0.000529/0.5494, allocations: 8 kB / 442.9 MB, free: 5.344 MB / 331.1 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.0008668/0.5503, allocations: 1.297 MB / 444.2 MB, free: 4.004 MB / 331.1 MB Notification: Performance of simCode: created initialization part: time 0.0001536/0.5504, allocations: 43.86 kB / 444.3 MB, free: 3.961 MB / 331.1 MB Notification: Performance of simCode: created event and clocks part: time 3.196e-06/0.5505, allocations: 0 / 444.3 MB, free: 3.961 MB / 331.1 MB Notification: Performance of simCode: created simulation system equations: time 7.639e-05/0.5505, allocations: 23.94 kB / 444.3 MB, free: 3.938 MB / 331.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003976/0.5509, allocations: 7.953 kB / 444.3 MB, free: 3.93 MB / 331.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007992/0.5518, allocations: 187.6 kB / 444.5 MB, free: 3.691 MB / 331.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003673/0.5521, allocations: 0.6924 MB / 445.2 MB, free: 2.973 MB / 331.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.365e-05/0.5522, allocations: 23.42 kB / 445.2 MB, free: 2.949 MB / 331.1 MB Notification: Performance of SimCode: time 8.41e-07/0.5522, allocations: 0 / 445.2 MB, free: 2.949 MB / 331.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.413/2.965, allocations: 1.199 MB / 446.4 MB, free: 1.773 MB / 331.1 MB (rm -f Modelica_3.2.3_cpp_Modelica.Blocks.Examples.BusUsage.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Blocks.Examples.BusUsage.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Blocks.Examples.BusUsage.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Blocks.Examples.BusUsage.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Blocks.Examples.BusUsage_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Blocks_Examples_BusUsage_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Blocks_Examples_BusUsage.fmu > Modelica_3.2.3_cpp_Modelica.Blocks.Examples.BusUsage.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Blocks.Examples.BusUsage_res.mat does not exist to compare? outputFormat=mat