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.001036/0.001036, allocations: 181.2 kB / 17.01 MB, free: 5.125 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.456/1.456, allocations: 205.4 MB / 223.1 MB, free: 9.129 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.0009826/0.0009827, allocations: 90.64 kB / 271.5 MB, free: 8.379 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000287/0.000287, allocations: 11.98 kB / 328.3 MB, free: 15.46 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2803/0.2806, allocations: 47.57 MB / 375.9 MB, free: 45.64 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09309/0.3737, allocations: 76.1 MB / 452 MB, free: 4.555 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001749/0.3739, allocations: 63.97 kB / 452.1 MB, free: 4.492 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.003646/0.3776, allocations: 1.469 MB / 453.5 MB, free: 3.02 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.282e-06/0.3776, allocations: 0 / 453.5 MB, free: 3.02 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.19e-05/0.3776, allocations: 0 / 453.5 MB, free: 3.02 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.00042/0.378, allocations: 375.1 kB / 453.9 MB, free: 2.605 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.182e-05/0.3781, allocations: 8.031 kB / 453.9 MB, free: 2.598 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.711e-05/0.3781, allocations: 46.55 kB / 454 MB, free: 2.543 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.827e-05/0.3782, allocations: 7.906 kB / 454 MB, free: 2.535 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000124/0.3783, allocations: 174.9 kB / 454.1 MB, free: 2.324 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.995e-05/0.3783, allocations: 3.984 kB / 454.1 MB, free: 2.32 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.381e-05/0.3783, allocations: 11.95 kB / 454.1 MB, free: 2.309 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002278/0.3786, allocations: 125.9 kB / 454.3 MB, free: 2.164 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.969e-06/0.3786, allocations: 4 kB / 454.3 MB, free: 2.16 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.113e-05/0.3786, allocations: 0 / 454.3 MB, free: 2.16 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.26e-06/0.3786, allocations: 0 / 454.3 MB, free: 2.16 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001796/0.3788, allocations: 63.91 kB / 454.3 MB, free: 2.098 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005768/0.3794, allocations: 0.642 MB / 455 MB, free: 1.391 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001633/0.3796, allocations: 127.4 kB / 455.1 MB, free: 1.223 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.617e-05/0.3796, allocations: 0 / 455.1 MB, free: 1.223 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.886e-05/0.3796, allocations: 38.55 kB / 455.1 MB, free: 1.176 MB / 330.7 MB Notification: Performance of pre-optimization done (n=6): time 1.032e-06/0.3796, allocations: 0 / 455.1 MB, free: 1.176 MB / 330.7 MB Notification: Performance of matching and sorting (n=6): time 0.0004181/0.3801, allocations: 138 kB / 455.3 MB, free: 1.035 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.049e-05/0.3801, allocations: 162.2 kB / 455.4 MB, free: 0.8398 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.135e-05/0.3802, allocations: 112.7 kB / 455.5 MB, free: 0.7266 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.592e-05/0.3802, allocations: 29.7 kB / 455.6 MB, free: 0.6914 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.143e-05/0.3803, allocations: 95.97 kB / 455.7 MB, free: 0.5938 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.147e-05/0.3803, allocations: 15.81 kB / 455.7 MB, free: 0.5781 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.168e-06/0.3803, allocations: 0 / 455.7 MB, free: 0.5781 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001008/0.3804, allocations: 326.8 kB / 456 MB, free: 256 kB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.36e-05/0.3805, allocations: 23.98 kB / 456 MB, free: 232 kB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.079e-05/0.3806, allocations: 56.22 kB / 456.1 MB, free: 160 kB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001019/0.3807, allocations: 35.92 kB / 456.1 MB, free: 124 kB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.724e-06/0.3807, allocations: 0 / 456.1 MB, free: 124 kB / 330.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0002134/0.381, allocations: 109.5 kB / 456.2 MB, free: 8 kB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.356e-05/0.381, allocations: 8 kB / 456.2 MB, free: 0 / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.338e-06/0.381, allocations: 112 / 456.2 MB, free: 0 / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.472e-05/0.381, allocations: 4.156 kB / 456.2 MB, free: 15.99 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.424e-05/0.3811, allocations: 19.81 kB / 456.2 MB, free: 15.98 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.634e-06/0.3811, allocations: 4 kB / 456.3 MB, free: 15.97 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.767e-05/0.3812, allocations: 16.11 kB / 456.3 MB, free: 15.96 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.034e-06/0.3812, allocations: 0 / 456.3 MB, free: 15.96 MB / 346.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 () * Number of clocked 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.707e-05/0.3813, allocations: 117.8 kB / 456.4 MB, free: 15.83 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.469e-05/0.3814, allocations: 7.906 kB / 456.4 MB, free: 15.82 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.898e-05/0.3814, allocations: 19.47 kB / 456.4 MB, free: 15.8 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.773e-06/0.3814, allocations: 0 / 456.4 MB, free: 15.8 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.088e-06/0.3815, allocations: 4 kB / 456.4 MB, free: 15.8 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.066e-06/0.3815, allocations: 0 / 456.4 MB, free: 15.8 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003363/0.3818, allocations: 189.6 kB / 456.6 MB, free: 15.57 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.372e-06/0.3818, allocations: 4 kB / 456.6 MB, free: 15.56 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.328e-05/0.3819, allocations: 19.92 kB / 456.6 MB, free: 15.54 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.376e-06/0.3819, allocations: 4.125 kB / 456.6 MB, free: 15.54 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.177e-05/0.3819, allocations: 8 kB / 456.6 MB, free: 15.53 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.373e-06/0.3819, allocations: 0 / 456.6 MB, free: 15.53 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.315e-06/0.3819, allocations: 4 kB / 456.6 MB, free: 15.53 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003556/0.3823, allocations: 0.5345 MB / 457.2 MB, free: 14.95 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.465e-05/0.3823, allocations: 81.11 kB / 457.3 MB, free: 14.85 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.238e-05/0.3824, allocations: 11.95 kB / 457.3 MB, free: 14.84 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001977/0.3826, allocations: 7.984 kB / 457.3 MB, free: 14.83 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.534e-05/0.3826, allocations: 11.97 kB / 457.3 MB, free: 14.82 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.871e-06/0.3826, allocations: 8 kB / 457.3 MB, free: 14.81 MB / 346.7 MB Notification: Performance of sorting global known variables: time 4.756e-05/0.3827, allocations: 99.2 kB / 457.4 MB, free: 14.71 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3827, allocations: 0 / 457.4 MB, free: 14.71 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003366/0.383, allocations: 8 kB / 457.4 MB, free: 14.71 MB / 346.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 () * Number of clocked 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.0006418/0.3837, allocations: 1.351 MB / 458.7 MB, free: 13.31 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0002014/0.3839, allocations: 63.89 kB / 458.8 MB, free: 13.25 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.176e-06/0.3839, allocations: 4.312 kB / 458.8 MB, free: 13.25 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 9.531e-05/0.384, allocations: 43.92 kB / 458.9 MB, free: 13.2 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002591/0.3843, allocations: 3.953 kB / 458.9 MB, free: 13.2 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006369/0.3849, allocations: 270.6 kB / 459.1 MB, free: 12.88 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002379/0.3852, allocations: 0.6926 MB / 459.8 MB, free: 12.16 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 3.65e-05/0.3852, allocations: 7.984 kB / 459.8 MB, free: 12.16 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.549e-05/0.3853, allocations: 19.44 kB / 459.8 MB, free: 12.14 MB / 346.7 MB Notification: Performance of SimCode: time 2.31e-07/0.3853, allocations: 0 / 459.8 MB, free: 12.14 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01251/0.3978, allocations: 1.342 MB / 461.2 MB, free: 10.84 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002388/0.3981, allocations: 165.7 kB / 461.3 MB, free: 10.59 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.427/1.825, allocations: 4 kB / 461.4 MB, free: 10.59 MB / 346.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