Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_Modelica_Magnetic_FluxTubes_Examples_SaturatedInductor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor,fileNamePrefix="Modelica_3_2_3_cpp_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.001659/0.001659, allocations: 181.3 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.129/2.129, allocations: 205.2 MB / 219.4 MB, free: 14.28 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.001097/0.001097, allocations: 98.62 kB / 267.5 MB, free: 14.1 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.168e-05/3.183e-05, allocations: 0 / 321.6 MB, free: 17.75 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09838/0.09846, allocations: 47.57 MB / 369.2 MB, free: 2.113 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4059/0.5044, allocations: 79.17 MB / 448.3 MB, free: 14.04 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002726/0.5047, allocations: 70.84 kB / 448.4 MB, free: 14 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03324/0.538, allocations: 6.945 MB / 455.4 MB, free: 8.133 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.324e-06/0.538, allocations: 0 / 455.4 MB, free: 8.133 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.195e-05/0.5381, allocations: 8 kB / 455.4 MB, free: 8.125 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.00129/0.5394, allocations: 0.5237 MB / 455.9 MB, free: 7.574 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.933e-05/0.5394, allocations: 8.031 kB / 455.9 MB, free: 7.566 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001105/0.5396, allocations: 59.86 kB / 456 MB, free: 7.516 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001095/0.5397, allocations: 31.62 kB / 456 MB, free: 7.484 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005466/0.5402, allocations: 268.1 kB / 456.2 MB, free: 7.203 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.832e-05/0.5403, allocations: 26.52 kB / 456.3 MB, free: 7.188 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.92e-05/0.5404, allocations: 22.56 kB / 456.3 MB, free: 7.172 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006628/0.5411, allocations: 232.4 kB / 456.5 MB, free: 7.012 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.024e-05/0.5411, allocations: 12 kB / 456.5 MB, free: 7 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.036e-05/0.5412, allocations: 6.438 kB / 456.5 MB, free: 7 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.386e-05/0.5412, allocations: 11.94 kB / 456.6 MB, free: 6.988 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005566/0.5417, allocations: 189.8 kB / 456.7 MB, free: 6.863 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002641/0.5444, allocations: 1.012 MB / 457.7 MB, free: 5.953 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005287/0.545, allocations: 191 kB / 457.9 MB, free: 5.816 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003019/0.5453, allocations: 105.9 kB / 458 MB, free: 5.742 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.283e-05/0.5454, allocations: 8 kB / 458 MB, free: 5.734 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.339e-05/0.5454, allocations: 34.25 kB / 458.1 MB, free: 5.695 MB / 330.7 MB Notification: Performance of pre-optimization done (n=23): time 3.407e-06/0.5454, allocations: 0 / 458.1 MB, free: 5.695 MB / 330.7 MB Notification: Performance of matching and sorting (n=34): time 0.006534/0.552, allocations: 1.21 MB / 459.3 MB, free: 4.637 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.916e-05/0.5521, allocations: 55.41 kB / 459.3 MB, free: 4.57 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003493/0.5524, allocations: 209.7 kB / 459.5 MB, free: 4.395 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 6.12e-05/0.5525, allocations: 29.33 kB / 459.6 MB, free: 4.363 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001607/0.5527, allocations: 244.7 kB / 459.8 MB, free: 4.141 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001404/0.5528, allocations: 118.4 kB / 459.9 MB, free: 4.039 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.742e-05/0.5529, allocations: 6.438 kB / 459.9 MB, free: 4.039 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001496/0.553, allocations: 328.8 kB / 460.3 MB, free: 3.715 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002995/0.5533, allocations: 97.02 kB / 460.4 MB, free: 3.648 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003618/0.5537, allocations: 153.4 kB / 460.5 MB, free: 3.477 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003594/0.5541, allocations: 121.5 kB / 460.6 MB, free: 3.359 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.136e-06/0.5541, allocations: 0 / 460.6 MB, free: 3.359 MB / 330.7 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.002589/0.5567, allocations: 0.5046 MB / 461.1 MB, free: 2.844 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.031e-05/0.5568, allocations: 8 kB / 461.1 MB, free: 2.836 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.388e-05/0.5568, allocations: 4 kB / 461.1 MB, free: 2.832 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001421/0.5582, allocations: 181.6 kB / 461.3 MB, free: 2.648 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005163/0.5588, allocations: 59.91 kB / 461.4 MB, free: 2.59 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007533/0.5663, allocations: 3.757 MB / 465.1 MB, free: 14.56 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004593/0.5669, allocations: 16 kB / 465.1 MB, free: 14.54 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.351e-05/0.5669, allocations: 11.98 kB / 465.2 MB, free: 14.53 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 0.0001727/0.5671, allocations: 133.7 kB / 465.3 MB, free: 14.39 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.311e-05/0.5672, allocations: 23.72 kB / 465.3 MB, free: 14.37 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001261/0.5673, allocations: 43.08 kB / 465.4 MB, free: 14.33 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.11e-05/0.5674, allocations: 4 kB / 465.4 MB, free: 14.33 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.682e-05/0.5674, allocations: 3.953 kB / 465.4 MB, free: 14.32 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.332e-06/0.5674, allocations: 0 / 465.4 MB, free: 14.32 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003315/0.5707, allocations: 0.9378 MB / 466.3 MB, free: 13.32 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.879e-06/0.5708, allocations: 0 / 466.3 MB, free: 13.32 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000421/0.5712, allocations: 43.97 kB / 466.3 MB, free: 13.28 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001344/0.5726, allocations: 185.5 kB / 466.5 MB, free: 13.09 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.363e-05/0.5727, allocations: 12.27 kB / 466.5 MB, free: 13.08 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00731/0.58, allocations: 3.748 MB / 470.3 MB, free: 9.062 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.62e-06/0.5801, allocations: 0 / 470.3 MB, free: 9.062 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002908/0.583, allocations: 0.7181 MB / 471 MB, free: 8.312 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001489/0.5832, allocations: 100.8 kB / 471.1 MB, free: 8.195 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.28e-05/0.5833, allocations: 7.984 kB / 471.1 MB, free: 8.188 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004166/0.5837, allocations: 16 kB / 471.1 MB, free: 8.172 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001553/0.5839, allocations: 35.95 kB / 471.2 MB, free: 8.137 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.671e-05/0.5839, allocations: 12 kB / 471.2 MB, free: 8.125 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0002512/0.5842, allocations: 161.4 kB / 471.3 MB, free: 7.969 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.31e-07/0.5842, allocations: 0 / 471.3 MB, free: 7.969 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0008492/0.585, allocations: 108 kB / 471.4 MB, free: 7.863 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.003439/0.5885, allocations: 1.331 MB / 472.8 MB, free: 6.488 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.00137/0.5899, allocations: 0.5283 MB / 473.3 MB, free: 5.934 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.628e-06/0.59, allocations: 0 / 473.3 MB, free: 5.934 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008432/0.5908, allocations: 425.6 kB / 473.7 MB, free: 5.492 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003583/0.5912, allocations: 24.42 kB / 473.7 MB, free: 5.469 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001862/0.5931, allocations: 0.5329 MB / 474.3 MB, free: 4.891 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004772/0.5936, allocations: 0.784 MB / 475.1 MB, free: 4.074 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002199/0.5938, allocations: 99.28 kB / 475.1 MB, free: 3.977 MB / 346.7 MB Notification: Performance of SimCode: time 1.283e-06/0.5939, allocations: 8 kB / 475.2 MB, free: 3.969 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.082/3.676, allocations: 7.085 MB / 482.2 MB, free: 12.88 MB / 362.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Magnetic_FluxTubes_Examples_SaturatedInductor_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-07 Modelica_3_2_3_cpp_Modelica_Magnetic_FluxTubes_Examples_SaturatedInductor.fmu > Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor_res.mat does not exist to compare? outputFormat=mat