Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_Modelica_Blocks_Examples_RealNetwork1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.RealNetwork1,fileNamePrefix="Modelica_3_2_3_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.001167/0.001167, allocations: 180.9 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.432/1.432, allocations: 205.4 MB / 223.1 MB, free: 9.113 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.0008751/0.0008753, allocations: 99.89 kB / 271.5 MB, free: 8.367 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002369/0.0002369, allocations: 8 kB / 328.3 MB, free: 15.45 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2139/0.2142, allocations: 47.57 MB / 375.9 MB, free: 45.63 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08074/0.2949, allocations: 76.89 MB / 452.8 MB, free: 3.766 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002564/0.2952, allocations: 75.95 kB / 452.9 MB, free: 3.691 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.008096/0.3034, allocations: 2.696 MB / 455.6 MB, free: 0.9883 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.355e-06/0.3034, allocations: 4 kB / 455.6 MB, free: 0.9844 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.547e-05/0.3034, allocations: 4 kB / 455.6 MB, free: 0.9805 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: 34 * Number of variables: 34 Notification: Performance of Generate backend data structure: time 0.0007562/0.3042, allocations: 0.4921 MB / 456.1 MB, free: 448 kB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.359e-05/0.3043, allocations: 16.02 kB / 456.1 MB, free: 432 kB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.244e-05/0.3043, allocations: 46.55 kB / 456.1 MB, free: 376 kB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.877e-05/0.3044, allocations: 23.7 kB / 456.1 MB, free: 352 kB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002736/0.3047, allocations: 236.9 kB / 456.4 MB, free: 76 kB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.774e-05/0.3047, allocations: 12.23 kB / 456.4 MB, free: 64 kB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.653e-05/0.3047, allocations: 16 kB / 456.4 MB, free: 48 kB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003568/0.3051, allocations: 195 kB / 456.6 MB, free: 15.84 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.208e-05/0.3051, allocations: 7.938 kB / 456.6 MB, free: 15.83 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.813e-05/0.3051, allocations: 7.906 kB / 456.6 MB, free: 15.82 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.049e-05/0.3052, allocations: 7.984 kB / 456.6 MB, free: 15.82 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003014/0.3055, allocations: 143.9 kB / 456.8 MB, free: 15.68 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001141/0.3066, allocations: 0.7859 MB / 457.5 MB, free: 14.83 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003107/0.3069, allocations: 161 kB / 457.7 MB, free: 14.65 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.747e-05/0.307, allocations: 0 / 457.7 MB, free: 14.65 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002472/0.3072, allocations: 157 kB / 457.9 MB, free: 14.48 MB / 346.7 MB Notification: Performance of pre-optimization done (n=15): time 1.984e-06/0.3073, allocations: 0 / 457.9 MB, free: 14.48 MB / 346.7 MB Notification: Performance of matching and sorting (n=15): time 0.0005512/0.3078, allocations: 261.7 kB / 458.1 MB, free: 14.22 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.534e-05/0.3079, allocations: 89.05 kB / 458.2 MB, free: 14.11 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000155/0.308, allocations: 178.2 kB / 458.4 MB, free: 13.93 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.516e-05/0.3081, allocations: 33.64 kB / 458.4 MB, free: 13.89 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.6e-05/0.3082, allocations: 144.1 kB / 458.5 MB, free: 13.75 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.685e-05/0.3082, allocations: 43.44 kB / 458.6 MB, free: 13.7 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.676e-06/0.3082, allocations: 0 / 458.6 MB, free: 13.7 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 9.956e-05/0.3083, allocations: 330.8 kB / 458.9 MB, free: 13.37 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001433/0.3085, allocations: 74.3 kB / 459 MB, free: 13.3 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001574/0.3086, allocations: 125.2 kB / 459.1 MB, free: 13.16 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001556/0.3088, allocations: 87.84 kB / 459.2 MB, free: 13.07 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.3088, allocations: 0 / 459.2 MB, free: 13.07 MB / 346.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0003992/0.3092, allocations: 241.2 kB / 459.4 MB, free: 12.83 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.597e-05/0.3092, allocations: 4 kB / 459.4 MB, free: 12.82 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.735e-06/0.3093, allocations: 4 kB / 459.4 MB, free: 12.82 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.413e-05/0.3093, allocations: 4 kB / 459.4 MB, free: 12.82 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001692/0.3095, allocations: 35.92 kB / 459.5 MB, free: 12.78 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.809e-06/0.3095, allocations: 12.17 kB / 459.5 MB, free: 12.77 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001609/0.3096, allocations: 35.83 kB / 459.5 MB, free: 12.73 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.784e-05/0.3097, allocations: 7.953 kB / 459.5 MB, free: 12.73 MB / 346.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.0001268/0.3098, allocations: 141.8 kB / 459.7 MB, free: 12.58 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.798e-05/0.3098, allocations: 19.72 kB / 459.7 MB, free: 12.56 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004206/0.3103, allocations: 222.9 kB / 459.9 MB, free: 12.34 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.488e-06/0.3103, allocations: 3.984 kB / 459.9 MB, free: 12.33 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.009e-06/0.3103, allocations: 0 / 459.9 MB, free: 12.33 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.028e-06/0.3103, allocations: 0 / 459.9 MB, free: 12.33 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002517/0.3106, allocations: 273.4 kB / 460.2 MB, free: 12.02 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-06/0.3106, allocations: 4 kB / 460.2 MB, free: 12.01 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001158/0.3107, allocations: 23.98 kB / 460.2 MB, free: 11.99 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.886e-06/0.3107, allocations: 0 / 460.2 MB, free: 11.99 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.777e-05/0.3107, allocations: 11.98 kB / 460.2 MB, free: 11.98 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.823e-06/0.3107, allocations: 0 / 460.2 MB, free: 11.98 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.51e-07/0.3107, allocations: 0 / 460.2 MB, free: 11.98 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003534/0.3111, allocations: 247.2 kB / 460.5 MB, free: 11.71 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.903e-05/0.3112, allocations: 96.8 kB / 460.5 MB, free: 11.59 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.374e-05/0.3112, allocations: 0 / 460.5 MB, free: 11.59 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001374/0.3113, allocations: 27.97 kB / 460.6 MB, free: 11.57 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.212e-05/0.3114, allocations: 15.98 kB / 460.6 MB, free: 11.55 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.523e-05/0.3114, allocations: 7.984 kB / 460.6 MB, free: 11.54 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.000107/0.3115, allocations: 148.4 kB / 460.7 MB, free: 11.4 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3115, allocations: 0 / 460.7 MB, free: 11.4 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002435/0.3118, allocations: 35.95 kB / 460.8 MB, free: 11.36 MB / 346.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.0006338/0.3124, allocations: 0.8534 MB / 461.6 MB, free: 10.47 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0003431/0.3128, allocations: 180.5 kB / 461.8 MB, free: 10.3 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.943e-06/0.3128, allocations: 0 / 461.8 MB, free: 10.3 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001557/0.313, allocations: 84.19 kB / 461.9 MB, free: 10.21 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002585/0.3132, allocations: 46.53 kB / 461.9 MB, free: 10.17 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001825/0.3151, allocations: 2.228 MB / 464.2 MB, free: 7.855 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000237/0.3153, allocations: 0.7438 MB / 464.9 MB, free: 7.086 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0001103/0.3154, allocations: 33.52 kB / 464.9 MB, free: 7.051 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.935e-05/0.3155, allocations: 63.53 kB / 465 MB, free: 6.988 MB / 346.7 MB Notification: Performance of SimCode: time 3.247e-06/0.3155, allocations: 3.938 kB / 465 MB, free: 6.984 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01335/0.3289, allocations: 3.61 MB / 468.6 MB, free: 3.41 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001936/0.3291, allocations: 165.5 kB / 468.8 MB, free: 3.168 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.553/1.882, allocations: 0 / 468.8 MB, free: 3.168 MB / 346.7 MB (rm -f Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1.pipe ; mkfifo Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1.pipe >> ../files/Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Blocks_Examples_RealNetwork1_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Blocks_Examples_RealNetwork1.fmu > Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1_res.mat does not exist to compare? outputFormat=mat