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.001468/0.001468, allocations: 179.4 kB / 8.364 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.068/2.068, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001133/0.001133, allocations: 94.67 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.352e-05/2.382e-05, allocations: 4 kB / 314.9 MB, free: 9.074 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3395/0.3395, allocations: 47.57 MB / 362.4 MB, free: 45.85 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1728/0.5124, allocations: 78.5 MB / 440.9 MB, free: 7.789 MB / 331.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003857/0.5128, allocations: 70.59 kB / 441 MB, free: 7.723 MB / 331.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.0513/0.5641, allocations: 6.879 MB / 447.9 MB, free: 0.8594 MB / 331.1 MB Notification: Performance of FrontEnd: time 3.045e-06/0.5642, allocations: 0 / 447.9 MB, free: 0.8594 MB / 331.1 MB Notification: Performance of Transformations before backend: time 3.002e-05/0.5643, allocations: 4 kB / 447.9 MB, free: 0.8555 MB / 331.1 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.001925/0.5662, allocations: 0.5291 MB / 448.4 MB, free: 292 kB / 331.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.682e-05/0.5663, allocations: 8.031 kB / 448.4 MB, free: 284 kB / 331.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001682/0.5665, allocations: 31.62 kB / 448.4 MB, free: 252 kB / 331.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000797/0.5673, allocations: 268.1 kB / 448.7 MB, free: 15.95 MB / 347.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.398e-05/0.5674, allocations: 19.94 kB / 448.7 MB, free: 15.93 MB / 347.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.228e-05/0.5675, allocations: 12 kB / 448.7 MB, free: 15.92 MB / 347.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008232/0.5683, allocations: 169.1 kB / 448.9 MB, free: 15.75 MB / 347.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008185/0.5692, allocations: 191.8 kB / 449.1 MB, free: 15.56 MB / 347.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.966e-05/0.5692, allocations: 0 / 449.1 MB, free: 15.56 MB / 347.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.906e-05/0.5693, allocations: 0 / 449.1 MB, free: 15.56 MB / 347.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.538e-05/0.5693, allocations: 8 kB / 449.1 MB, free: 15.55 MB / 347.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003863/0.5732, allocations: 0.968 MB / 450.1 MB, free: 14.51 MB / 347.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000733/0.574, allocations: 186.4 kB / 450.3 MB, free: 14.32 MB / 347.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004186/0.5744, allocations: 97.92 kB / 450.3 MB, free: 14.22 MB / 347.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.957e-05/0.5745, allocations: 3.984 kB / 450.4 MB, free: 14.22 MB / 347.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.718e-05/0.5746, allocations: 34.56 kB / 450.4 MB, free: 14.18 MB / 347.1 MB Notification: Performance of pre-optimization done (n=23): time 4.158e-06/0.5746, allocations: 0 / 450.4 MB, free: 14.18 MB / 347.1 MB Notification: Performance of matching and sorting (n=34): time 0.008636/0.5832, allocations: 1.09 MB / 451.5 MB, free: 13.03 MB / 347.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.782e-05/0.5834, allocations: 55.41 kB / 451.5 MB, free: 12.96 MB / 347.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004554/0.5838, allocations: 187.2 kB / 451.7 MB, free: 12.77 MB / 347.1 MB Notification: Performance of collectPreVariables (initialization): time 8.425e-05/0.5839, allocations: 25.7 kB / 451.7 MB, free: 12.74 MB / 347.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002287/0.5842, allocations: 250.7 kB / 452 MB, free: 12.49 MB / 347.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001903/0.5844, allocations: 114.3 kB / 452.1 MB, free: 12.38 MB / 347.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.783e-05/0.5845, allocations: 0 / 452.1 MB, free: 12.38 MB / 347.1 MB Notification: Performance of setup shared object (initialization): time 0.0002436/0.5847, allocations: 327.4 kB / 452.4 MB, free: 12.05 MB / 347.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004188/0.5852, allocations: 90.88 kB / 452.5 MB, free: 11.96 MB / 347.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005286/0.5857, allocations: 142.6 kB / 452.6 MB, free: 11.8 MB / 347.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004992/0.5863, allocations: 101.6 kB / 452.7 MB, free: 11.7 MB / 347.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.157e-06/0.5863, allocations: 7.953 kB / 452.7 MB, free: 11.7 MB / 347.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.003538/0.5898, allocations: 480.7 kB / 453.2 MB, free: 11.21 MB / 347.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.951e-05/0.5899, allocations: 6.656 kB / 453.2 MB, free: 11.21 MB / 347.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.262e-05/0.5899, allocations: 6.016 kB / 453.2 MB, free: 11.21 MB / 347.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001361/0.5913, allocations: 189.6 kB / 453.4 MB, free: 11.02 MB / 347.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004981/0.5918, allocations: 55.91 kB / 453.5 MB, free: 10.96 MB / 347.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006883/0.5987, allocations: 3.618 MB / 457.1 MB, free: 7.117 MB / 347.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004325/0.5992, allocations: 14.39 kB / 457.1 MB, free: 7.105 MB / 347.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.343e-05/0.5993, allocations: 12 kB / 457.1 MB, free: 7.094 MB / 347.1 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.0001585/0.5994, allocations: 108.9 kB / 457.2 MB, free: 6.98 MB / 347.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.00231/0.6017, allocations: 442.8 kB / 457.7 MB, free: 6.535 MB / 347.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.815e-05/0.6019, allocations: 23.72 kB / 457.7 MB, free: 6.512 MB / 347.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000121/0.602, allocations: 31.41 kB / 457.7 MB, free: 6.48 MB / 347.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.045e-06/0.602, allocations: 4 kB / 457.7 MB, free: 6.477 MB / 347.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.366e-06/0.602, allocations: 4 kB / 457.7 MB, free: 6.473 MB / 347.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.03e-05/0.6021, allocations: 3.984 kB / 457.7 MB, free: 6.469 MB / 347.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00309/0.6052, allocations: 0.8525 MB / 458.6 MB, free: 5.562 MB / 347.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.406e-06/0.6052, allocations: 3.953 kB / 458.6 MB, free: 5.559 MB / 347.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000427/0.6057, allocations: 43.91 kB / 458.6 MB, free: 5.516 MB / 347.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001287/0.607, allocations: 181.6 kB / 458.8 MB, free: 5.332 MB / 347.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.752e-05/0.607, allocations: 7.984 kB / 458.8 MB, free: 5.324 MB / 347.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00685/0.6139, allocations: 3.624 MB / 462.4 MB, free: 1.473 MB / 347.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.051e-06/0.6139, allocations: 3.938 kB / 462.4 MB, free: 1.469 MB / 347.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00273/0.6167, allocations: 0.6715 MB / 463.1 MB, free: 0.7656 MB / 347.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001256/0.6168, allocations: 104.9 kB / 463.2 MB, free: 0.6445 MB / 347.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.126e-05/0.6169, allocations: 3.75 kB / 463.2 MB, free: 0.6445 MB / 347.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003783/0.6173, allocations: 11.98 kB / 463.2 MB, free: 0.6328 MB / 347.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001348/0.6175, allocations: 27.91 kB / 463.2 MB, free: 0.6055 MB / 347.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.006e-05/0.6175, allocations: 15.98 kB / 463.3 MB, free: 0.5898 MB / 347.1 MB Notification: Performance of sorting global known variables: time 0.0002152/0.6178, allocations: 145.6 kB / 463.4 MB, free: 460 kB / 347.1 MB Notification: Performance of sort global known variables: time 4.11e-07/0.6178, allocations: 0 / 463.4 MB, free: 460 kB / 347.1 MB Notification: Performance of remove unused functions: time 0.0009156/0.6187, allocations: 88 kB / 463.5 MB, free: 372 kB / 347.1 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.003347/0.6221, allocations: 1.309 MB / 464.8 MB, free: 15.02 MB / 363.1 MB Notification: Performance of simCode: created initialization part: time 0.001259/0.6234, allocations: 0.4997 MB / 465.3 MB, free: 14.5 MB / 363.1 MB Notification: Performance of simCode: created event and clocks part: time 4.528e-06/0.6234, allocations: 320 / 465.3 MB, free: 14.5 MB / 363.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007499/0.6242, allocations: 387.2 kB / 465.7 MB, free: 14.1 MB / 363.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003708/0.6246, allocations: 12.62 kB / 465.7 MB, free: 14.08 MB / 363.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00183/0.6264, allocations: 0.5218 MB / 466.2 MB, free: 13.52 MB / 363.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005031/0.6269, allocations: 0.784 MB / 467 MB, free: 12.7 MB / 363.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00024/0.6272, allocations: 95.39 kB / 467.1 MB, free: 12.61 MB / 363.1 MB Notification: Performance of SimCode: time 1.613e-06/0.6272, allocations: 0 / 467.1 MB, free: 12.61 MB / 363.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.843/3.471, allocations: 7.03 MB / 474.1 MB, free: 5.602 MB / 363.1 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