Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.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.Electrical.Analog.Examples.ShowSaturatingInductor,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_ShowSaturatingInductor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ShowSaturatingInductor,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_ShowSaturatingInductor",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.0009732/0.0009734, allocations: 175.5 kB / 13.63 MB, free: 1.684 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.299/1.299, allocations: 221.3 MB / 235.5 MB, free: 2.977 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009241/0.0009241, allocations: 93.98 kB / 286.5 MB, free: 248 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.767e-05/2.779e-05, allocations: 8 kB / 343.9 MB, free: 4.23 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08839/0.08844, allocations: 50.42 MB / 394.3 MB, free: 1.77 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2894/0.3779, allocations: 78.33 MB / 472.7 MB, free: 9.184 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002269/0.3782, allocations: 73.58 kB / 472.7 MB, free: 9.113 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.009499/0.3877, allocations: 3.272 MB / 476 MB, free: 5.832 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.844e-06/0.3877, allocations: 0 / 476 MB, free: 5.832 MB / 346.7 MB Notification: Performance of Transformations before backend: time 8.747e-06/0.3877, allocations: 4 kB / 476 MB, free: 5.828 MB / 346.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.0005621/0.3883, allocations: 438.8 kB / 476.4 MB, free: 5.355 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.209e-05/0.3884, allocations: 8.031 kB / 476.5 MB, free: 5.348 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.49e-05/0.3884, allocations: 42.5 kB / 476.5 MB, free: 5.297 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.663e-05/0.3885, allocations: 15.81 kB / 476.5 MB, free: 5.281 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001856/0.3887, allocations: 191.9 kB / 476.7 MB, free: 5.055 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.807e-05/0.3887, allocations: 12 kB / 476.7 MB, free: 5.043 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.386e-05/0.3887, allocations: 19.91 kB / 476.7 MB, free: 5.023 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002429/0.389, allocations: 143.3 kB / 476.9 MB, free: 4.871 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.43e-05/0.389, allocations: 3.953 kB / 476.9 MB, free: 4.867 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.661e-05/0.389, allocations: 0 / 476.9 MB, free: 4.867 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.913e-06/0.389, allocations: 4 kB / 476.9 MB, free: 4.863 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001411/0.3892, allocations: 68.19 kB / 476.9 MB, free: 4.797 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009707/0.3902, allocations: 0.5071 MB / 477.5 MB, free: 4.234 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001689/0.3903, allocations: 90.44 kB / 477.5 MB, free: 4.137 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000125/0.3905, allocations: 48.84 kB / 477.6 MB, free: 4.086 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.094e-05/0.3905, allocations: 4 kB / 477.6 MB, free: 4.082 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.601e-05/0.3905, allocations: 34.56 kB / 477.6 MB, free: 4.039 MB / 346.7 MB Notification: Performance of pre-optimization done (n=7): time 1.273e-06/0.3906, allocations: 0 / 477.6 MB, free: 4.039 MB / 346.7 MB Notification: Performance of matching and sorting (n=7): time 0.0002202/0.3908, allocations: 77.59 kB / 477.7 MB, free: 3.957 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.334e-05/0.3908, allocations: 110.8 kB / 477.8 MB, free: 3.824 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000127/0.391, allocations: 148.6 kB / 478 MB, free: 3.676 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.135e-05/0.391, allocations: 29.7 kB / 478 MB, free: 3.641 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.438e-05/0.3911, allocations: 115.9 kB / 478.1 MB, free: 3.523 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.752e-05/0.3911, allocations: 31.78 kB / 478.1 MB, free: 3.492 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.503e-06/0.3911, allocations: 0 / 478.1 MB, free: 3.492 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 9.962e-05/0.3912, allocations: 322.8 kB / 478.4 MB, free: 3.168 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.668e-05/0.3913, allocations: 28 kB / 478.5 MB, free: 3.141 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.058e-05/0.3914, allocations: 73.08 kB / 478.5 MB, free: 3.051 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.127e-05/0.3915, allocations: 31.98 kB / 478.6 MB, free: 3.02 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-06/0.3915, allocations: 0 / 478.6 MB, free: 3.02 MB / 346.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001948/0.3917, allocations: 117.4 kB / 478.7 MB, free: 2.898 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.523e-05/0.3917, allocations: 5.406 kB / 478.7 MB, free: 2.895 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.456e-06/0.3917, allocations: 4 kB / 478.7 MB, free: 2.891 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.675e-05/0.3918, allocations: 4.094 kB / 478.7 MB, free: 2.887 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000572/0.3923, allocations: 83.86 kB / 478.8 MB, free: 2.805 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001236/0.3936, allocations: 1.382 MB / 480.2 MB, free: 1.289 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001739/0.3938, allocations: 28.02 kB / 480.2 MB, free: 1.262 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.485e-05/0.3938, allocations: 7.984 kB / 480.2 MB, free: 1.254 MB / 346.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 8.671e-05/0.3939, allocations: 112.9 kB / 480.3 MB, free: 1.137 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.735e-05/0.3939, allocations: 7.906 kB / 480.3 MB, free: 1.129 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003319/0.3943, allocations: 123.1 kB / 480.4 MB, free: 0.9961 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.781e-06/0.3943, allocations: 7.891 kB / 480.4 MB, free: 0.9883 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.665e-06/0.3943, allocations: 4.062 kB / 480.4 MB, free: 0.9844 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.639e-06/0.3943, allocations: 8 kB / 480.5 MB, free: 0.9766 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006348/0.3949, allocations: 440 kB / 480.9 MB, free: 496 kB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.264e-06/0.395, allocations: 0 / 480.9 MB, free: 496 kB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001364/0.3951, allocations: 31.92 kB / 480.9 MB, free: 464 kB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002499/0.3954, allocations: 32.86 kB / 481 MB, free: 428 kB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.645e-05/0.3954, allocations: 8 kB / 481 MB, free: 420 kB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001114/0.3965, allocations: 1.288 MB / 482.2 MB, free: 14.99 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.136e-06/0.3965, allocations: 4.031 kB / 482.3 MB, free: 14.99 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004149/0.3969, allocations: 271 kB / 482.5 MB, free: 14.7 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.37e-05/0.397, allocations: 88.98 kB / 482.6 MB, free: 14.59 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.093e-05/0.397, allocations: 3.938 kB / 482.6 MB, free: 14.59 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001688/0.3972, allocations: 15.98 kB / 482.6 MB, free: 14.57 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.735e-05/0.3973, allocations: 11.98 kB / 482.6 MB, free: 14.56 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.218e-06/0.3973, allocations: 8.062 kB / 482.6 MB, free: 14.55 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001081/0.3974, allocations: 119.2 kB / 482.8 MB, free: 14.43 MB / 362.7 MB Notification: Performance of sort global known variables: time 3.21e-07/0.3974, allocations: 0 / 482.8 MB, free: 14.43 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.000296/0.3977, allocations: 36 kB / 482.8 MB, free: 14.4 MB / 362.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.0007382/0.3985, allocations: 0.8781 MB / 483.7 MB, free: 13.48 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.000589/0.3991, allocations: 119.9 kB / 483.8 MB, free: 13.37 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.787e-06/0.3991, allocations: 0 / 483.8 MB, free: 13.37 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002422/0.3993, allocations: 143 kB / 483.9 MB, free: 13.21 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001665/0.3995, allocations: 15.94 kB / 483.9 MB, free: 13.2 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001468/0.401, allocations: 485.1 kB / 484.4 MB, free: 12.68 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002877/0.4013, allocations: 0.716 MB / 485.1 MB, free: 11.94 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 6.461e-05/0.4014, allocations: 16.42 kB / 485.1 MB, free: 11.93 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.529e-05/0.4014, allocations: 39.42 kB / 485.2 MB, free: 11.89 MB / 362.7 MB Notification: Performance of SimCode: time 5.62e-07/0.4014, allocations: 0 / 485.2 MB, free: 11.89 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01723/0.4187, allocations: 2.85 MB / 488 MB, free: 9.195 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002367/0.419, allocations: 190 kB / 488.2 MB, free: 8.973 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.498/1.916, allocations: 0 / 488.2 MB, free: 8.973 MB / 362.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_ShowSaturatingInductor_fmu --startTime=0 --stopTime=6.2832 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_ShowSaturatingInductor.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor_res.mat does not exist to compare? outputFormat=mat