Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.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.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_ToroidalCoreQuadraticCrossSection",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_ToroidalCoreQuadraticCrossSection",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.001442/0.001442, allocations: 177.1 kB / 13.64 MB, free: 1.676 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.354/1.354, allocations: 221.4 MB / 235.5 MB, free: 2.895 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.0008685/0.0008683, allocations: 94.36 kB / 286.5 MB, free: 180 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.774e-05/2.775e-05, allocations: 3.984 kB / 343.9 MB, free: 4.203 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1073/0.1073, allocations: 50.42 MB / 394.4 MB, free: 1.742 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3273/0.4347, allocations: 80.97 MB / 475.3 MB, free: 6.496 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002619/0.435, allocations: 83.95 kB / 475.4 MB, free: 6.414 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02379/0.4588, allocations: 8.376 MB / 483.8 MB, free: 14.02 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.192e-06/0.4588, allocations: 0 / 483.8 MB, free: 14.02 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.162e-05/0.4589, allocations: 12 kB / 483.8 MB, free: 14.01 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: 79 * Number of variables: 79 Notification: Performance of Generate backend data structure: time 0.001013/0.4599, allocations: 0.5849 MB / 484.4 MB, free: 13.38 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.001e-05/0.4599, allocations: 12.03 kB / 484.4 MB, free: 13.37 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001033/0.4601, allocations: 66.53 kB / 484.5 MB, free: 13.3 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.763e-05/0.4601, allocations: 39.53 kB / 484.5 MB, free: 13.26 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004127/0.4606, allocations: 268.2 kB / 484.8 MB, free: 12.95 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.655e-05/0.4606, allocations: 24.78 kB / 484.8 MB, free: 12.93 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.22e-05/0.4607, allocations: 32 kB / 484.8 MB, free: 12.9 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004767/0.4612, allocations: 259.7 kB / 485.1 MB, free: 12.64 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.361e-05/0.4612, allocations: 7.938 kB / 485.1 MB, free: 12.63 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.276e-05/0.4612, allocations: 15.95 kB / 485.1 MB, free: 12.61 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.732e-05/0.4613, allocations: 11.98 kB / 485.1 MB, free: 12.6 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003753/0.4616, allocations: 203.1 kB / 485.3 MB, free: 12.4 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001798/0.4634, allocations: 1.136 MB / 486.4 MB, free: 11.16 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002465/0.4637, allocations: 131.8 kB / 486.6 MB, free: 11.02 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.965e-05/0.4638, allocations: 52.86 kB / 486.6 MB, free: 10.97 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.099e-05/0.4639, allocations: 4 kB / 486.6 MB, free: 10.96 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.031e-05/0.4639, allocations: 34.56 kB / 486.7 MB, free: 10.92 MB / 362.7 MB Notification: Performance of pre-optimization done (n=17): time 1.663e-06/0.4639, allocations: 0 / 486.7 MB, free: 10.92 MB / 362.7 MB Notification: Performance of matching and sorting (n=22): time 0.001574/0.4655, allocations: 0.5093 MB / 487.2 MB, free: 10.4 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.359e-05/0.4655, allocations: 55.59 kB / 487.2 MB, free: 10.33 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002714/0.4658, allocations: 247 kB / 487.5 MB, free: 10.08 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.911e-05/0.4658, allocations: 29.7 kB / 487.5 MB, free: 10.04 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001453/0.466, allocations: 231.5 kB / 487.7 MB, free: 9.812 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.36e-05/0.466, allocations: 74.92 kB / 487.8 MB, free: 9.738 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.606e-05/0.4661, allocations: 4 kB / 487.8 MB, free: 9.734 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001343/0.4662, allocations: 342.9 kB / 488.1 MB, free: 9.391 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001265/0.4663, allocations: 71.98 kB / 488.2 MB, free: 9.32 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001933/0.4665, allocations: 168.2 kB / 488.4 MB, free: 9.109 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001557/0.4667, allocations: 89.14 kB / 488.4 MB, free: 9.023 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.543e-06/0.4667, allocations: 0 / 488.4 MB, free: 9.023 MB / 362.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0005252/0.4672, allocations: 345.2 kB / 488.8 MB, free: 8.676 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.985e-05/0.4673, allocations: 4 kB / 488.8 MB, free: 8.672 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.428e-06/0.4673, allocations: 4 kB / 488.8 MB, free: 8.668 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002908/0.4676, allocations: 66.05 kB / 488.9 MB, free: 8.598 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003294/0.4679, allocations: 75.89 kB / 488.9 MB, free: 8.523 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002019/0.4699, allocations: 2.636 MB / 491.6 MB, free: 5.625 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002821/0.4702, allocations: 27.97 kB / 491.6 MB, free: 5.598 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.532e-05/0.4703, allocations: 16 kB / 491.6 MB, free: 5.582 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (37): * Single equations (assignments): 35 * 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%) 2,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.463e-05/0.4704, allocations: 126.3 kB / 491.7 MB, free: 5.453 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.881e-05/0.4704, allocations: 23.72 kB / 491.8 MB, free: 5.43 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.057e-05/0.4705, allocations: 37.91 kB / 491.8 MB, free: 5.391 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.803e-06/0.4705, allocations: 0 / 491.8 MB, free: 5.391 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.528e-06/0.4705, allocations: 4 kB / 491.8 MB, free: 5.387 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.476e-06/0.4706, allocations: 4.078 kB / 491.8 MB, free: 5.383 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003567/0.4709, allocations: 333.6 kB / 492.1 MB, free: 5.008 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.717e-06/0.4709, allocations: 3.984 kB / 492.1 MB, free: 5.004 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002236/0.4712, allocations: 51.97 kB / 492.2 MB, free: 4.953 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001609/0.4713, allocations: 53.67 kB / 492.2 MB, free: 4.895 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.645e-05/0.4714, allocations: 0 / 492.2 MB, free: 4.895 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001953/0.4733, allocations: 2.636 MB / 494.9 MB, free: 1.984 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.916e-06/0.4733, allocations: 7.969 kB / 494.9 MB, free: 1.977 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004364/0.4738, allocations: 318.1 kB / 495.2 MB, free: 1.645 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.053e-05/0.4739, allocations: 100.8 kB / 495.3 MB, free: 1.527 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.798e-05/0.4739, allocations: 8 kB / 495.3 MB, free: 1.52 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002109/0.4741, allocations: 15.98 kB / 495.3 MB, free: 1.504 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.822e-05/0.4742, allocations: 19.97 kB / 495.3 MB, free: 1.484 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.325e-05/0.4742, allocations: 4 kB / 495.3 MB, free: 1.48 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002036/0.4745, allocations: 191.1 kB / 495.5 MB, free: 1.297 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4745, allocations: 4 kB / 495.5 MB, free: 1.293 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003871/0.4749, allocations: 76 kB / 495.6 MB, free: 1.219 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (18): * Single equations (assignments): 16 * 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%) 2,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007725/0.4756, allocations: 0.8728 MB / 496.5 MB, free: 324 kB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.000683/0.4763, allocations: 417.8 kB / 496.9 MB, free: 15.88 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.346e-06/0.4764, allocations: 3.938 kB / 496.9 MB, free: 15.88 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003685/0.4767, allocations: 321.2 kB / 497.2 MB, free: 15.54 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002928/0.477, allocations: 34.28 kB / 497.2 MB, free: 15.51 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009698/0.478, allocations: 402.9 kB / 497.6 MB, free: 15.08 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003477/0.4784, allocations: 0.783 MB / 498.4 MB, free: 14.27 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001404/0.4785, allocations: 26.11 kB / 498.4 MB, free: 14.25 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001501/0.4787, allocations: 103.4 kB / 498.5 MB, free: 14.15 MB / 378.7 MB Notification: Performance of SimCode: time 1.042e-06/0.4787, allocations: 0 / 498.5 MB, free: 14.15 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02723/0.5059, allocations: 5.218 MB / 0.4919 GB, free: 9.164 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000337/0.5063, allocations: 221.9 kB / 0.4922 GB, free: 8.934 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.99/2.497, allocations: 0 / 0.4922 GB, free: 8.934 MB / 378.7 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_ToroidalCoreQuadraticCrossSection_fmu --startTime=0 --stopTime=0.05 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_ToroidalCoreQuadraticCrossSection.fmu > Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection_res.mat does not exist to compare? outputFormat=mat