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.001481/0.00148, 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.081/2.081, 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.00109/0.001089, allocations: 94.23 kB / 262.1 MB, free: 13.87 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.711e-05/2.747e-05, allocations: 4 kB / 314.9 MB, free: 9.062 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3426/0.3426, allocations: 47.57 MB / 362.4 MB, free: 45.73 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1271/0.4698, allocations: 76.21 MB / 438.6 MB, free: 10 MB / 331.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000416/0.4703, allocations: 69 kB / 438.7 MB, free: 9.938 MB / 331.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.01632/0.4866, allocations: 3.128 MB / 441.8 MB, free: 6.844 MB / 331.1 MB Notification: Performance of FrontEnd: time 2.024e-06/0.4867, allocations: 0 / 441.8 MB, free: 6.844 MB / 331.1 MB Notification: Performance of Transformations before backend: time 1.044e-05/0.4867, allocations: 0 / 441.8 MB, free: 6.844 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: 23 * Number of variables: 23 Notification: Performance of Generate backend data structure: time 0.001022/0.4878, allocations: 437.1 kB / 442.3 MB, free: 6.375 MB / 331.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.762e-05/0.4878, allocations: 8.781 kB / 442.3 MB, free: 6.367 MB / 331.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.446e-05/0.4879, allocations: 19.8 kB / 442.3 MB, free: 6.348 MB / 331.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002647/0.4882, allocations: 201.4 kB / 442.5 MB, free: 6.113 MB / 331.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.548e-05/0.4882, allocations: 3.953 kB / 442.5 MB, free: 6.109 MB / 331.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.681e-05/0.4883, allocations: 8 kB / 442.5 MB, free: 6.102 MB / 331.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002446/0.4885, allocations: 63.98 kB / 442.6 MB, free: 6.039 MB / 331.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000305/0.4889, allocations: 128 kB / 442.7 MB, free: 5.898 MB / 331.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.551e-05/0.4889, allocations: 0 / 442.7 MB, free: 5.898 MB / 331.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.766e-05/0.4889, allocations: 5.953 kB / 442.7 MB, free: 5.895 MB / 331.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.958e-06/0.489, allocations: 4 kB / 442.7 MB, free: 5.891 MB / 331.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00142/0.4904, allocations: 483.9 kB / 443.2 MB, free: 5.375 MB / 331.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002112/0.4906, allocations: 66.56 kB / 443.2 MB, free: 5.301 MB / 331.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001823/0.4908, allocations: 52.86 kB / 443.3 MB, free: 5.246 MB / 331.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.635e-05/0.4909, allocations: 4 kB / 443.3 MB, free: 5.242 MB / 331.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.532e-05/0.4909, allocations: 34.55 kB / 443.3 MB, free: 5.199 MB / 331.1 MB Notification: Performance of pre-optimization done (n=7): time 2.955e-06/0.4909, allocations: 3.938 kB / 443.3 MB, free: 5.195 MB / 331.1 MB Notification: Performance of matching and sorting (n=7): time 0.0003365/0.4913, allocations: 87.41 kB / 443.4 MB, free: 5.105 MB / 331.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.862e-05/0.4914, allocations: 106.8 kB / 443.5 MB, free: 4.977 MB / 331.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001928/0.4916, allocations: 136.1 kB / 443.7 MB, free: 4.84 MB / 331.1 MB Notification: Performance of collectPreVariables (initialization): time 3.646e-05/0.4916, allocations: 29.92 kB / 443.7 MB, free: 4.805 MB / 331.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000134/0.4918, allocations: 178.3 kB / 443.9 MB, free: 4.629 MB / 331.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.859e-05/0.4918, allocations: 31.58 kB / 443.9 MB, free: 4.598 MB / 331.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.818e-06/0.4919, allocations: 0 / 443.9 MB, free: 4.598 MB / 331.1 MB Notification: Performance of setup shared object (initialization): time 0.0001455/0.492, allocations: 314.8 kB / 444.2 MB, free: 4.281 MB / 331.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.575e-05/0.4921, allocations: 27.98 kB / 444.2 MB, free: 4.254 MB / 331.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001357/0.4922, allocations: 60.59 kB / 444.3 MB, free: 4.18 MB / 331.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001163/0.4924, allocations: 39.95 kB / 444.3 MB, free: 4.141 MB / 331.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.957e-06/0.4924, allocations: 0 / 444.3 MB, free: 4.141 MB / 331.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003128/0.4927, allocations: 101.5 kB / 444.4 MB, free: 4.035 MB / 331.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.424e-05/0.4928, allocations: 9.109 kB / 444.4 MB, free: 4.027 MB / 331.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.718e-06/0.4928, allocations: 4 kB / 444.4 MB, free: 4.023 MB / 331.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.763e-05/0.4928, allocations: 0 / 444.4 MB, free: 4.023 MB / 331.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001103/0.4939, allocations: 91.94 kB / 444.5 MB, free: 3.934 MB / 331.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001934/0.4959, allocations: 1.33 MB / 445.9 MB, free: 2.488 MB / 331.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003453/0.4963, allocations: 19.95 kB / 445.9 MB, free: 2.469 MB / 331.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.41e-05/0.4964, allocations: 8 kB / 445.9 MB, free: 2.461 MB / 331.1 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.0001346/0.4965, allocations: 113 kB / 446 MB, free: 2.344 MB / 331.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0002512/0.4968, allocations: 85.22 kB / 446.1 MB, free: 2.258 MB / 331.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.68e-05/0.4968, allocations: 15.81 kB / 446.1 MB, free: 2.242 MB / 331.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000517/0.4974, allocations: 127 kB / 446.2 MB, free: 2.109 MB / 331.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.12e-06/0.4974, allocations: 0 / 446.2 MB, free: 2.109 MB / 331.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.966e-06/0.4974, allocations: 1.031 kB / 446.2 MB, free: 2.109 MB / 331.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.28e-06/0.4974, allocations: 0 / 446.2 MB, free: 2.109 MB / 331.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009763/0.4984, allocations: 407.5 kB / 446.6 MB, free: 1.664 MB / 331.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.987e-06/0.4984, allocations: 0 / 446.6 MB, free: 1.664 MB / 331.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002638/0.4987, allocations: 19.98 kB / 446.6 MB, free: 1.645 MB / 331.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003693/0.4991, allocations: 40.86 kB / 446.7 MB, free: 1.602 MB / 331.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.99e-05/0.4991, allocations: 3.984 kB / 446.7 MB, free: 1.598 MB / 331.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001497/0.5006, allocations: 1.233 MB / 447.9 MB, free: 260 kB / 331.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.617e-06/0.5007, allocations: 0 / 447.9 MB, free: 260 kB / 331.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006712/0.5014, allocations: 264.6 kB / 448.2 MB, free: 15.96 MB / 347.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.016e-05/0.5015, allocations: 101.1 kB / 448.3 MB, free: 15.85 MB / 347.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.743e-05/0.5015, allocations: 3.938 kB / 448.3 MB, free: 15.84 MB / 347.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003016/0.5018, allocations: 15.98 kB / 448.3 MB, free: 15.83 MB / 347.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.17e-05/0.5019, allocations: 7.781 kB / 448.3 MB, free: 15.82 MB / 347.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.519e-05/0.502, allocations: 7.984 kB / 448.3 MB, free: 15.82 MB / 347.1 MB Notification: Performance of sorting global known variables: time 0.0001653/0.5022, allocations: 112 kB / 448.4 MB, free: 15.71 MB / 347.1 MB Notification: Performance of sort global known variables: time 4.21e-07/0.5022, allocations: 7.938 kB / 448.4 MB, free: 15.7 MB / 347.1 MB Notification: Performance of remove unused functions: time 0.0004617/0.5026, allocations: 32 kB / 448.4 MB, free: 15.67 MB / 347.1 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.001095/0.5038, allocations: 0.8673 MB / 449.3 MB, free: 14.76 MB / 347.1 MB Notification: Performance of simCode: created initialization part: time 0.001022/0.5048, allocations: 111.9 kB / 449.4 MB, free: 14.65 MB / 347.1 MB Notification: Performance of simCode: created event and clocks part: time 5.169e-06/0.5049, allocations: 0 / 449.4 MB, free: 14.65 MB / 347.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003641/0.5052, allocations: 142.4 kB / 449.6 MB, free: 14.5 MB / 347.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002622/0.5055, allocations: 8.25 kB / 449.6 MB, free: 14.5 MB / 347.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002749/0.5083, allocations: 495.6 kB / 450.1 MB, free: 13.97 MB / 347.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003657/0.5087, allocations: 0.7139 MB / 450.8 MB, free: 13.23 MB / 347.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001271/0.5088, allocations: 43.42 kB / 450.8 MB, free: 13.19 MB / 347.1 MB Notification: Performance of SimCode: time 1.042e-06/0.5088, allocations: 3.938 kB / 450.8 MB, free: 13.19 MB / 347.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.81/3.319, allocations: 2.725 MB / 453.5 MB, free: 10.48 MB / 347.1 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