Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.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.ToroidalCoreAirgap,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap",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.001185/0.001185, allocations: 179.7 kB / 16.38 MB, free: 5.766 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.289/1.289, allocations: 223.2 MB / 240.3 MB, free: 11.9 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008669/0.0008669, allocations: 99.09 kB / 291.5 MB, free: 10.91 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002832/0.0002832, allocations: 7.938 kB / 351.2 MB, free: 15.21 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2394/0.2397, allocations: 50.4 MB / 401.6 MB, free: 32.58 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09825/0.338, allocations: 80.93 MB / 482.5 MB, free: 15.54 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003386/0.3385, allocations: 89.19 kB / 482.6 MB, free: 15.45 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02251/0.361, allocations: 8.308 MB / 490.9 MB, free: 7.113 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.347e-06/0.3611, allocations: 0 / 490.9 MB, free: 7.113 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.231e-05/0.3611, allocations: 11.94 kB / 490.9 MB, free: 7.102 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.0009875/0.3621, allocations: 0.5933 MB / 491.5 MB, free: 6.461 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.389e-05/0.3621, allocations: 8.031 kB / 491.5 MB, free: 6.453 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.629e-05/0.3622, allocations: 66.53 kB / 491.6 MB, free: 6.379 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.567e-05/0.3623, allocations: 35.62 kB / 491.6 MB, free: 6.344 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003335/0.3626, allocations: 271.1 kB / 491.9 MB, free: 6.039 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.614e-05/0.3627, allocations: 32.64 kB / 491.9 MB, free: 6.008 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.498e-05/0.3627, allocations: 28 kB / 492 MB, free: 5.98 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005547/0.3633, allocations: 294 kB / 492.2 MB, free: 5.688 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.748e-06/0.3633, allocations: 0 / 492.2 MB, free: 5.688 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.791e-05/0.3633, allocations: 15.95 kB / 492.3 MB, free: 5.672 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.017e-06/0.3634, allocations: 4 kB / 492.3 MB, free: 5.668 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005879/0.3639, allocations: 270.5 kB / 492.5 MB, free: 5.406 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00181/0.3658, allocations: 1.132 MB / 493.7 MB, free: 4.176 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000403/0.3662, allocations: 154.5 kB / 493.8 MB, free: 4.016 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.216e-05/0.3662, allocations: 7.984 kB / 493.8 MB, free: 4.008 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.906e-05/0.3663, allocations: 30.56 kB / 493.8 MB, free: 3.969 MB / 362.7 MB Notification: Performance of pre-optimization done (n=17): time 4.068e-06/0.3663, allocations: 4 kB / 493.8 MB, free: 3.965 MB / 362.7 MB Notification: Performance of matching and sorting (n=22): time 0.002121/0.3684, allocations: 0.6821 MB / 494.5 MB, free: 3.27 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.521e-05/0.3685, allocations: 59.59 kB / 494.6 MB, free: 3.199 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002393/0.3687, allocations: 225.8 kB / 494.8 MB, free: 2.977 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.461e-05/0.3688, allocations: 33.7 kB / 494.8 MB, free: 2.938 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001332/0.3689, allocations: 219.5 kB / 495.1 MB, free: 2.719 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.435e-05/0.3689, allocations: 82.92 kB / 495.1 MB, free: 2.637 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.369e-05/0.369, allocations: 4 kB / 495.1 MB, free: 2.633 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001357/0.3691, allocations: 342.8 kB / 495.5 MB, free: 2.289 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002739/0.3694, allocations: 99.94 kB / 495.6 MB, free: 2.191 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003342/0.3697, allocations: 200.4 kB / 495.8 MB, free: 1.949 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003008/0.37, allocations: 130.7 kB / 495.9 MB, free: 1.824 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.974e-06/0.3701, allocations: 4 kB / 495.9 MB, free: 1.82 MB / 362.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0008545/0.371, allocations: 413.5 kB / 496.3 MB, free: 1.406 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.053e-05/0.371, allocations: 8 kB / 496.3 MB, free: 1.398 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.317e-06/0.371, allocations: 4 kB / 496.3 MB, free: 1.395 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002569/0.3713, allocations: 61.67 kB / 496.4 MB, free: 1.328 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003396/0.3716, allocations: 83.84 kB / 496.5 MB, free: 1.246 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002121/0.3738, allocations: 2.651 MB / 499.1 MB, free: 14.32 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000326/0.3741, allocations: 23.98 kB / 499.1 MB, free: 14.3 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.378e-05/0.3741, allocations: 16 kB / 499.1 MB, free: 14.28 MB / 378.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 () * Number of clocked 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 0.0001842/0.3743, allocations: 149.4 kB / 499.3 MB, free: 14.13 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.789e-05/0.3744, allocations: 19.78 kB / 499.3 MB, free: 14.11 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.204e-05/0.3745, allocations: 42.12 kB / 499.4 MB, free: 14.06 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.27e-06/0.3745, allocations: 4 kB / 499.4 MB, free: 14.06 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.402e-06/0.3745, allocations: 3.938 kB / 499.4 MB, free: 14.05 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.839e-06/0.3745, allocations: 3.984 kB / 499.4 MB, free: 14.05 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000358/0.3749, allocations: 325.6 kB / 499.7 MB, free: 13.69 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/0.3749, allocations: 0 / 499.7 MB, free: 13.69 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002197/0.3751, allocations: 43.97 kB / 499.7 MB, free: 13.64 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001503/0.3753, allocations: 57.67 kB / 499.8 MB, free: 13.58 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.674e-05/0.3753, allocations: 8 kB / 499.8 MB, free: 13.57 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001822/0.3771, allocations: 2.648 MB / 0.4907 GB, free: 10.67 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.554e-06/0.3771, allocations: 0 / 0.4907 GB, free: 10.67 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007072/0.3778, allocations: 397.4 kB / 0.491 GB, free: 10.26 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.059e-05/0.3779, allocations: 100.8 kB / 0.4911 GB, free: 10.14 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.867e-05/0.378, allocations: 4 kB / 0.4911 GB, free: 10.14 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002222/0.3782, allocations: 27.98 kB / 0.4912 GB, free: 10.11 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.548e-05/0.3783, allocations: 19.91 kB / 0.4912 GB, free: 10.09 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.433e-05/0.3783, allocations: 8 kB / 0.4912 GB, free: 10.09 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001604/0.3785, allocations: 182 kB / 0.4914 GB, free: 9.91 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3785, allocations: 0 / 0.4914 GB, free: 9.91 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003966/0.3789, allocations: 76 kB / 0.4914 GB, free: 9.836 MB / 378.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 () * Number of clocked 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.001022/0.3799, allocations: 0.9284 MB / 0.4923 GB, free: 8.871 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0009158/0.3808, allocations: 0.4946 MB / 0.4928 GB, free: 8.352 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.3808, allocations: 0 / 0.4928 GB, free: 8.352 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004818/0.3813, allocations: 358.1 kB / 0.4932 GB, free: 7.977 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002747/0.3816, allocations: 32.36 kB / 0.4932 GB, free: 7.941 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003484/0.3851, allocations: 3.684 MB / 0.4968 GB, free: 4.156 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000354/0.3855, allocations: 0.7831 MB / 0.4976 GB, free: 3.344 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001451/0.3856, allocations: 26.28 kB / 0.4976 GB, free: 3.32 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001412/0.3858, allocations: 103.4 kB / 0.4977 GB, free: 3.219 MB / 378.7 MB Notification: Performance of SimCode: time 7.01e-07/0.3858, allocations: 0 / 0.4977 GB, free: 3.219 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1924/0.5782, allocations: 5.053 MB / 0.5026 GB, free: 100.6 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001635/0.5784, allocations: 225.3 kB / 0.5028 GB, free: 100.4 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.914/2.492, allocations: 0 / 0.5028 GB, free: 100.4 MB / 378.7 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap_fmu --startTime=0 --stopTime=0.05 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap.fmu > Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap_res.mat does not exist to compare? outputFormat=mat