Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_Modelica_Electrical_Analog_Examples_ShowSaturatingInductor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ShowSaturatingInductor,fileNamePrefix="Modelica_3_2_3_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.001265/0.001264, allocations: 182.2 kB / 17.02 MB, free: 5.121 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.5/1.5, allocations: 205.4 MB / 223.1 MB, free: 9.117 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.0009969/0.0009969, allocations: 92.17 kB / 271.5 MB, free: 8.367 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002793/0.0002794, allocations: 4 kB / 328.3 MB, free: 15.44 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.295/0.2953, allocations: 47.58 MB / 375.9 MB, free: 45.61 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09185/0.3873, allocations: 76.96 MB / 452.9 MB, free: 3.691 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002295/0.3875, allocations: 67.97 kB / 452.9 MB, free: 3.625 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.009072/0.3966, allocations: 3.162 MB / 456.1 MB, free: 464 kB / 330.7 MB Notification: Performance of FrontEnd: time 1.873e-06/0.3967, allocations: 0 / 456.1 MB, free: 464 kB / 330.7 MB Notification: Performance of Transformations before backend: time 7.654e-06/0.3967, allocations: 0 / 456.1 MB, free: 464 kB / 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.0006773/0.3974, allocations: 458.7 kB / 456.5 MB, free: 15.96 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.061e-05/0.3974, allocations: 8.031 kB / 456.6 MB, free: 15.95 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.4e-05/0.3975, allocations: 38.56 kB / 456.6 MB, free: 15.9 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.353e-05/0.3975, allocations: 15.91 kB / 456.6 MB, free: 15.89 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001627/0.3977, allocations: 201.4 kB / 456.8 MB, free: 15.65 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.652e-05/0.3977, allocations: 11.95 kB / 456.8 MB, free: 15.64 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.028e-05/0.3977, allocations: 12 kB / 456.8 MB, free: 15.63 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003007/0.398, allocations: 152 kB / 457 MB, free: 15.46 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.089e-05/0.3981, allocations: 0 / 457 MB, free: 15.46 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.563e-05/0.3981, allocations: 4 kB / 457 MB, free: 15.46 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.789e-06/0.3981, allocations: 7.938 kB / 457 MB, free: 15.45 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002705/0.3984, allocations: 103.9 kB / 457.1 MB, free: 15.35 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000934/0.3993, allocations: 0.511 MB / 457.6 MB, free: 14.78 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002977/0.3996, allocations: 106.5 kB / 457.7 MB, free: 14.67 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.047e-05/0.3997, allocations: 4 kB / 457.7 MB, free: 14.66 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.758e-05/0.3997, allocations: 34.52 kB / 457.7 MB, free: 14.62 MB / 346.7 MB Notification: Performance of pre-optimization done (n=7): time 1.693e-06/0.3997, allocations: 0 / 457.7 MB, free: 14.62 MB / 346.7 MB Notification: Performance of matching and sorting (n=7): time 0.0004847/0.4002, allocations: 153.7 kB / 457.9 MB, free: 14.46 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.695e-05/0.4003, allocations: 110.8 kB / 458 MB, free: 14.33 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000126/0.4004, allocations: 145.7 kB / 458.1 MB, free: 14.18 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.219e-05/0.4005, allocations: 29.7 kB / 458.2 MB, free: 14.15 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.323e-05/0.4006, allocations: 120.8 kB / 458.3 MB, free: 14.03 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.921e-05/0.4006, allocations: 31.78 kB / 458.3 MB, free: 14 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.558e-06/0.4006, allocations: 4 kB / 458.3 MB, free: 13.99 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001219/0.4007, allocations: 322.8 kB / 458.6 MB, free: 13.67 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001226/0.4009, allocations: 35.98 kB / 458.7 MB, free: 13.63 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001676/0.401, allocations: 84.25 kB / 458.8 MB, free: 13.54 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001362/0.4012, allocations: 51.92 kB / 458.8 MB, free: 13.48 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.854e-06/0.4012, allocations: 4.031 kB / 458.8 MB, free: 13.48 MB / 346.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003298/0.4015, allocations: 145.8 kB / 459 MB, free: 13.33 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.524e-05/0.4016, allocations: 4 kB / 459 MB, free: 13.33 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.831e-06/0.4016, allocations: 3.953 kB / 459 MB, free: 13.32 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.287e-05/0.4016, allocations: 4 kB / 459 MB, free: 13.32 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006032/0.4022, allocations: 87.95 kB / 459.1 MB, free: 13.23 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001403/0.4036, allocations: 1.386 MB / 460.4 MB, free: 11.71 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001841/0.4038, allocations: 23.86 kB / 460.5 MB, free: 11.69 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.619e-05/0.4038, allocations: 16.2 kB / 460.5 MB, free: 11.68 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked 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.0001197/0.404, allocations: 113.8 kB / 460.6 MB, free: 11.55 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.819e-05/0.404, allocations: 11.91 kB / 460.6 MB, free: 11.54 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004722/0.4045, allocations: 171.1 kB / 460.8 MB, free: 11.37 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.344e-06/0.4045, allocations: 0 / 460.8 MB, free: 11.37 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.573e-06/0.4045, allocations: 0 / 460.8 MB, free: 11.37 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.796e-06/0.4045, allocations: 0 / 460.8 MB, free: 11.37 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002474/0.4048, allocations: 225.6 kB / 461 MB, free: 11.1 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.353e-06/0.4048, allocations: 0 / 461 MB, free: 11.1 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001712/0.405, allocations: 27.97 kB / 461 MB, free: 11.07 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002702/0.4052, allocations: 40.78 kB / 461.1 MB, free: 11.03 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.563e-05/0.4053, allocations: 4 kB / 461.1 MB, free: 11.02 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001102/0.4064, allocations: 1.304 MB / 462.4 MB, free: 9.586 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.323e-06/0.4064, allocations: 3.938 kB / 462.4 MB, free: 9.582 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000613/0.407, allocations: 308.3 kB / 462.7 MB, free: 9.262 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.543e-05/0.4071, allocations: 88.95 kB / 462.8 MB, free: 9.156 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.347e-05/0.4071, allocations: 3.984 kB / 462.8 MB, free: 9.152 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001738/0.4073, allocations: 20.05 kB / 462.8 MB, free: 9.133 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.47e-05/0.4073, allocations: 11.98 kB / 462.8 MB, free: 9.121 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.694e-06/0.4074, allocations: 0 / 462.8 MB, free: 9.121 MB / 346.7 MB Notification: Performance of sorting global known variables: time 9.093e-05/0.4075, allocations: 119.2 kB / 462.9 MB, free: 9.004 MB / 346.7 MB Notification: Performance of sort global known variables: time 2.71e-07/0.4075, allocations: 0 / 462.9 MB, free: 9.004 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002897/0.4078, allocations: 39.94 kB / 462.9 MB, free: 8.965 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (SaturatingInductance1.Psi,Inductance1.i) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked 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.0009284/0.4087, allocations: 0.838 MB / 463.8 MB, free: 8.098 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0007388/0.4094, allocations: 156 kB / 463.9 MB, free: 7.945 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.835e-06/0.4095, allocations: 0 / 463.9 MB, free: 7.945 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003073/0.4098, allocations: 158.7 kB / 464.1 MB, free: 7.777 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001584/0.4099, allocations: 10.91 kB / 464.1 MB, free: 7.77 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001963/0.4119, allocations: 1.131 MB / 465.2 MB, free: 6.582 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000271/0.4122, allocations: 0.7199 MB / 466 MB, free: 5.836 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 6.396e-05/0.4123, allocations: 16.55 kB / 466 MB, free: 5.82 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.677e-05/0.4124, allocations: 39.41 kB / 466 MB, free: 5.781 MB / 346.7 MB Notification: Performance of SimCode: time 4.21e-07/0.4124, allocations: 0 / 466 MB, free: 5.781 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.015/0.4274, allocations: 2.86 MB / 468.9 MB, free: 2.961 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002203/0.4276, allocations: 224.1 kB / 469.1 MB, free: 2.715 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.65/2.078, allocations: 0 / 469.1 MB, free: 2.715 MB / 346.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Analog_Examples_ShowSaturatingInductor_fmu --startTime=0 --stopTime=6.2832 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Analog_Examples_ShowSaturatingInductor.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor_res.mat does not exist to compare? outputFormat=mat