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.001595/0.001594, allocations: 186.7 kB / 16.41 MB, free: 5.727 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.012/2.012, allocations: 205.4 MB / 222.5 MB, free: 9.145 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.001153/0.001153, allocations: 93.48 kB / 270.9 MB, free: 8.391 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004186/0.0004187, allocations: 8 kB / 327 MB, free: 144 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3362/0.3366, allocations: 47.57 MB / 374.6 MB, free: 45.3 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1255/0.4622, allocations: 76.1 MB / 450.7 MB, free: 4.555 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002811/0.4626, allocations: 71.97 kB / 450.8 MB, free: 4.484 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.006156/0.4687, allocations: 1.461 MB / 452.3 MB, free: 3.02 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.224e-06/0.4688, allocations: 0 / 452.3 MB, free: 3.02 MB / 330.7 MB Notification: Performance of Transformations before backend: time 8.215e-06/0.4688, allocations: 0 / 452.3 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.0005863/0.4694, allocations: 375.1 kB / 452.6 MB, free: 2.605 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.746e-05/0.4695, allocations: 12.03 kB / 452.6 MB, free: 2.594 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.903e-05/0.4696, allocations: 46.48 kB / 452.7 MB, free: 2.539 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.688e-05/0.4696, allocations: 7.906 kB / 452.7 MB, free: 2.531 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001612/0.4698, allocations: 178.9 kB / 452.9 MB, free: 2.316 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.93e-05/0.4698, allocations: 8 kB / 452.9 MB, free: 2.309 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.422e-05/0.4698, allocations: 7.953 kB / 452.9 MB, free: 2.301 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000352/0.4702, allocations: 117.9 kB / 453 MB, free: 2.164 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.107e-05/0.4702, allocations: 4 kB / 453 MB, free: 2.16 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.822e-05/0.4703, allocations: 4 kB / 453 MB, free: 2.156 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.091e-05/0.4703, allocations: 4 kB / 453 MB, free: 2.152 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000332/0.4706, allocations: 63.89 kB / 453.1 MB, free: 2.09 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008858/0.4715, allocations: 0.6381 MB / 453.7 MB, free: 1.387 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002856/0.4718, allocations: 123.1 kB / 453.8 MB, free: 1.223 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.84e-05/0.4719, allocations: 4 kB / 453.8 MB, free: 1.219 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.752e-05/0.4719, allocations: 38.62 kB / 453.9 MB, free: 1.172 MB / 330.7 MB Notification: Performance of pre-optimization done (n=6): time 2.255e-06/0.472, allocations: 0 / 453.9 MB, free: 1.172 MB / 330.7 MB Notification: Performance of matching and sorting (n=6): time 0.0007271/0.4727, allocations: 137.6 kB / 454 MB, free: 1.031 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001118/0.4728, allocations: 166.2 kB / 454.2 MB, free: 0.832 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000126/0.473, allocations: 105.3 kB / 454.3 MB, free: 0.7227 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.211e-05/0.473, allocations: 29.7 kB / 454.3 MB, free: 0.6875 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.568e-05/0.4731, allocations: 162.4 kB / 454.5 MB, free: 0.5273 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.273e-05/0.4731, allocations: 15.81 kB / 454.5 MB, free: 0.5117 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.123e-06/0.4732, allocations: 0 / 454.5 MB, free: 0.5117 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001548/0.4733, allocations: 318.8 kB / 454.8 MB, free: 196 kB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001808/0.4735, allocations: 31.92 kB / 454.8 MB, free: 164 kB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001752/0.4737, allocations: 56.28 kB / 454.9 MB, free: 92 kB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001693/0.4739, allocations: 35.92 kB / 454.9 MB, free: 56 kB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.836e-06/0.4739, allocations: 0 / 454.9 MB, free: 56 kB / 330.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0004341/0.4743, allocations: 101.7 kB / 455 MB, free: 15.95 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.106e-05/0.4744, allocations: 4 kB / 455 MB, free: 15.95 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.183e-05/0.4744, allocations: 4 kB / 455 MB, free: 15.94 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.797e-05/0.4744, allocations: 3.938 kB / 455 MB, free: 15.94 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001601/0.4746, allocations: 15.98 kB / 455 MB, free: 15.92 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.314e-06/0.4746, allocations: 0 / 455 MB, free: 15.92 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001249/0.4748, allocations: 19.89 kB / 455 MB, free: 15.9 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.475e-05/0.4748, allocations: 4 kB / 455 MB, free: 15.9 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 0.0001344/0.4749, allocations: 125.8 kB / 455.2 MB, free: 15.77 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001113/0.475, allocations: 4 kB / 455.2 MB, free: 15.76 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.404e-05/0.4751, allocations: 15.47 kB / 455.2 MB, free: 15.75 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.053e-06/0.4751, allocations: 4 kB / 455.2 MB, free: 15.74 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.39e-06/0.4751, allocations: 0 / 455.2 MB, free: 15.74 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.084e-06/0.4752, allocations: 7.938 kB / 455.2 MB, free: 15.73 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005075/0.4757, allocations: 181.6 kB / 455.4 MB, free: 15.51 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.735e-06/0.4757, allocations: 4 kB / 455.4 MB, free: 15.5 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001273/0.4758, allocations: 19.92 kB / 455.4 MB, free: 15.48 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.1e-06/0.4758, allocations: 4.125 kB / 455.4 MB, free: 15.48 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.317e-05/0.4759, allocations: 4 kB / 455.4 MB, free: 15.48 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.631e-06/0.4759, allocations: 4 kB / 455.4 MB, free: 15.47 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.494e-06/0.4759, allocations: 0 / 455.4 MB, free: 15.47 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006089/0.4765, allocations: 0.5384 MB / 456 MB, free: 14.89 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.923e-05/0.4766, allocations: 93 kB / 456 MB, free: 14.78 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.346e-05/0.4766, allocations: 3.953 kB / 456 MB, free: 14.78 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003057/0.4769, allocations: 15.98 kB / 456.1 MB, free: 14.76 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.708e-05/0.477, allocations: 7.984 kB / 456.1 MB, free: 14.75 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.226e-05/0.4771, allocations: 4 kB / 456.1 MB, free: 14.75 MB / 346.7 MB Notification: Performance of sorting global known variables: time 7.635e-05/0.4771, allocations: 95.64 kB / 456.2 MB, free: 14.66 MB / 346.7 MB Notification: Performance of sort global known variables: time 3.71e-07/0.4772, allocations: 0 / 456.2 MB, free: 14.66 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0005039/0.4777, allocations: 16 kB / 456.2 MB, free: 14.64 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.001089/0.4788, allocations: 1.343 MB / 457.5 MB, free: 13.25 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0003935/0.4792, allocations: 71.89 kB / 457.6 MB, free: 13.18 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.617e-06/0.4792, allocations: 0 / 457.6 MB, free: 13.18 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001922/0.4794, allocations: 40.3 kB / 457.6 MB, free: 13.14 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003723/0.4798, allocations: 12.28 kB / 457.6 MB, free: 13.13 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009804/0.4808, allocations: 296.2 kB / 457.9 MB, free: 12.79 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003615/0.4812, allocations: 0.6926 MB / 458.6 MB, free: 12.07 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.859e-05/0.4813, allocations: 19.42 kB / 458.7 MB, free: 12.05 MB / 346.7 MB Notification: Performance of SimCode: time 9.41e-07/0.4813, allocations: 0 / 458.7 MB, free: 12.05 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.282/2.763, allocations: 1.212 MB / 459.9 MB, free: 10.84 MB / 346.7 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