Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.RealNetwork1,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_RealNetwork1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.RealNetwork1,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_RealNetwork1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001098/0.001098, allocations: 201.5 kB / 17.08 MB, free: 5.062 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.197/1.197, allocations: 227.2 MB / 245 MB, free: 5.77 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008123/0.0008123, allocations: 96.73 kB / 297.3 MB, free: 5.926 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002191/0.0002191, allocations: 8 kB / 358 MB, free: 9.191 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1811/0.1813, allocations: 51.48 MB / 409.5 MB, free: 26.66 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08296/0.2643, allocations: 78.49 MB / 488 MB, free: 12.07 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001801/0.2646, allocations: 67.97 kB / 488 MB, free: 12.01 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.007973/0.2725, allocations: 2.847 MB / 490.9 MB, free: 9.164 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.894e-06/0.2726, allocations: 0 / 490.9 MB, free: 9.164 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.314e-05/0.2726, allocations: 8 kB / 490.9 MB, free: 9.156 MB / 362.7 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.0006802/0.2733, allocations: 499.9 kB / 491.4 MB, free: 8.609 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.748e-05/0.2733, allocations: 12.03 kB / 491.4 MB, free: 8.598 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.146e-05/0.2734, allocations: 54.55 kB / 491.4 MB, free: 8.535 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001356/0.2735, allocations: 31.7 kB / 491.5 MB, free: 8.504 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002394/0.2738, allocations: 230.6 kB / 491.7 MB, free: 8.238 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.037e-05/0.2738, allocations: 12.23 kB / 491.7 MB, free: 8.227 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.679e-05/0.2738, allocations: 23.92 kB / 491.7 MB, free: 8.203 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003122/0.2742, allocations: 191.5 kB / 491.9 MB, free: 8 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.115e-05/0.2742, allocations: 3.938 kB / 491.9 MB, free: 7.996 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.681e-05/0.2742, allocations: 8 kB / 491.9 MB, free: 7.988 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.825e-05/0.2742, allocations: 7.984 kB / 491.9 MB, free: 7.98 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000282/0.2745, allocations: 143.9 kB / 492.1 MB, free: 7.84 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000984/0.2755, allocations: 0.7975 MB / 492.9 MB, free: 6.98 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002817/0.2758, allocations: 157 kB / 493 MB, free: 6.809 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.301e-05/0.2758, allocations: 4 kB / 493 MB, free: 6.805 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000235/0.2761, allocations: 153 kB / 493.2 MB, free: 6.637 MB / 362.7 MB Notification: Performance of pre-optimization done (n=15): time 1.282e-06/0.2761, allocations: 0 / 493.2 MB, free: 6.637 MB / 362.7 MB Notification: Performance of matching and sorting (n=15): time 0.000517/0.2766, allocations: 266 kB / 493.5 MB, free: 6.371 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.053e-05/0.2767, allocations: 81.05 kB / 493.5 MB, free: 6.273 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001436/0.2768, allocations: 186 kB / 493.7 MB, free: 6.086 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.013e-05/0.2769, allocations: 29.7 kB / 493.7 MB, free: 6.051 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.273e-05/0.2769, allocations: 140.1 kB / 493.9 MB, free: 5.91 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.986e-05/0.277, allocations: 43.45 kB / 493.9 MB, free: 5.867 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.022e-05/0.277, allocations: 4 kB / 493.9 MB, free: 5.863 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 8.815e-05/0.2771, allocations: 326.8 kB / 494.2 MB, free: 5.535 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001367/0.2772, allocations: 71.95 kB / 494.3 MB, free: 5.465 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001578/0.2774, allocations: 127.6 kB / 494.4 MB, free: 5.316 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001454/0.2776, allocations: 84.02 kB / 494.5 MB, free: 5.234 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.325e-06/0.2776, allocations: 3.938 kB / 494.5 MB, free: 5.23 MB / 362.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0003862/0.278, allocations: 249.1 kB / 494.8 MB, free: 4.98 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.563e-05/0.278, allocations: 4 kB / 494.8 MB, free: 4.977 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.188e-06/0.278, allocations: 0 / 494.8 MB, free: 4.977 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.113e-05/0.278, allocations: 4 kB / 494.8 MB, free: 4.973 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001616/0.2782, allocations: 36.11 kB / 494.8 MB, free: 4.938 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.785e-06/0.2782, allocations: 11.98 kB / 494.8 MB, free: 4.926 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000152/0.2783, allocations: 31.92 kB / 494.9 MB, free: 4.895 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.254e-05/0.2784, allocations: 11.95 kB / 494.9 MB, free: 4.883 MB / 362.7 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 () * Number of clocked 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.0001076/0.2785, allocations: 137.8 kB / 495 MB, free: 4.738 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.68e-05/0.2785, allocations: 23.72 kB / 495 MB, free: 4.715 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004035/0.2789, allocations: 214.9 kB / 495.2 MB, free: 4.5 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.887e-06/0.2789, allocations: 4 kB / 495.2 MB, free: 4.496 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.888e-06/0.279, allocations: 0 / 495.2 MB, free: 4.496 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.156e-06/0.279, allocations: 0 / 495.2 MB, free: 4.496 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002237/0.2792, allocations: 273.4 kB / 495.5 MB, free: 4.18 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.322e-06/0.2792, allocations: 0 / 495.5 MB, free: 4.18 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001127/0.2793, allocations: 27.98 kB / 495.5 MB, free: 4.152 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.314e-06/0.2793, allocations: 0 / 495.5 MB, free: 4.152 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.665e-05/0.2794, allocations: 11.98 kB / 495.5 MB, free: 4.141 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.463e-06/0.2794, allocations: 96 / 495.5 MB, free: 4.141 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.71e-07/0.2794, allocations: 3.938 kB / 495.5 MB, free: 4.137 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003451/0.2797, allocations: 243.2 kB / 495.8 MB, free: 3.871 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.275e-05/0.2798, allocations: 100.8 kB / 495.9 MB, free: 3.754 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.25e-05/0.2798, allocations: 0 / 495.9 MB, free: 3.754 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001338/0.2799, allocations: 27.97 kB / 495.9 MB, free: 3.727 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.094e-05/0.28, allocations: 15.98 kB / 495.9 MB, free: 3.711 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.459e-05/0.28, allocations: 11.98 kB / 495.9 MB, free: 3.699 MB / 362.7 MB Notification: Performance of sorting global known variables: time 9.697e-05/0.2801, allocations: 140.4 kB / 496.1 MB, free: 3.562 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2801, allocations: 0 / 496.1 MB, free: 3.562 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002272/0.2804, allocations: 39.95 kB / 496.1 MB, free: 3.523 MB / 362.7 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 () * Number of clocked 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.0006257/0.281, allocations: 0.8564 MB / 497 MB, free: 2.637 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0003334/0.2813, allocations: 175.8 kB / 497.1 MB, free: 2.465 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.793e-06/0.2814, allocations: 0 / 497.1 MB, free: 2.465 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001558/0.2815, allocations: 80.52 kB / 497.2 MB, free: 2.387 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002425/0.2818, allocations: 44.3 kB / 497.3 MB, free: 2.344 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001767/0.2835, allocations: 2.235 MB / 499.5 MB, free: 16 kB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002654/0.2838, allocations: 0.7477 MB / 0.4885 GB, free: 15.24 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001083/0.2839, allocations: 33.52 kB / 0.4886 GB, free: 15.21 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.413e-05/0.284, allocations: 59.41 kB / 0.4886 GB, free: 15.15 MB / 378.7 MB Notification: Performance of SimCode: time 3.3e-07/0.284, allocations: 4 kB / 0.4886 GB, free: 15.14 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01349/0.2975, allocations: 3.591 MB / 0.4921 GB, free: 11.68 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001772/0.2977, allocations: 157.4 kB / 0.4923 GB, free: 11.45 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.582/1.879, allocations: 7.938 kB / 0.4923 GB, free: 11.44 MB / 378.7 MB (rm -f Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1_res.mat --tempDir=temp_Modelica_trunk_Modelica_Blocks_Examples_RealNetwork1_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Blocks_Examples_RealNetwork1.fmu > Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1_res.mat does not exist to compare? outputFormat=mat