Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.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.Electrical.Analog.Examples.ShowSaturatingInductor,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_ShowSaturatingInductor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ShowSaturatingInductor,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_ShowSaturatingInductor",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.002506/0.002506, allocations: 180.6 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.152/2.152, allocations: 205.2 MB / 219.4 MB, free: 14.21 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.001091/0.001091, allocations: 78.72 kB / 267.5 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.064e-05/3.075e-05, allocations: 0 / 321.6 MB, free: 17.74 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09354/0.09361, allocations: 47.59 MB / 369.2 MB, free: 2.09 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3941/0.4877, allocations: 76.86 MB / 446 MB, free: 312 kB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002676/0.4881, allocations: 70.84 kB / 446.1 MB, free: 276 kB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01587/0.504, allocations: 3.15 MB / 449.3 MB, free: 13.58 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.763e-06/0.504, allocations: 4 kB / 449.3 MB, free: 13.58 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.362e-05/0.504, allocations: 4 kB / 449.3 MB, free: 13.57 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: 23 * Number of variables: 23 Notification: Performance of Generate backend data structure: time 0.0009605/0.505, allocations: 431.4 kB / 449.7 MB, free: 13.12 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.259e-05/0.5051, allocations: 8.031 kB / 449.7 MB, free: 13.11 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.967e-05/0.5052, allocations: 49.98 kB / 449.8 MB, free: 13.06 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.725e-05/0.5052, allocations: 16 kB / 449.8 MB, free: 13.04 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002423/0.5055, allocations: 194.7 kB / 450 MB, free: 12.82 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.132e-05/0.5055, allocations: 7.953 kB / 450 MB, free: 12.81 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.735e-05/0.5056, allocations: 15.8 kB / 450 MB, free: 12.8 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003492/0.5059, allocations: 134.4 kB / 450.1 MB, free: 12.68 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.423e-05/0.506, allocations: 0 / 450.1 MB, free: 12.68 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.517e-05/0.506, allocations: 8 kB / 450.1 MB, free: 12.68 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.962e-06/0.506, allocations: 0 / 450.1 MB, free: 12.68 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002298/0.5063, allocations: 67.3 kB / 450.2 MB, free: 12.63 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001429/0.5077, allocations: 0.5114 MB / 450.7 MB, free: 12.14 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002426/0.508, allocations: 77.19 kB / 450.8 MB, free: 12.08 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000202/0.5082, allocations: 51.42 kB / 450.8 MB, free: 12.04 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.657e-05/0.5083, allocations: 3.953 kB / 450.8 MB, free: 12.04 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.843e-05/0.5083, allocations: 42.55 kB / 450.9 MB, free: 11.98 MB / 330.7 MB Notification: Performance of pre-optimization done (n=7): time 2.846e-06/0.5083, allocations: 0 / 450.9 MB, free: 11.98 MB / 330.7 MB Notification: Performance of matching and sorting (n=7): time 0.0003786/0.5087, allocations: 84.47 kB / 451 MB, free: 11.91 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.588e-05/0.5088, allocations: 110.7 kB / 451.1 MB, free: 11.78 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002024/0.509, allocations: 141.1 kB / 451.2 MB, free: 11.65 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.241e-05/0.5091, allocations: 29.58 kB / 451.2 MB, free: 11.62 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001265/0.5092, allocations: 185.6 kB / 451.4 MB, free: 11.45 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.891e-05/0.5092, allocations: 23.33 kB / 451.4 MB, free: 11.43 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.044e-05/0.5093, allocations: 11.88 kB / 451.4 MB, free: 11.41 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001521/0.5094, allocations: 314.8 kB / 451.7 MB, free: 11.1 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.993e-05/0.5095, allocations: 31.55 kB / 451.8 MB, free: 11.08 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001445/0.5097, allocations: 64.47 kB / 451.8 MB, free: 11.01 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001195/0.5098, allocations: 31.61 kB / 451.9 MB, free: 10.99 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.466e-06/0.5099, allocations: 4.031 kB / 451.9 MB, free: 10.98 MB / 330.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003336/0.5102, allocations: 124.2 kB / 452 MB, free: 10.88 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.643e-05/0.5102, allocations: 11.95 kB / 452 MB, free: 10.87 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.444e-06/0.5103, allocations: 0 / 452 MB, free: 10.87 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.76e-05/0.5103, allocations: 0 / 452 MB, free: 10.87 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001081/0.5114, allocations: 79.92 kB / 452.1 MB, free: 10.79 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001969/0.5134, allocations: 1.384 MB / 453.5 MB, free: 9.312 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003367/0.5138, allocations: 23.86 kB / 453.5 MB, free: 9.289 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.028e-05/0.5138, allocations: 7.812 kB / 453.5 MB, free: 9.285 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001203/0.5139, allocations: 108.9 kB / 453.6 MB, free: 9.172 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.256e-05/0.514, allocations: 19.78 kB / 453.6 MB, free: 9.156 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005088/0.5145, allocations: 122.3 kB / 453.7 MB, free: 9.051 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.304e-06/0.5145, allocations: 4.031 kB / 453.8 MB, free: 9.047 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.104e-06/0.5146, allocations: 4 kB / 453.8 MB, free: 9.043 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.925e-06/0.5146, allocations: 7.922 kB / 453.8 MB, free: 9.035 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000922/0.5155, allocations: 437.6 kB / 454.2 MB, free: 8.598 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.107e-06/0.5155, allocations: 4.031 kB / 454.2 MB, free: 8.594 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002649/0.5158, allocations: 27.97 kB / 454.2 MB, free: 8.566 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003762/0.5162, allocations: 36.77 kB / 454.3 MB, free: 8.531 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.736e-05/0.5162, allocations: 0 / 454.3 MB, free: 8.531 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001548/0.5178, allocations: 1.295 MB / 455.6 MB, free: 7.148 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.976e-06/0.5178, allocations: 0 / 455.6 MB, free: 7.148 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006572/0.5185, allocations: 276.7 kB / 455.8 MB, free: 6.887 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.603e-05/0.5186, allocations: 88.98 kB / 455.9 MB, free: 6.781 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.801e-05/0.5187, allocations: 3.75 kB / 455.9 MB, free: 6.781 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002934/0.519, allocations: 27.94 kB / 455.9 MB, free: 6.754 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.707e-05/0.519, allocations: 7.984 kB / 455.9 MB, free: 6.746 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.435e-05/0.5191, allocations: 4 kB / 456 MB, free: 6.742 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001384/0.5192, allocations: 119.2 kB / 456.1 MB, free: 6.641 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.41e-07/0.5192, allocations: 0 / 456.1 MB, free: 6.641 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004184/0.5196, allocations: 39.84 kB / 456.1 MB, free: 6.602 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (SaturatingInductance1.Psi,Inductance1.i) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 6 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.001089/0.5207, allocations: 0.8687 MB / 457 MB, free: 5.734 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001022/0.5218, allocations: 119.2 kB / 457.1 MB, free: 5.637 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.569e-06/0.5218, allocations: 0 / 457.1 MB, free: 5.637 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003829/0.5222, allocations: 154.2 kB / 457.2 MB, free: 5.484 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002455/0.5225, allocations: 5.828 kB / 457.2 MB, free: 5.484 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002747/0.5253, allocations: 0.4945 MB / 457.7 MB, free: 4.965 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003881/0.5257, allocations: 0.716 MB / 458.5 MB, free: 4.223 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001313/0.5258, allocations: 46.09 kB / 458.5 MB, free: 4.199 MB / 330.7 MB Notification: Performance of SimCode: time 1.122e-06/0.5259, allocations: 0 / 458.5 MB, free: 4.199 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.749/3.275, allocations: 2.748 MB / 461.3 MB, free: 1.473 MB / 330.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_ShowSaturatingInductor_fmu --startTime=0 --stopTime=6.2832 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_ShowSaturatingInductor.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor_res.mat does not exist to compare? outputFormat=mat