Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor.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.SaturatedInductor,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_SaturatedInductor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_SaturatedInductor",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.0009979/0.0009982, allocations: 181.3 kB / 16.39 MB, free: 5.762 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.389/1.389, allocations: 223.2 MB / 240.3 MB, free: 10.14 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.0009211/0.0009211, allocations: 93.45 kB / 291.5 MB, free: 10.67 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002445/0.0002444, allocations: 8 kB / 351.2 MB, free: 14.98 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2216/0.2219, allocations: 50.41 MB / 401.6 MB, free: 32.52 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09508/0.317, allocations: 81.18 MB / 482.8 MB, free: 15.22 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002006/0.3172, allocations: 79.95 kB / 482.8 MB, free: 15.14 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02014/0.3374, allocations: 7.189 MB / 490 MB, free: 7.918 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.274e-06/0.3374, allocations: 3.938 kB / 490 MB, free: 7.914 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.945e-05/0.3374, allocations: 4 kB / 490 MB, free: 7.91 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: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.0009669/0.3384, allocations: 0.5617 MB / 490.6 MB, free: 7.301 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.62e-05/0.3385, allocations: 8.031 kB / 490.6 MB, free: 7.293 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.956e-05/0.3386, allocations: 62.53 kB / 490.7 MB, free: 7.223 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.016e-05/0.3386, allocations: 35.62 kB / 490.7 MB, free: 7.188 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003804/0.339, allocations: 255.1 kB / 491 MB, free: 6.898 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.556e-05/0.3391, allocations: 24.5 kB / 491 MB, free: 6.875 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.163e-05/0.3391, allocations: 24 kB / 491 MB, free: 6.852 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005143/0.3396, allocations: 248.9 kB / 491.2 MB, free: 6.605 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.104e-05/0.3397, allocations: 0 / 491.2 MB, free: 6.605 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.793e-05/0.3397, allocations: 15.95 kB / 491.3 MB, free: 6.59 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.874e-06/0.3397, allocations: 4 kB / 491.3 MB, free: 6.586 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004522/0.3402, allocations: 222.1 kB / 491.5 MB, free: 6.367 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00164/0.3418, allocations: 1.017 MB / 492.5 MB, free: 5.262 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004238/0.3423, allocations: 209.2 kB / 492.7 MB, free: 5.051 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.044e-05/0.3423, allocations: 4 kB / 492.7 MB, free: 5.047 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.521e-05/0.3423, allocations: 38.58 kB / 492.7 MB, free: 5 MB / 362.7 MB Notification: Performance of pre-optimization done (n=23): time 1.663e-06/0.3424, allocations: 8 kB / 492.8 MB, free: 4.992 MB / 362.7 MB Notification: Performance of matching and sorting (n=34): time 0.005151/0.3475, allocations: 1.509 MB / 494.3 MB, free: 3.41 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.664e-05/0.3476, allocations: 55.41 kB / 494.3 MB, free: 3.344 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002172/0.3478, allocations: 196.2 kB / 494.5 MB, free: 3.145 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.503e-05/0.3478, allocations: 33.7 kB / 494.5 MB, free: 3.105 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001087/0.348, allocations: 184.1 kB / 494.7 MB, free: 2.922 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.047e-05/0.3481, allocations: 114.3 kB / 494.8 MB, free: 2.809 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.979e-05/0.3481, allocations: 8 kB / 494.8 MB, free: 2.801 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001175/0.3482, allocations: 338.8 kB / 495.2 MB, free: 2.461 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002507/0.3485, allocations: 108 kB / 495.3 MB, free: 2.355 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002692/0.3487, allocations: 156.5 kB / 495.4 MB, free: 2.184 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000273/0.349, allocations: 133.6 kB / 495.6 MB, free: 2.055 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.349, allocations: 0 / 495.6 MB, free: 2.055 MB / 362.7 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.001699/0.3507, allocations: 0.5356 MB / 496.1 MB, free: 1.508 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.97e-05/0.3508, allocations: 4 kB / 496.1 MB, free: 1.504 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.464e-06/0.3508, allocations: 0 / 496.1 MB, free: 1.504 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001615/0.3524, allocations: 257.4 kB / 496.3 MB, free: 1.246 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002995/0.3527, allocations: 55.91 kB / 496.4 MB, free: 1.191 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004758/0.3575, allocations: 3.786 MB / 0.4885 GB, free: 13.14 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003048/0.3578, allocations: 16.06 kB / 0.4885 GB, free: 13.13 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.468e-05/0.3579, allocations: 16.41 kB / 0.4885 GB, free: 13.11 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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 (28): * Single equations (assignments): 26 * 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: 1 {(1,100.0%) 9} * Non-linear torn systems: 1 {1 7} Notification: Performance of prepare postOptimizeDAE: time 0.0002115/0.3581, allocations: 149.8 kB / 0.4886 GB, free: 12.96 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.282e-05/0.3582, allocations: 27.66 kB / 0.4887 GB, free: 12.93 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.779e-05/0.3583, allocations: 35.53 kB / 0.4887 GB, free: 12.89 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.522e-06/0.3583, allocations: 7.984 kB / 0.4887 GB, free: 12.89 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.254e-06/0.3583, allocations: 0 / 0.4887 GB, free: 12.89 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.333e-06/0.3583, allocations: 7.984 kB / 0.4887 GB, free: 12.88 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004808/0.3588, allocations: 385.4 kB / 0.4891 GB, free: 12.45 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.819e-06/0.3588, allocations: 0 / 0.4891 GB, free: 12.45 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002349/0.359, allocations: 47.84 kB / 0.4891 GB, free: 12.41 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001571/0.3606, allocations: 249.5 kB / 0.4894 GB, free: 12.16 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.207e-05/0.3607, allocations: 4 kB / 0.4894 GB, free: 12.15 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00437/0.3651, allocations: 3.682 MB / 0.493 GB, free: 8.199 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.366e-06/0.3651, allocations: 3.953 kB / 0.493 GB, free: 8.195 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00191/0.367, allocations: 0.7153 MB / 0.4937 GB, free: 7.457 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.27e-05/0.3671, allocations: 100.9 kB / 0.4938 GB, free: 7.34 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.877e-05/0.3672, allocations: 4 kB / 0.4938 GB, free: 7.336 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002511/0.3674, allocations: 20.05 kB / 0.4938 GB, free: 7.316 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.349e-05/0.3675, allocations: 27.95 kB / 0.4938 GB, free: 7.289 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.214e-05/0.3676, allocations: 8 kB / 0.4938 GB, free: 7.281 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001551/0.3677, allocations: 161 kB / 0.494 GB, free: 7.125 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3677, allocations: 0 / 0.494 GB, free: 7.125 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005747/0.3683, allocations: 104 kB / 0.4941 GB, free: 7.023 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (coil.i) * 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: 1 {(1,100.0%) 9} * Non-linear torn systems: 1 {1 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.002191/0.3705, allocations: 1.296 MB / 0.4953 GB, free: 5.695 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001032/0.3716, allocations: 0.5637 MB / 0.4959 GB, free: 5.105 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.326e-06/0.3716, allocations: 0 / 0.4959 GB, free: 5.105 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005694/0.3722, allocations: 433 kB / 0.4963 GB, free: 4.656 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002427/0.3724, allocations: 20.69 kB / 0.4963 GB, free: 4.637 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004101/0.3765, allocations: 2.588 MB / 0.4989 GB, free: 1.977 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003393/0.3769, allocations: 0.7879 MB / 0.4996 GB, free: 1.16 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001134/0.377, allocations: 22.28 kB / 0.4996 GB, free: 1.137 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001229/0.3771, allocations: 87.41 kB / 0.4997 GB, free: 1.051 MB / 378.7 MB Notification: Performance of SimCode: time 5.71e-07/0.3772, allocations: 0 / 0.4997 GB, free: 1.051 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1875/0.5647, allocations: 7.982 MB / 0.5075 GB, free: 100.2 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001449/0.5649, allocations: 230.2 kB / 0.5077 GB, free: 99.93 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.092/2.657, allocations: 0 / 0.5077 GB, free: 99.93 MB / 378.7 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_SaturatedInductor_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-07 Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_SaturatedInductor.fmu > Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor_res.mat does not exist to compare? outputFormat=mat