Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.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.BasicExamples.QuadraticCoreAirgap,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_QuadraticCoreAirgap",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_QuadraticCoreAirgap",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.001247/0.001247, allocations: 175.1 kB / 13.63 MB, free: 1.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.462/1.462, allocations: 221.3 MB / 235.5 MB, free: 2.969 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.0008522/0.0008522, allocations: 87.23 kB / 286.5 MB, free: 260 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.532e-05/2.543e-05, allocations: 4 kB / 343.9 MB, free: 4.234 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1053/0.1054, allocations: 50.41 MB / 394.4 MB, free: 1.777 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3448/0.4503, allocations: 88.16 MB / 482.5 MB, free: 15.34 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002624/0.4506, allocations: 95.94 kB / 482.6 MB, free: 15.25 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.08583/0.5364, allocations: 35.52 MB / 0.506 GB, free: 11.27 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.442e-06/0.5365, allocations: 0 / 0.506 GB, free: 11.27 MB / 394.7 MB Notification: Performance of Transformations before backend: time 2.666e-05/0.5365, allocations: 19.94 kB / 0.506 GB, free: 11.25 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 328 * Number of variables: 328 Notification: Performance of Generate backend data structure: time 0.004774/0.5413, allocations: 1.488 MB / 0.5075 GB, free: 9.715 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.19e-05/0.5414, allocations: 8.031 kB / 0.5075 GB, free: 9.707 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003522/0.5418, allocations: 194.2 kB / 0.5076 GB, free: 9.508 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003085/0.5449, allocations: 450.2 kB / 0.5081 GB, free: 9.066 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004543/0.5453, allocations: 301.6 kB / 0.5084 GB, free: 8.73 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001065/0.5454, allocations: 102.6 kB / 0.5085 GB, free: 8.629 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002602/0.5457, allocations: 123.9 kB / 0.5086 GB, free: 8.508 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002339/0.5481, allocations: 1.233 MB / 0.5098 GB, free: 7.242 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.065e-05/0.5481, allocations: 0 / 0.5098 GB, free: 7.242 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001266/0.5482, allocations: 55.95 kB / 0.5098 GB, free: 7.188 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.84e-05/0.5483, allocations: 32 kB / 0.5099 GB, free: 7.156 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002066/0.5504, allocations: 1.084 MB / 0.5109 GB, free: 6.066 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007542/0.5579, allocations: 4.26 MB / 0.5151 GB, free: 1.602 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002846/0.5608, allocations: 2.237 MB / 0.5173 GB, free: 15.11 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009407/0.5618, allocations: 0.504 MB / 0.5178 GB, free: 14.61 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002071/0.562, allocations: 114.1 kB / 0.5179 GB, free: 14.48 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.493e-05/0.5621, allocations: 47.56 kB / 0.5179 GB, free: 14.42 MB / 410.7 MB Notification: Performance of pre-optimization done (n=122): time 5.009e-06/0.5621, allocations: 4 kB / 0.5179 GB, free: 14.41 MB / 410.7 MB Notification: Performance of matching and sorting (n=125): time 0.007351/0.5695, allocations: 2.776 MB / 0.5206 GB, free: 11.58 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.497e-05/0.5696, allocations: 90.11 kB / 0.5207 GB, free: 11.48 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004453/0.57, allocations: 347.4 kB / 0.521 GB, free: 11.13 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 6.709e-05/0.5701, allocations: 45.7 kB / 0.5211 GB, free: 11.08 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002828/0.5704, allocations: 451 kB / 0.5215 GB, free: 10.63 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003356/0.5707, allocations: 433.7 kB / 0.5219 GB, free: 10.2 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.091e-05/0.5708, allocations: 24 kB / 0.522 GB, free: 10.18 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001934/0.571, allocations: 378.8 kB / 0.5223 GB, free: 9.797 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006426/0.5716, allocations: 351.9 kB / 0.5227 GB, free: 9.453 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008618/0.5725, allocations: 0.6087 MB / 0.5233 GB, free: 8.734 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007847/0.5733, allocations: 457 kB / 0.5237 GB, free: 8.293 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.821e-06/0.5733, allocations: 4 kB / 0.5237 GB, free: 8.289 MB / 410.7 MB Notification: Performance of matching and sorting (n=170) (initialization): time 0.002296/0.5756, allocations: 1.302 MB / 0.525 GB, free: 6.973 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.913e-05/0.5757, allocations: 9.25 kB / 0.525 GB, free: 6.965 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.437e-05/0.5757, allocations: 4 kB / 0.525 GB, free: 6.961 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005948/0.5763, allocations: 197.7 kB / 0.5252 GB, free: 6.762 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001299/0.5776, allocations: 307.5 kB / 0.5255 GB, free: 6.461 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004328/0.5819, allocations: 3.966 MB / 0.5293 GB, free: 2.227 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001045/0.583, allocations: 95.91 kB / 0.5294 GB, free: 2.133 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.985e-05/0.5831, allocations: 55.98 kB / 0.5295 GB, free: 2.078 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 33 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (146): * Single equations (assignments): 144 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 12,(1,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002548/0.5834, allocations: 183 kB / 0.5296 GB, free: 1.895 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001302/0.5835, allocations: 63.25 kB / 0.5297 GB, free: 1.832 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002384/0.5859, allocations: 1.198 MB / 0.5309 GB, free: 0.625 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.718e-06/0.5859, allocations: 12 kB / 0.5309 GB, free: 0.6133 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.443e-06/0.5859, allocations: 4 kB / 0.5309 GB, free: 0.6094 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.35e-05/0.586, allocations: 11.97 kB / 0.5309 GB, free: 0.5977 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004246/0.5902, allocations: 2.369 MB / 0.5332 GB, free: 14.15 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.222e-06/0.5902, allocations: 0 / 0.5332 GB, free: 14.15 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001034/0.5913, allocations: 231.8 kB / 0.5334 GB, free: 13.92 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005026/0.5918, allocations: 170 kB / 0.5336 GB, free: 13.75 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.726e-05/0.5919, allocations: 31.98 kB / 0.5336 GB, free: 13.72 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003835/0.5958, allocations: 3.763 MB / 0.5373 GB, free: 9.688 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.907e-06/0.5958, allocations: 7.984 kB / 0.5373 GB, free: 9.68 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003052/0.5988, allocations: 1.682 MB / 0.539 GB, free: 7.941 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005114/0.5994, allocations: 224.2 kB / 0.5392 GB, free: 7.703 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001076/0.5995, allocations: 24 kB / 0.5392 GB, free: 7.68 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008042/0.6003, allocations: 76 kB / 0.5393 GB, free: 7.605 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002584/0.6006, allocations: 92.81 kB / 0.5394 GB, free: 7.512 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.969e-05/0.6006, allocations: 39.98 kB / 0.5394 GB, free: 7.473 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0004093/0.6011, allocations: 254.5 kB / 0.5396 GB, free: 7.223 MB / 426.7 MB Notification: Performance of sort global known variables: time 5.91e-07/0.6011, allocations: 0 / 0.5396 GB, free: 7.223 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001405/0.6025, allocations: 320.1 kB / 0.5399 GB, free: 6.91 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 1 (voltageSensor.pin_p.reference.gamma) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (106): * Single equations (assignments): 104 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 10,(1,100.0%) 10} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003564/0.6061, allocations: 2.61 MB / 0.5425 GB, free: 4.246 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.002366/0.6084, allocations: 1.293 MB / 0.5438 GB, free: 2.926 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 7.253e-06/0.6085, allocations: 4.562 kB / 0.5438 GB, free: 2.922 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001181/0.6097, allocations: 0.7914 MB / 0.5445 GB, free: 2.105 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004471/0.6101, allocations: 57.66 kB / 0.5446 GB, free: 2.051 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003788/0.6139, allocations: 1.54 MB / 0.5461 GB, free: 472 kB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2442/0.8581, allocations: 1.02 MB / 0.5471 GB, free: 112 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0009726/0.8592, allocations: 148.4 kB / 0.5472 GB, free: 111.9 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007541/0.8599, allocations: 357 kB / 0.5476 GB, free: 111.9 MB / 426.7 MB Notification: Performance of SimCode: time 1.633e-06/0.8599, allocations: 0 / 0.5476 GB, free: 111.9 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04481/0.9048, allocations: 16.57 MB / 0.5638 GB, free: 111.3 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001547/0.905, allocations: 211.7 kB / 0.564 GB, free: 111.1 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.678/3.583, allocations: 0 / 0.564 GB, free: 111.1 MB / 426.7 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_QuadraticCoreAirgap_fmu --startTime=0 --stopTime=0.05 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_QuadraticCoreAirgap.fmu > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap_res.mat does not exist to compare? outputFormat=mat