Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_Leakage_CylinderLeakage",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_Leakage_CylinderLeakage",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00104/0.00104, allocations: 176.4 kB / 8.346 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.367/1.367, allocations: 221.5 MB / 230.3 MB, free: 7.582 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001019/0.001019, allocations: 97.8 kB / 281.2 MB, free: 5.328 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.969e-05/1.972e-05, allocations: 0 / 337.2 MB, free: 9.93 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0936/0.09363, allocations: 50.42 MB / 387.6 MB, free: 7.473 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2837/0.3773, allocations: 82.39 MB / 470 MB, free: 12.33 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003099/0.3777, allocations: 83.95 kB / 470 MB, free: 12.25 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05801/0.4357, allocations: 25.91 MB / 496 MB, free: 2.004 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.432e-06/0.4358, allocations: 0 / 496 MB, free: 2.004 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.013e-05/0.4358, allocations: 16 kB / 496 MB, free: 1.988 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: 249 * Number of variables: 249 Notification: Performance of Generate backend data structure: time 0.002836/0.4386, allocations: 1.092 MB / 497.1 MB, free: 0.8516 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.725e-05/0.4387, allocations: 8.031 kB / 497.1 MB, free: 0.8438 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001552/0.4402, allocations: 254.8 kB / 497.3 MB, free: 0.5938 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002618/0.4405, allocations: 265.9 kB / 497.6 MB, free: 300 kB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.003e-05/0.4406, allocations: 36 kB / 497.6 MB, free: 264 kB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001185/0.4407, allocations: 59.91 kB / 497.7 MB, free: 204 kB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001243/0.4419, allocations: 0.703 MB / 498.4 MB, free: 15.5 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001259/0.4432, allocations: 0.7705 MB / 499.1 MB, free: 14.71 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.921e-05/0.4433, allocations: 3.953 kB / 499.2 MB, free: 14.71 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.843e-05/0.4433, allocations: 0 / 499.2 MB, free: 14.71 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.039e-05/0.4433, allocations: 27.98 kB / 499.2 MB, free: 14.68 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004636/0.448, allocations: 3.237 MB / 0.4906 GB, free: 11.28 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001857/0.4499, allocations: 1.363 MB / 0.492 GB, free: 9.789 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005165/0.4504, allocations: 338.2 kB / 0.4923 GB, free: 9.457 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001208/0.4506, allocations: 97.86 kB / 0.4924 GB, free: 9.344 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.116e-05/0.4506, allocations: 47.28 kB / 0.4924 GB, free: 9.289 MB / 378.7 MB Notification: Performance of pre-optimization done (n=87): time 3.246e-06/0.4506, allocations: 0 / 0.4924 GB, free: 9.289 MB / 378.7 MB Notification: Performance of matching and sorting (n=87): time 0.001773/0.4524, allocations: 0.7956 MB / 0.4932 GB, free: 8.473 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.227e-05/0.4525, allocations: 85.89 kB / 0.4933 GB, free: 8.371 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002943/0.4528, allocations: 274 kB / 0.4936 GB, free: 8.098 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.608e-05/0.4528, allocations: 25.7 kB / 0.4936 GB, free: 8.066 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002171/0.453, allocations: 386.7 kB / 0.4939 GB, free: 7.68 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000189/0.4532, allocations: 295.7 kB / 0.4942 GB, free: 7.387 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.495e-05/0.4533, allocations: 0 / 0.4942 GB, free: 7.387 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001294/0.4534, allocations: 358.8 kB / 0.4946 GB, free: 7.027 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003792/0.4538, allocations: 226.6 kB / 0.4948 GB, free: 6.805 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004856/0.4543, allocations: 437.3 kB / 0.4952 GB, free: 6.301 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001117/0.4554, allocations: 498 kB / 0.4957 GB, free: 5.816 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.025e-06/0.4554, allocations: 7.953 kB / 0.4957 GB, free: 5.809 MB / 378.7 MB Notification: Performance of matching and sorting (n=130) (initialization): time 0.001984/0.4574, allocations: 1.035 MB / 0.4967 GB, free: 4.75 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.98e-05/0.4574, allocations: 9.094 kB / 0.4967 GB, free: 4.742 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.102e-05/0.4575, allocations: 8.062 kB / 0.4967 GB, free: 4.734 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003408/0.4578, allocations: 115.4 kB / 0.4968 GB, free: 4.609 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007646/0.4586, allocations: 211.6 kB / 0.497 GB, free: 4.402 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003623/0.4622, allocations: 5.341 MB / 0.5022 GB, free: 14.59 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000601/0.4628, allocations: 78.91 kB / 0.5023 GB, free: 14.52 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.11e-05/0.4629, allocations: 40 kB / 0.5024 GB, free: 14.48 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (120): * Single equations (assignments): 116 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 3,(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001536/0.4631, allocations: 128.7 kB / 0.5025 GB, free: 14.34 MB / 394.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001637/0.4647, allocations: 0.7995 MB / 0.5033 GB, free: 13.52 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.349e-05/0.4648, allocations: 47.44 kB / 0.5033 GB, free: 13.48 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001871/0.4667, allocations: 0.9203 MB / 0.5042 GB, free: 12.54 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.375e-06/0.4667, allocations: 12 kB / 0.5042 GB, free: 12.52 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.302e-06/0.4667, allocations: 4 kB / 0.5042 GB, free: 12.52 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.238e-06/0.4668, allocations: 3.984 kB / 0.5042 GB, free: 12.52 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003892/0.4707, allocations: 2.688 MB / 0.5068 GB, free: 9.547 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.053e-05/0.4707, allocations: 8 kB / 0.5069 GB, free: 9.539 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000521/0.4712, allocations: 139.8 kB / 0.507 GB, free: 9.402 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000284/0.4715, allocations: 115.4 kB / 0.5071 GB, free: 9.277 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.429e-05/0.4716, allocations: 15.98 kB / 0.5071 GB, free: 9.262 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003207/0.4748, allocations: 5.081 MB / 0.5121 GB, free: 3.727 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.143e-05/0.4748, allocations: 15.94 kB / 0.5121 GB, free: 3.711 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002585/0.4774, allocations: 1.829 MB / 0.5139 GB, free: 1.551 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002012/0.4776, allocations: 148.5 kB / 0.514 GB, free: 1.387 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.042e-05/0.4777, allocations: 11.98 kB / 0.514 GB, free: 1.375 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004139/0.4781, allocations: 12 kB / 0.514 GB, free: 1.363 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001236/0.4783, allocations: 92.17 kB / 0.5141 GB, free: 1.273 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.713e-05/0.4783, allocations: 32 kB / 0.5142 GB, free: 1.242 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0002117/0.4785, allocations: 198 kB / 0.5143 GB, free: 1.055 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4785, allocations: 3.938 kB / 0.5144 GB, free: 1.051 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0009864/0.4795, allocations: 240.3 kB / 0.5146 GB, free: 0.8164 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 33 * Number of states: 1 (referenceSensor.port.reference.gamma) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (78): * Single equations (assignments): 74 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003474/0.483, allocations: 4.618 MB / 0.5191 GB, free: 11.95 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001475/0.4845, allocations: 1.059 MB / 0.5201 GB, free: 10.85 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 5.691e-06/0.4845, allocations: 0 / 0.5201 GB, free: 10.85 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007751/0.4853, allocations: 0.7261 MB / 0.5208 GB, free: 10.09 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00047/0.4858, allocations: 48.77 kB / 0.5209 GB, free: 10.04 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002453/0.4883, allocations: 1.211 MB / 0.5221 GB, free: 8.68 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004888/0.4888, allocations: 0.9281 MB / 0.523 GB, free: 7.723 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0005295/0.4893, allocations: 105 kB / 0.5231 GB, free: 7.621 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003487/0.4897, allocations: 247.3 kB / 0.5233 GB, free: 7.379 MB / 410.7 MB Notification: Performance of SimCode: time 7.81e-07/0.4897, allocations: 0 / 0.5233 GB, free: 7.379 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03303/0.5227, allocations: 11.14 MB / 0.5342 GB, free: 12.27 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002741/0.523, allocations: 169.5 kB / 0.5343 GB, free: 12.08 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.509/3.032, allocations: 0 / 0.5343 GB, free: 12.08 MB / 426.7 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_Leakage_CylinderLeakage_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_Leakage_CylinderLeakage.fmu > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage_res.mat does not exist to compare? outputFormat=mat