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.001449/0.001449, allocations: 175 kB / 8.349 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.468/1.468, allocations: 221.5 MB / 230.3 MB, free: 7.574 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.0009905/0.0009906, allocations: 97.86 kB / 281.2 MB, free: 5.328 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.618e-05/1.619e-05, allocations: 4 kB / 337.1 MB, free: 9.922 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1175/0.1176, allocations: 50.42 MB / 387.6 MB, free: 7.469 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4038/0.5215, allocations: 87.5 MB / 475.1 MB, free: 7.164 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000281/0.5218, allocations: 87.94 kB / 475.2 MB, free: 7.078 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.08179/0.6036, allocations: 35.12 MB / 0.4983 GB, free: 3.512 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.453e-06/0.6037, allocations: 0 / 0.4983 GB, free: 3.512 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.657e-05/0.6037, allocations: 20 kB / 0.4983 GB, free: 3.492 MB / 378.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.004363/0.6081, allocations: 1.48 MB / 0.4998 GB, free: 1.965 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.471e-05/0.6081, allocations: 12.03 kB / 0.4998 GB, free: 1.953 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002933/0.6111, allocations: 458.2 kB / 0.5002 GB, free: 1.504 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003764/0.6115, allocations: 293.7 kB / 0.5005 GB, free: 1.176 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.293e-05/0.6116, allocations: 48 kB / 0.5006 GB, free: 1.129 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00021/0.6118, allocations: 75.91 kB / 0.5006 GB, free: 1.055 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001851/0.6137, allocations: 1.024 MB / 0.5016 GB, free: 28 kB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001901/0.6156, allocations: 1.033 MB / 0.5026 GB, free: 14.96 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.701e-05/0.6156, allocations: 3.953 kB / 0.5026 GB, free: 14.96 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.836e-05/0.6157, allocations: 0 / 0.5026 GB, free: 14.96 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.08e-05/0.6157, allocations: 32 kB / 0.5027 GB, free: 14.93 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00656/0.6223, allocations: 4.061 MB / 0.5066 GB, free: 10.68 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002274/0.6246, allocations: 2.196 MB / 0.5088 GB, free: 8.238 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000786/0.6254, allocations: 489.4 kB / 0.5092 GB, free: 7.758 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001684/0.6256, allocations: 102.4 kB / 0.5093 GB, free: 7.641 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.152e-05/0.6257, allocations: 51.88 kB / 0.5094 GB, free: 7.582 MB / 394.7 MB Notification: Performance of pre-optimization done (n=122): time 2.796e-06/0.6257, allocations: 0 / 0.5094 GB, free: 7.582 MB / 394.7 MB Notification: Performance of matching and sorting (n=125): time 0.007082/0.6328, allocations: 2.904 MB / 0.5122 GB, free: 4.617 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.959e-05/0.6328, allocations: 94.42 kB / 0.5123 GB, free: 4.508 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003558/0.6332, allocations: 318.1 kB / 0.5126 GB, free: 4.188 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 5.665e-05/0.6333, allocations: 25.7 kB / 0.5126 GB, free: 4.156 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002558/0.6335, allocations: 447 kB / 0.5131 GB, free: 3.711 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002697/0.6338, allocations: 409.7 kB / 0.5135 GB, free: 3.305 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.222e-05/0.6339, allocations: 0 / 0.5135 GB, free: 3.305 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001533/0.634, allocations: 370.8 kB / 0.5138 GB, free: 2.934 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005221/0.6346, allocations: 331.9 kB / 0.5141 GB, free: 2.609 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006978/0.6353, allocations: 0.5774 MB / 0.5147 GB, free: 1.926 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001448/0.6367, allocations: 0.6151 MB / 0.5153 GB, free: 1.309 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.669e-06/0.6367, allocations: 0 / 0.5153 GB, free: 1.309 MB / 394.7 MB Notification: Performance of matching and sorting (n=170) (initialization): time 0.002701/0.6394, allocations: 1.396 MB / 0.5167 GB, free: 15.9 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.116e-05/0.6395, allocations: 8.312 kB / 0.5167 GB, free: 15.89 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.763e-05/0.6395, allocations: 12 kB / 0.5167 GB, free: 15.88 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000497/0.64, allocations: 175.2 kB / 0.5168 GB, free: 15.7 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001265/0.6413, allocations: 303.6 kB / 0.5171 GB, free: 15.41 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003695/0.645, allocations: 3.826 MB / 0.5209 GB, free: 11.35 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009326/0.646, allocations: 63.88 kB / 0.5209 GB, free: 11.29 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.51e-05/0.6461, allocations: 64.05 kB / 0.521 GB, free: 11.23 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.0001998/0.6463, allocations: 131.7 kB / 0.5211 GB, free: 11.09 MB / 410.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002378/0.6487, allocations: 1.142 MB / 0.5222 GB, free: 9.938 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001167/0.6488, allocations: 67.23 kB / 0.5223 GB, free: 9.871 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002631/0.6514, allocations: 1.303 MB / 0.5236 GB, free: 8.559 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.112e-05/0.6515, allocations: 15.98 kB / 0.5236 GB, free: 8.543 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.442e-06/0.6515, allocations: 4 kB / 0.5236 GB, free: 8.539 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.506e-05/0.6515, allocations: 7.969 kB / 0.5236 GB, free: 8.531 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004181/0.6557, allocations: 2.345 MB / 0.5259 GB, free: 6.121 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.859e-06/0.6557, allocations: 0 / 0.5259 GB, free: 6.121 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001009/0.6567, allocations: 231.8 kB / 0.5261 GB, free: 5.895 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003924/0.6571, allocations: 165.7 kB / 0.5263 GB, free: 5.727 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.441e-05/0.6572, allocations: 7.984 kB / 0.5263 GB, free: 5.719 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003185/0.6604, allocations: 3.628 MB / 0.5298 GB, free: 1.855 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.156e-06/0.6604, allocations: 0 / 0.5298 GB, free: 1.855 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002992/0.6634, allocations: 1.806 MB / 0.5316 GB, free: 15.99 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003613/0.6638, allocations: 228.2 kB / 0.5318 GB, free: 15.75 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.91e-05/0.6639, allocations: 0 / 0.5318 GB, free: 15.75 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000702/0.6646, allocations: 60 kB / 0.5319 GB, free: 15.69 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001725/0.6648, allocations: 89.14 kB / 0.5319 GB, free: 15.6 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.931e-05/0.6649, allocations: 35.98 kB / 0.532 GB, free: 15.57 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0002445/0.6651, allocations: 236.5 kB / 0.5322 GB, free: 15.34 MB / 426.7 MB Notification: Performance of sort global known variables: time 4.51e-07/0.6651, allocations: 4 kB / 0.5322 GB, free: 15.34 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001084/0.6662, allocations: 252.1 kB / 0.5324 GB, free: 15.09 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.003575/0.6698, allocations: 2.692 MB / 0.5351 GB, free: 12.34 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001874/0.6717, allocations: 1.204 MB / 0.5362 GB, free: 11.11 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 6.442e-06/0.6717, allocations: 2.047 kB / 0.5363 GB, free: 11.11 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009826/0.6727, allocations: 0.754 MB / 0.537 GB, free: 10.34 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003874/0.6731, allocations: 29.17 kB / 0.537 GB, free: 10.31 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003398/0.6765, allocations: 1.422 MB / 0.5384 GB, free: 8.836 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005838/0.6771, allocations: 1.029 MB / 0.5394 GB, free: 7.777 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.00078/0.6779, allocations: 146.6 kB / 0.5395 GB, free: 7.629 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004987/0.6784, allocations: 355.3 kB / 0.5399 GB, free: 7.281 MB / 426.7 MB Notification: Performance of SimCode: time 1.162e-06/0.6784, allocations: 4 kB / 0.5399 GB, free: 7.277 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2833/0.9617, allocations: 15.14 MB / 0.5547 GB, free: 114.7 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000163/0.962, allocations: 177.4 kB / 0.5548 GB, free: 114.6 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.527/3.489, allocations: 6.578 kB / 0.5548 GB, free: 114.6 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