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.0009968/0.0009967, allocations: 172.2 kB / 14.1 MB, free: 1.223 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.406/1.406, allocations: 205.2 MB / 219.8 MB, free: 14.26 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.0009411/0.0009408, allocations: 82.66 kB / 268 MB, free: 14.1 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.943e-05/2.944e-05, allocations: 4 kB / 322.5 MB, free: 17.26 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.088/0.08805, allocations: 47.57 MB / 370.1 MB, free: 1.625 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2964/0.3845, allocations: 76.81 MB / 446.9 MB, free: 448 kB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001823/0.3847, allocations: 66.34 kB / 447 MB, free: 416 kB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.007677/0.3924, allocations: 2.682 MB / 449.7 MB, free: 14.1 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.283e-06/0.3924, allocations: 0 / 449.7 MB, free: 14.1 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.253e-05/0.3924, allocations: 7.984 kB / 449.7 MB, free: 14.09 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.0006108/0.393, allocations: 485.8 kB / 450.1 MB, free: 13.58 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.493e-05/0.3931, allocations: 8.031 kB / 450.1 MB, free: 13.57 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.151e-05/0.3931, allocations: 49.55 kB / 450.2 MB, free: 13.53 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.498e-05/0.3932, allocations: 23.72 kB / 450.2 MB, free: 13.5 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002498/0.3934, allocations: 234.1 kB / 450.4 MB, free: 13.24 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.729e-05/0.3935, allocations: 14.55 kB / 450.5 MB, free: 13.23 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.331e-05/0.3935, allocations: 15.19 kB / 450.5 MB, free: 13.22 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002758/0.3938, allocations: 179.8 kB / 450.7 MB, free: 13.07 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.23e-05/0.3938, allocations: 3.938 kB / 450.7 MB, free: 13.07 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.797e-05/0.3938, allocations: 7.5 kB / 450.7 MB, free: 13.06 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.592e-05/0.3938, allocations: 4 kB / 450.7 MB, free: 13.06 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001951/0.394, allocations: 121 kB / 450.8 MB, free: 12.97 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001008/0.3951, allocations: 0.7945 MB / 451.6 MB, free: 12.19 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002387/0.3953, allocations: 143.4 kB / 451.7 MB, free: 12.07 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.799e-05/0.3954, allocations: 64.52 kB / 451.8 MB, free: 12.02 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.11e-05/0.3955, allocations: 4 kB / 451.8 MB, free: 12.01 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001866/0.3956, allocations: 136.1 kB / 451.9 MB, free: 11.88 MB / 330.7 MB Notification: Performance of pre-optimization done (n=15): time 1.443e-06/0.3957, allocations: 0 / 451.9 MB, free: 11.88 MB / 330.7 MB Notification: Performance of matching and sorting (n=15): time 0.0003231/0.396, allocations: 160 kB / 452.1 MB, free: 11.75 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.142e-05/0.3961, allocations: 89.05 kB / 452.2 MB, free: 11.64 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001435/0.3962, allocations: 177.9 kB / 452.3 MB, free: 11.48 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.835e-05/0.3962, allocations: 33.33 kB / 452.4 MB, free: 11.45 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.078e-05/0.3963, allocations: 143.5 kB / 452.5 MB, free: 11.33 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.389e-05/0.3964, allocations: 41.83 kB / 452.6 MB, free: 11.29 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.777e-06/0.3964, allocations: 3 kB / 452.6 MB, free: 11.29 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001104/0.3965, allocations: 332.2 kB / 452.9 MB, free: 10.97 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.846e-05/0.3966, allocations: 56.67 kB / 452.9 MB, free: 10.93 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000113/0.3967, allocations: 111.7 kB / 453 MB, free: 10.82 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001135/0.3968, allocations: 73.41 kB / 453.1 MB, free: 10.76 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.053e-06/0.3968, allocations: 0 / 453.1 MB, free: 10.76 MB / 330.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0002917/0.3971, allocations: 222.6 kB / 453.3 MB, free: 10.58 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.176e-05/0.3971, allocations: 4 kB / 453.3 MB, free: 10.57 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.59e-06/0.3972, allocations: 4 kB / 453.3 MB, free: 10.57 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.385e-05/0.3972, allocations: 0 / 453.3 MB, free: 10.57 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001742/0.3974, allocations: 39.91 kB / 453.4 MB, free: 10.53 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.385e-06/0.3974, allocations: 8.188 kB / 453.4 MB, free: 10.52 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001553/0.3975, allocations: 39.64 kB / 453.4 MB, free: 10.49 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.455e-05/0.3976, allocations: 11.8 kB / 453.4 MB, free: 10.48 MB / 330.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 () * 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 7.581e-05/0.3977, allocations: 124.7 kB / 453.6 MB, free: 10.36 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.533e-05/0.3977, allocations: 15.81 kB / 453.6 MB, free: 10.34 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003216/0.398, allocations: 196.4 kB / 453.8 MB, free: 10.18 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.294e-06/0.398, allocations: 0 / 453.8 MB, free: 10.18 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.637e-06/0.398, allocations: 0 / 453.8 MB, free: 10.18 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.828e-06/0.398, allocations: 0 / 453.8 MB, free: 10.18 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002194/0.3983, allocations: 264 kB / 454 MB, free: 9.91 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.635e-06/0.3983, allocations: 7.984 kB / 454 MB, free: 9.902 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001129/0.3984, allocations: 19.98 kB / 454.1 MB, free: 9.883 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.404e-06/0.3984, allocations: 0 / 454.1 MB, free: 9.883 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.317e-05/0.3984, allocations: 7.938 kB / 454.1 MB, free: 9.879 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.014e-06/0.3984, allocations: 0 / 454.1 MB, free: 9.879 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.3985, allocations: 4 kB / 454.1 MB, free: 9.875 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002654/0.3987, allocations: 218 kB / 454.3 MB, free: 9.668 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.026e-05/0.3988, allocations: 92.91 kB / 454.4 MB, free: 9.559 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.293e-05/0.3988, allocations: 3.75 kB / 454.4 MB, free: 9.559 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001388/0.399, allocations: 23.98 kB / 454.4 MB, free: 9.535 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.665e-05/0.399, allocations: 19.91 kB / 454.4 MB, free: 9.52 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.339e-05/0.3991, allocations: 4 kB / 454.4 MB, free: 9.516 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001004/0.3992, allocations: 151.9 kB / 454.6 MB, free: 9.387 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3992, allocations: 0 / 454.6 MB, free: 9.387 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002229/0.3994, allocations: 35.53 kB / 454.6 MB, free: 9.355 MB / 330.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 () * 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.0005502/0.3999, allocations: 0.8191 MB / 455.4 MB, free: 8.539 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002392/0.4002, allocations: 157.8 kB / 455.6 MB, free: 8.422 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.883e-06/0.4002, allocations: 0 / 455.6 MB, free: 8.422 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001169/0.4003, allocations: 71.36 kB / 455.6 MB, free: 8.371 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000253/0.4006, allocations: 43.62 kB / 455.7 MB, free: 8.336 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005998/0.4012, allocations: 323.2 kB / 456 MB, free: 8.02 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002885/0.4015, allocations: 0.736 MB / 456.7 MB, free: 7.254 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0001211/0.4016, allocations: 41.52 kB / 456.8 MB, free: 7.211 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.024e-05/0.4017, allocations: 61.47 kB / 456.8 MB, free: 7.188 MB / 330.7 MB Notification: Performance of SimCode: time 2.8e-07/0.4017, allocations: 0 / 456.8 MB, free: 7.188 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01415/0.4159, allocations: 3.617 MB / 460.5 MB, free: 3.578 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001904/0.4161, allocations: 146.6 kB / 460.6 MB, free: 3.348 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.529/1.945, allocations: 3.938 kB / 460.6 MB, free: 3.344 MB / 330.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