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.00106/0.00106, allocations: 179.1 kB / 8.697 MB, free: 388 kB / 5.871 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.3 MB / 214.4 MB, free: 1.672 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009185/0.0009186, allocations: 87.95 kB / 262.4 MB, free: 1.613 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.677e-05/1.672e-05, allocations: 4 kB / 315.6 MB, free: 22.62 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08589/0.08592, allocations: 47.58 MB / 363.2 MB, free: 6.984 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2881/0.374, allocations: 76.39 MB / 439.5 MB, free: 2.949 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001609/0.3742, allocations: 65.22 kB / 439.6 MB, free: 2.918 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.007472/0.3817, allocations: 2.675 MB / 442.3 MB, free: 0.6406 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.152e-06/0.3817, allocations: 0 / 442.3 MB, free: 0.6406 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.422e-05/0.3818, allocations: 7.75 kB / 442.3 MB, free: 0.6367 MB / 314.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.0006129/0.3824, allocations: 486.9 kB / 442.8 MB, free: 128 kB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.052e-05/0.3824, allocations: 8.031 kB / 442.8 MB, free: 120 kB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.544e-05/0.3825, allocations: 23.72 kB / 442.8 MB, free: 96 kB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002656/0.3828, allocations: 224.9 kB / 443 MB, free: 15.84 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.861e-05/0.3828, allocations: 11.95 kB / 443 MB, free: 15.83 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.632e-05/0.3828, allocations: 12.83 kB / 443 MB, free: 15.82 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001925/0.383, allocations: 100.6 kB / 443.1 MB, free: 15.75 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002291/0.3833, allocations: 169.5 kB / 443.3 MB, free: 15.6 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.046e-05/0.3833, allocations: 0 / 443.3 MB, free: 15.6 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.734e-05/0.3833, allocations: 0 / 443.3 MB, free: 15.6 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.115e-05/0.3833, allocations: 8 kB / 443.3 MB, free: 15.59 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001008/0.3844, allocations: 0.7594 MB / 444.1 MB, free: 14.85 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002279/0.3846, allocations: 134.4 kB / 444.2 MB, free: 14.73 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.855e-05/0.3847, allocations: 58.45 kB / 444.3 MB, free: 14.69 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.839e-05/0.3848, allocations: 11.94 kB / 444.3 MB, free: 14.68 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001862/0.3849, allocations: 128.8 kB / 444.4 MB, free: 14.55 MB / 330.7 MB Notification: Performance of pre-optimization done (n=15): time 1.402e-06/0.385, allocations: 0 / 444.4 MB, free: 14.55 MB / 330.7 MB Notification: Performance of matching and sorting (n=15): time 0.000336/0.3853, allocations: 155.2 kB / 444.5 MB, free: 14.42 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.963e-05/0.3854, allocations: 81.11 kB / 444.6 MB, free: 14.32 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001686/0.3855, allocations: 169.2 kB / 444.8 MB, free: 14.17 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.522e-05/0.3856, allocations: 29.7 kB / 444.8 MB, free: 14.13 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001151/0.3857, allocations: 143.7 kB / 445 MB, free: 14.01 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.387e-05/0.3857, allocations: 38.95 kB / 445 MB, free: 13.98 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.758e-06/0.3857, allocations: 0 / 445 MB, free: 13.98 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001498/0.3859, allocations: 333.4 kB / 445.3 MB, free: 13.65 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.899e-05/0.386, allocations: 52.3 kB / 445.4 MB, free: 13.62 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001226/0.3861, allocations: 111.1 kB / 445.5 MB, free: 13.5 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00012/0.3863, allocations: 63.22 kB / 445.5 MB, free: 13.46 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.42e-06/0.3863, allocations: 3.953 kB / 445.5 MB, free: 13.46 MB / 330.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0002967/0.3866, allocations: 200 kB / 445.7 MB, free: 13.29 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.665e-05/0.3866, allocations: 8 kB / 445.8 MB, free: 13.28 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.43e-06/0.3866, allocations: 0 / 445.8 MB, free: 13.28 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.571e-05/0.3866, allocations: 4 kB / 445.8 MB, free: 13.28 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001876/0.3868, allocations: 39.91 kB / 445.8 MB, free: 13.24 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.996e-06/0.3868, allocations: 4 kB / 445.8 MB, free: 13.23 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001628/0.387, allocations: 28.11 kB / 445.8 MB, free: 13.21 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.473e-05/0.3871, allocations: 15.11 kB / 445.8 MB, free: 13.2 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 0.0001145/0.3872, allocations: 108.9 kB / 445.9 MB, free: 13.08 MB / 330.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0002614/0.3875, allocations: 162.5 kB / 446.1 MB, free: 12.95 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.799e-05/0.3875, allocations: 19.81 kB / 446.1 MB, free: 12.93 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003322/0.3878, allocations: 183.7 kB / 446.3 MB, free: 12.79 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.296e-06/0.3878, allocations: 3.938 kB / 446.3 MB, free: 12.78 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.194e-05/0.3879, allocations: 8.109 kB / 446.3 MB, free: 12.77 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.414e-06/0.3879, allocations: 7.922 kB / 446.3 MB, free: 12.77 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000269/0.3881, allocations: 227.7 kB / 446.5 MB, free: 12.54 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.443e-06/0.3882, allocations: 3.938 kB / 446.5 MB, free: 12.53 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001161/0.3883, allocations: 23.98 kB / 446.6 MB, free: 12.51 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.079e-06/0.3883, allocations: 3.984 kB / 446.6 MB, free: 12.5 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.285e-05/0.3883, allocations: 0 / 446.6 MB, free: 12.5 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.744e-06/0.3883, allocations: 4 kB / 446.6 MB, free: 12.5 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.886e-06/0.3883, allocations: 0 / 446.6 MB, free: 12.5 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002925/0.3886, allocations: 211.6 kB / 446.8 MB, free: 12.3 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.867e-05/0.3887, allocations: 96.72 kB / 446.9 MB, free: 12.19 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.034e-05/0.3887, allocations: 7.984 kB / 446.9 MB, free: 12.18 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001336/0.3889, allocations: 15.98 kB / 446.9 MB, free: 12.16 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.012e-05/0.389, allocations: 19.97 kB / 446.9 MB, free: 12.14 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.53e-05/0.389, allocations: 7.188 kB / 446.9 MB, free: 12.14 MB / 330.7 MB Notification: Performance of sorting global known variables: time 9.282e-05/0.3891, allocations: 126.4 kB / 447.1 MB, free: 12.03 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3891, allocations: 0 / 447.1 MB, free: 12.03 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002503/0.3893, allocations: 32 kB / 447.1 MB, free: 12 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.0006096/0.39, allocations: 0.8157 MB / 447.9 MB, free: 11.18 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002262/0.3902, allocations: 134.5 kB / 448 MB, free: 11.08 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.904e-06/0.3902, allocations: 0 / 448 MB, free: 11.08 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001036/0.3903, allocations: 69.53 kB / 448.1 MB, free: 11.03 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002774/0.3906, allocations: 32.14 kB / 448.1 MB, free: 11.01 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006452/0.3913, allocations: 302.7 kB / 448.4 MB, free: 10.7 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003379/0.3917, allocations: 0.7398 MB / 449.2 MB, free: 9.934 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0001172/0.3918, allocations: 37.83 kB / 449.2 MB, free: 9.898 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.772e-05/0.3919, allocations: 62.05 kB / 449.3 MB, free: 9.875 MB / 330.7 MB Notification: Performance of SimCode: time 2.5e-07/0.3919, allocations: 0 / 449.3 MB, free: 9.875 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02137/0.4133, allocations: 3.195 MB / 452.5 MB, free: 6.688 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001877/0.4135, allocations: 121.8 kB / 452.6 MB, free: 6.496 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.66/2.073, allocations: 0 / 452.6 MB, free: 6.496 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