Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FluxTubes_Examples_SaturatedInductor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FluxTubes_Examples_SaturatedInductor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001017/0.001017, allocations: 172.2 kB / 14.1 MB, free: 1.223 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.372/1.372, allocations: 205.2 MB / 219.8 MB, free: 14.26 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008961/0.0008961, allocations: 86.64 kB / 268 MB, free: 14.1 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.351e-05/2.353e-05, allocations: 4 kB / 322.5 MB, free: 17.26 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0772/0.07724, allocations: 47.57 MB / 370.1 MB, free: 1.625 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2497/0.327, allocations: 79.17 MB / 449.3 MB, free: 14.1 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001905/0.3272, allocations: 69.28 kB / 449.3 MB, free: 14.06 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01794/0.3452, allocations: 6.928 MB / 456.3 MB, free: 8.211 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.643e-06/0.3452, allocations: 4 kB / 456.3 MB, free: 8.207 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.863e-05/0.3453, allocations: 8 kB / 456.3 MB, free: 8.199 MB / 330.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.0007344/0.346, allocations: 0.5258 MB / 456.8 MB, free: 7.648 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.679e-05/0.3461, allocations: 8.031 kB / 456.8 MB, free: 7.641 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.068e-05/0.3461, allocations: 65.59 kB / 456.9 MB, free: 7.586 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.349e-05/0.3462, allocations: 31.62 kB / 456.9 MB, free: 7.555 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003025/0.3465, allocations: 269.8 kB / 457.2 MB, free: 7.27 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.979e-05/0.3465, allocations: 24.2 kB / 457.2 MB, free: 7.254 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.112e-05/0.3466, allocations: 23.75 kB / 457.2 MB, free: 7.238 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003499/0.3469, allocations: 225.9 kB / 457.4 MB, free: 7.082 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.071e-05/0.3469, allocations: 3.984 kB / 457.4 MB, free: 7.078 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.308e-05/0.347, allocations: 19.5 kB / 457.5 MB, free: 7.07 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.836e-06/0.347, allocations: 11.98 kB / 457.5 MB, free: 7.059 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000295/0.3473, allocations: 191 kB / 457.7 MB, free: 6.934 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001358/0.3486, allocations: 1.011 MB / 458.7 MB, free: 6.02 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003295/0.349, allocations: 187.3 kB / 458.9 MB, free: 5.844 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000184/0.3492, allocations: 104.8 kB / 459 MB, free: 5.738 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.661e-05/0.3492, allocations: 8 kB / 459 MB, free: 5.73 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.046e-05/0.3493, allocations: 30.56 kB / 459 MB, free: 5.691 MB / 330.7 MB Notification: Performance of pre-optimization done (n=23): time 1.392e-06/0.3493, allocations: 0 / 459 MB, free: 5.691 MB / 330.7 MB Notification: Performance of matching and sorting (n=34): time 0.003665/0.3529, allocations: 1.217 MB / 460.2 MB, free: 4.414 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.949e-05/0.353, allocations: 55.41 kB / 460.3 MB, free: 4.348 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001904/0.3532, allocations: 200.8 kB / 460.5 MB, free: 4.148 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.547e-05/0.3532, allocations: 37.64 kB / 460.5 MB, free: 4.105 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000106/0.3533, allocations: 192.1 kB / 460.7 MB, free: 3.91 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.559e-05/0.3534, allocations: 106.4 kB / 460.8 MB, free: 3.805 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.603e-05/0.3534, allocations: 8 kB / 460.8 MB, free: 3.797 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001259/0.3536, allocations: 338.8 kB / 461.1 MB, free: 3.457 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001682/0.3537, allocations: 95.95 kB / 461.2 MB, free: 3.363 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002068/0.354, allocations: 161.4 kB / 461.4 MB, free: 3.184 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001928/0.3542, allocations: 113.5 kB / 461.5 MB, free: 3.074 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.252e-06/0.3542, allocations: 4 kB / 461.5 MB, free: 3.07 MB / 330.7 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.001396/0.3556, allocations: 0.5162 MB / 462 MB, free: 2.543 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.252e-05/0.3556, allocations: 8 kB / 462 MB, free: 2.535 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.67e-06/0.3556, allocations: 0 / 462 MB, free: 2.535 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007683/0.3564, allocations: 189.6 kB / 462.2 MB, free: 2.344 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002611/0.3567, allocations: 55.91 kB / 462.3 MB, free: 2.289 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004218/0.3609, allocations: 3.758 MB / 466 MB, free: 14.25 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002105/0.3611, allocations: 24.02 kB / 466 MB, free: 14.23 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.282e-05/0.3612, allocations: 8 kB / 466.1 MB, free: 14.22 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete 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 8.821e-05/0.3612, allocations: 124.9 kB / 466.2 MB, free: 14.09 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.194e-05/0.3613, allocations: 27.78 kB / 466.2 MB, free: 14.07 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.462e-05/0.3614, allocations: 43.08 kB / 466.2 MB, free: 14.03 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.477e-06/0.3614, allocations: 4 kB / 466.2 MB, free: 14.02 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.159e-06/0.3614, allocations: 3.953 kB / 466.3 MB, free: 14.02 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.667e-06/0.3614, allocations: 0 / 466.3 MB, free: 14.02 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001792/0.3632, allocations: 0.9455 MB / 467.2 MB, free: 13.01 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.324e-06/0.3632, allocations: 0 / 467.2 MB, free: 13.01 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001925/0.3634, allocations: 39.97 kB / 467.2 MB, free: 12.97 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007267/0.3642, allocations: 189.8 kB / 467.4 MB, free: 12.78 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.17e-05/0.3642, allocations: 8 kB / 467.4 MB, free: 12.77 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003866/0.3681, allocations: 3.752 MB / 471.2 MB, free: 8.754 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.452e-06/0.3681, allocations: 3.938 kB / 471.2 MB, free: 8.75 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001565/0.3697, allocations: 0.7142 MB / 471.9 MB, free: 8.004 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.768e-05/0.3698, allocations: 100.8 kB / 472 MB, free: 7.887 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.419e-05/0.3698, allocations: 12 kB / 472 MB, free: 7.875 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002166/0.37, allocations: 15.98 kB / 472 MB, free: 7.859 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.476e-05/0.3701, allocations: 27.91 kB / 472.1 MB, free: 7.832 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.092e-05/0.3701, allocations: 16.05 kB / 472.1 MB, free: 7.816 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001332/0.3703, allocations: 157.4 kB / 472.2 MB, free: 7.664 MB / 346.7 MB Notification: Performance of sort global known variables: time 2.3e-07/0.3703, allocations: 0 / 472.2 MB, free: 7.664 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0005394/0.3708, allocations: 104 kB / 472.3 MB, free: 7.562 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (coil.i) * 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: 1 {(1,100.0%) 9} * Non-linear torn systems: 1 {1 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.001805/0.3726, allocations: 1.335 MB / 473.7 MB, free: 6.184 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.00078/0.3734, allocations: 0.5282 MB / 474.2 MB, free: 5.629 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.967e-06/0.3735, allocations: 0 / 474.2 MB, free: 5.629 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004563/0.3739, allocations: 426 kB / 474.6 MB, free: 5.188 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002005/0.3741, allocations: 21.58 kB / 474.6 MB, free: 5.168 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001044/0.3752, allocations: 0.5113 MB / 475.1 MB, free: 4.617 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002863/0.3755, allocations: 0.784 MB / 475.9 MB, free: 3.801 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0001016/0.3756, allocations: 22.08 kB / 475.9 MB, free: 3.777 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001127/0.3757, allocations: 95.39 kB / 476 MB, free: 3.684 MB / 346.7 MB Notification: Performance of SimCode: time 4.81e-07/0.3757, allocations: 0 / 476 MB, free: 3.684 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02073/0.3964, allocations: 8.014 MB / 484 MB, free: 11.67 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002156/0.3967, allocations: 198.8 kB / 484.2 MB, free: 11.43 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.913/2.309, allocations: 3.938 kB / 484.2 MB, free: 11.43 MB / 362.7 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_FluxTubes_Examples_SaturatedInductor_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-07 Modelica_3_2_3_Modelica_Magnetic_FluxTubes_Examples_SaturatedInductor.fmu > Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor_res.mat does not exist to compare? outputFormat=mat