Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage.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.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_Leakage_CylinderLeakage",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001859/0.001859, allocations: 202.1 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.445/1.445, allocations: 225.6 MB / 234.8 MB, free: 3.25 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009541/0.0009543, allocations: 100.4 kB / 286.7 MB, free: 5.27 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.344e-05/1.347e-05, allocations: 0 / 343.8 MB, free: 8.176 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.106/0.106, allocations: 51.47 MB / 395.3 MB, free: 4.66 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3583/0.4644, allocations: 83.16 MB / 478.4 MB, free: 9.965 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002481/0.4647, allocations: 92.73 kB / 478.5 MB, free: 9.93 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05527/0.52, allocations: 27.29 MB / 0.4939 GB, free: 3.625 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.303e-06/0.52, allocations: 0 / 0.4939 GB, free: 3.625 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.743e-05/0.5201, allocations: 12 kB / 0.494 GB, free: 3.613 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.002735/0.5228, allocations: 1.099 MB / 0.495 GB, free: 2.473 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.931e-05/0.5228, allocations: 8.031 kB / 0.495 GB, free: 2.465 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001502/0.5244, allocations: 254.8 kB / 0.4953 GB, free: 2.215 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002268/0.5246, allocations: 246.9 kB / 0.4955 GB, free: 1.934 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.046e-05/0.5247, allocations: 31.98 kB / 0.4956 GB, free: 1.902 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001237/0.5248, allocations: 75.52 kB / 0.4956 GB, free: 1.832 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001217/0.526, allocations: 0.6991 MB / 0.4963 GB, free: 1.133 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001343/0.5274, allocations: 0.7744 MB / 0.4971 GB, free: 356 kB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.227e-05/0.5274, allocations: 4 kB / 0.4971 GB, free: 352 kB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.753e-05/0.5275, allocations: 0 / 0.4971 GB, free: 352 kB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.606e-05/0.5275, allocations: 24 kB / 0.4971 GB, free: 328 kB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00508/0.5326, allocations: 3.496 MB / 0.5005 GB, free: 12.6 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001937/0.5345, allocations: 1.362 MB / 0.5018 GB, free: 11.11 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005205/0.5351, allocations: 332.7 kB / 0.5021 GB, free: 10.79 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002298/0.5353, allocations: 187 kB / 0.5023 GB, free: 10.57 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.218e-05/0.5354, allocations: 43.34 kB / 0.5024 GB, free: 10.52 MB / 378.7 MB Notification: Performance of pre-optimization done (n=87): time 2.565e-06/0.5354, allocations: 0 / 0.5024 GB, free: 10.52 MB / 378.7 MB Notification: Performance of matching and sorting (n=87): time 0.002611/0.538, allocations: 0.9088 MB / 0.5033 GB, free: 9.586 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.829e-05/0.5381, allocations: 95.61 kB / 0.5033 GB, free: 9.477 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003523/0.5384, allocations: 282 kB / 0.5036 GB, free: 9.195 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.005e-05/0.5385, allocations: 29.69 kB / 0.5036 GB, free: 9.16 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002602/0.5387, allocations: 382.7 kB / 0.504 GB, free: 8.777 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002122/0.539, allocations: 283.8 kB / 0.5043 GB, free: 8.496 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.433e-05/0.539, allocations: 4 kB / 0.5043 GB, free: 8.492 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001865/0.5392, allocations: 354.8 kB / 0.5046 GB, free: 8.137 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003787/0.5396, allocations: 234.6 kB / 0.5048 GB, free: 7.906 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000546/0.5401, allocations: 432.1 kB / 0.5053 GB, free: 7.414 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001964/0.5421, allocations: 0.6151 MB / 0.5059 GB, free: 6.797 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.438e-06/0.5421, allocations: 0 / 0.5059 GB, free: 6.797 MB / 378.7 MB Notification: Performance of matching and sorting (n=130) (initialization): time 0.00285/0.545, allocations: 1.16 MB / 0.507 GB, free: 5.617 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.395e-05/0.545, allocations: 11.98 kB / 0.507 GB, free: 5.605 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.039e-05/0.545, allocations: 8.031 kB / 0.507 GB, free: 5.598 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003868/0.5454, allocations: 123.3 kB / 0.5071 GB, free: 5.461 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007517/0.5462, allocations: 207.7 kB / 0.5073 GB, free: 5.258 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003895/0.5501, allocations: 5.345 MB / 0.5125 GB, free: 15.45 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005371/0.5506, allocations: 70.97 kB / 0.5126 GB, free: 15.38 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.711e-05/0.5507, allocations: 40 kB / 0.5127 GB, free: 15.34 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.0001721/0.5509, allocations: 130.3 kB / 0.5128 GB, free: 15.2 MB / 394.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002458/0.5534, allocations: 0.9127 MB / 0.5137 GB, free: 14.27 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.671e-05/0.5535, allocations: 47.44 kB / 0.5137 GB, free: 14.22 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002735/0.5562, allocations: 1.033 MB / 0.5147 GB, free: 13.17 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.726e-06/0.5562, allocations: 15.94 kB / 0.5147 GB, free: 13.15 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.847e-06/0.5563, allocations: 0 / 0.5147 GB, free: 13.15 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.076e-05/0.5563, allocations: 7.969 kB / 0.5147 GB, free: 13.14 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005363/0.5616, allocations: 3.363 MB / 0.518 GB, free: 9.371 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.558e-06/0.5617, allocations: 8 kB / 0.518 GB, free: 9.363 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005132/0.5622, allocations: 135.8 kB / 0.5182 GB, free: 9.23 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003195/0.5625, allocations: 119.3 kB / 0.5183 GB, free: 9.102 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.746e-05/0.5626, allocations: 19.98 kB / 0.5183 GB, free: 9.082 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003667/0.5662, allocations: 5.076 MB / 0.5233 GB, free: 3.555 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.908e-06/0.5663, allocations: 16 kB / 0.5233 GB, free: 3.539 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003378/0.5697, allocations: 1.942 MB / 0.5252 GB, free: 1.27 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001817/0.5699, allocations: 156.3 kB / 0.5253 GB, free: 1.098 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.674e-05/0.57, allocations: 8 kB / 0.5253 GB, free: 1.09 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000448/0.5704, allocations: 19.88 kB / 0.5253 GB, free: 1.07 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001336/0.5706, allocations: 85.8 kB / 0.5254 GB, free: 0.9883 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.734e-05/0.5706, allocations: 32 kB / 0.5255 GB, free: 0.957 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0002207/0.5708, allocations: 198 kB / 0.5256 GB, free: 0.7695 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5708, allocations: 0 / 0.5256 GB, free: 0.7695 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001154/0.572, allocations: 244.2 kB / 0.5259 GB, free: 0.5312 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.004696/0.5767, allocations: 4.751 MB / 0.5305 GB, free: 11.52 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001822/0.5786, allocations: 1.06 MB / 0.5316 GB, free: 10.43 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 6.362e-06/0.5786, allocations: 0 / 0.5316 GB, free: 10.43 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008828/0.5795, allocations: 0.73 MB / 0.5323 GB, free: 9.664 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004934/0.58, allocations: 44.72 kB / 0.5323 GB, free: 9.621 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002536/0.5825, allocations: 1.205 MB / 0.5335 GB, free: 8.27 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005548/0.5831, allocations: 0.9321 MB / 0.5344 GB, free: 7.309 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0005687/0.5837, allocations: 104.9 kB / 0.5345 GB, free: 7.207 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003404/0.584, allocations: 260.2 kB / 0.5347 GB, free: 6.953 MB / 410.7 MB Notification: Performance of SimCode: time 6.82e-07/0.584, allocations: 1.594 kB / 0.5347 GB, free: 6.953 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03598/0.62, allocations: 11.19 MB / 0.5457 GB, free: 11.87 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002285/0.6203, allocations: 164.2 kB / 0.5458 GB, free: 11.68 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.368/2.988, allocations: 0 / 0.5458 GB, free: 11.68 MB / 426.7 MB (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_Leakage_CylinderLeakage_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_Leakage_CylinderLeakage.fmu > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage_res.mat does not exist to compare? outputFormat=mat