Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Blocks.Examples.RealNetwork1.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.RealNetwork1,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Blocks_Examples_RealNetwork1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.RealNetwork1,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Blocks_Examples_RealNetwork1",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.001451/0.001451, 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 2.102/2.102, 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.001113/0.001113, allocations: 98.66 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.299e-05/2.297e-05, allocations: 4 kB / 314.9 MB, free: 9.07 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3322/0.3322, allocations: 47.55 MB / 362.4 MB, free: 45.75 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1204/0.4527, allocations: 76.15 MB / 438.6 MB, free: 10.07 MB / 331.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002461/0.453, allocations: 66.66 kB / 438.6 MB, free: 10.01 MB / 331.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.01239/0.4654, allocations: 2.668 MB / 441.3 MB, free: 7.375 MB / 331.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.4654, allocations: 0 / 441.3 MB, free: 7.375 MB / 331.1 MB Notification: Performance of Transformations before backend: time 2.033e-05/0.4655, allocations: 4 kB / 441.3 MB, free: 7.371 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: 34 * Number of variables: 34 Notification: Performance of Generate backend data structure: time 0.0009796/0.4665, allocations: 486.5 kB / 441.8 MB, free: 6.852 MB / 331.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.426e-05/0.4665, allocations: 12.03 kB / 441.8 MB, free: 6.84 MB / 331.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.951e-05/0.4666, allocations: 19.72 kB / 441.8 MB, free: 6.82 MB / 331.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003539/0.467, allocations: 229.8 kB / 442 MB, free: 6.559 MB / 331.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.411e-05/0.467, allocations: 11.94 kB / 442 MB, free: 6.547 MB / 331.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.916e-05/0.4671, allocations: 8 kB / 442 MB, free: 6.539 MB / 331.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003395/0.4674, allocations: 108.5 kB / 442.2 MB, free: 6.434 MB / 331.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003748/0.4678, allocations: 166.7 kB / 442.3 MB, free: 6.254 MB / 331.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.214e-05/0.4678, allocations: 0 / 442.3 MB, free: 6.254 MB / 331.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.219e-05/0.4679, allocations: 0 / 442.3 MB, free: 6.254 MB / 331.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.697e-05/0.4679, allocations: 9.672 kB / 442.3 MB, free: 6.246 MB / 331.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001528/0.4694, allocations: 0.7551 MB / 443.1 MB, free: 5.441 MB / 331.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003806/0.4698, allocations: 134.5 kB / 443.2 MB, free: 5.293 MB / 331.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001477/0.47, allocations: 61.81 kB / 443.3 MB, free: 5.227 MB / 331.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.18e-05/0.4701, allocations: 7.938 kB / 443.3 MB, free: 5.219 MB / 331.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002806/0.4704, allocations: 133.7 kB / 443.4 MB, free: 5.074 MB / 331.1 MB Notification: Performance of pre-optimization done (n=15): time 2.144e-06/0.4704, allocations: 0 / 443.4 MB, free: 5.074 MB / 331.1 MB Notification: Performance of matching and sorting (n=15): time 0.0004855/0.4709, allocations: 157.5 kB / 443.6 MB, free: 4.914 MB / 331.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.182e-05/0.4709, allocations: 81.11 kB / 443.6 MB, free: 4.816 MB / 331.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002165/0.4712, allocations: 163.1 kB / 443.8 MB, free: 4.645 MB / 331.1 MB Notification: Performance of collectPreVariables (initialization): time 3.365e-05/0.4712, allocations: 37.7 kB / 443.8 MB, free: 4.602 MB / 331.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001248/0.4714, allocations: 194.7 kB / 444 MB, free: 4.406 MB / 331.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.649e-05/0.4714, allocations: 43.45 kB / 444.1 MB, free: 4.363 MB / 331.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.391e-05/0.4714, allocations: 0 / 444.1 MB, free: 4.363 MB / 331.1 MB Notification: Performance of setup shared object (initialization): time 0.0001239/0.4716, allocations: 322.8 kB / 444.4 MB, free: 4.039 MB / 331.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001456/0.4717, allocations: 50.42 kB / 444.4 MB, free: 3.992 MB / 331.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001935/0.4719, allocations: 109 kB / 444.5 MB, free: 3.863 MB / 331.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001955/0.4721, allocations: 69.75 kB / 444.6 MB, free: 3.797 MB / 331.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.675e-06/0.4722, allocations: 3.953 kB / 444.6 MB, free: 3.793 MB / 331.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004721/0.4727, allocations: 186.6 kB / 444.8 MB, free: 3.605 MB / 331.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.901e-05/0.4727, allocations: 5.031 kB / 444.8 MB, free: 3.602 MB / 331.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.304e-06/0.4727, allocations: 0 / 444.8 MB, free: 3.602 MB / 331.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.839e-05/0.4727, allocations: 4 kB / 444.8 MB, free: 3.598 MB / 331.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003154/0.4731, allocations: 43.91 kB / 444.9 MB, free: 3.555 MB / 331.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.598e-06/0.4731, allocations: 4 kB / 444.9 MB, free: 3.551 MB / 331.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002729/0.4734, allocations: 31.98 kB / 444.9 MB, free: 3.52 MB / 331.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.804e-05/0.4734, allocations: 15.86 kB / 444.9 MB, free: 3.508 MB / 331.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 11 ($PRE.multiSwitch.u[1],$PRE.multiSwitch.u[2],$whenCondition2,$whenCondition1,$PRE.booleanPulse1.pulseStart,booleanPulse1.pulseStart,multiSwitch.u[1],multiSwitch.u[2],multiSwitch.firstActiveIndex,$PRE.booleanPulse2.pulseStart,booleanPulse2.pulseStart) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (23): * Single equations (assignments): 23 * 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.0001108/0.4735, allocations: 108.9 kB / 445 MB, free: 3.395 MB / 331.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0004075/0.474, allocations: 166.2 kB / 445.2 MB, free: 3.227 MB / 331.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.803e-05/0.474, allocations: 19.81 kB / 445.2 MB, free: 3.207 MB / 331.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005062/0.4745, allocations: 180.9 kB / 445.4 MB, free: 3.031 MB / 331.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.699e-06/0.4745, allocations: 0.6562 kB / 445.4 MB, free: 3.031 MB / 331.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.203e-06/0.4746, allocations: 8 kB / 445.4 MB, free: 3.023 MB / 331.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.118e-05/0.4746, allocations: 4.094 kB / 445.4 MB, free: 3.02 MB / 331.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000333/0.4749, allocations: 234 kB / 445.6 MB, free: 2.754 MB / 331.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.625e-06/0.4749, allocations: 0 / 445.6 MB, free: 2.754 MB / 331.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002196/0.4752, allocations: 27.97 kB / 445.6 MB, free: 2.727 MB / 331.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.15e-06/0.4752, allocations: 0 / 445.6 MB, free: 2.727 MB / 331.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.947e-05/0.4752, allocations: 6.062 kB / 445.6 MB, free: 2.723 MB / 331.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.665e-06/0.4752, allocations: 0 / 445.6 MB, free: 2.723 MB / 331.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.066e-06/0.4752, allocations: 0 / 445.6 MB, free: 2.723 MB / 331.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004427/0.4757, allocations: 207.3 kB / 445.8 MB, free: 2.492 MB / 331.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.541e-05/0.4758, allocations: 88.92 kB / 445.9 MB, free: 2.387 MB / 331.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.099e-05/0.4758, allocations: 7.984 kB / 445.9 MB, free: 2.379 MB / 331.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002316/0.4761, allocations: 19.98 kB / 446 MB, free: 2.359 MB / 331.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.067e-05/0.4762, allocations: 19.97 kB / 446 MB, free: 2.34 MB / 331.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.288e-05/0.4762, allocations: 4 kB / 446 MB, free: 2.336 MB / 331.1 MB Notification: Performance of sorting global known variables: time 0.0001429/0.4764, allocations: 132.2 kB / 446.1 MB, free: 2.207 MB / 331.1 MB Notification: Performance of sort global known variables: time 3.81e-07/0.4764, allocations: 4 kB / 446.1 MB, free: 2.203 MB / 331.1 MB Notification: Performance of remove unused functions: time 0.0003704/0.4767, allocations: 31.91 kB / 446.1 MB, free: 2.172 MB / 331.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition2,$whenCondition1,booleanPulse1.pulseStart,multiSwitch.u[1],multiSwitch.u[2],multiSwitch.firstActiveIndex,booleanPulse2.pulseStart) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0007872/0.4775, allocations: 0.8123 MB / 447 MB, free: 1.32 MB / 331.1 MB Notification: Performance of simCode: created initialization part: time 0.0004223/0.478, allocations: 135.8 kB / 447.1 MB, free: 1.188 MB / 331.1 MB Notification: Performance of simCode: created event and clocks part: time 3.356e-06/0.478, allocations: 0 / 447.1 MB, free: 1.188 MB / 331.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001923/0.4782, allocations: 72.77 kB / 447.2 MB, free: 1.117 MB / 331.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004283/0.4786, allocations: 29.11 kB / 447.2 MB, free: 1.09 MB / 331.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009645/0.4796, allocations: 334.7 kB / 447.5 MB, free: 0.7188 MB / 331.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003999/0.48, allocations: 0.7361 MB / 448.3 MB, free: 15.95 MB / 347.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001592/0.4802, allocations: 73.62 kB / 448.3 MB, free: 15.88 MB / 347.1 MB Notification: Performance of SimCode: time 8.61e-07/0.4802, allocations: 4 kB / 448.3 MB, free: 15.88 MB / 347.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.56/3.041, allocations: 3.108 MB / 451.4 MB, free: 12.83 MB / 347.1 MB (rm -f Modelica_3.2.3_cpp_Modelica.Blocks.Examples.RealNetwork1.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Blocks.Examples.RealNetwork1.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Blocks.Examples.RealNetwork1.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Blocks.Examples.RealNetwork1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Blocks.Examples.RealNetwork1_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Blocks_Examples_RealNetwork1_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Blocks_Examples_RealNetwork1.fmu > Modelica_3.2.3_cpp_Modelica.Blocks.Examples.RealNetwork1.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Blocks.Examples.RealNetwork1_res.mat does not exist to compare? outputFormat=mat