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.0009668/0.000967, allocations: 176.2 kB / 8.348 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.431/1.431, allocations: 221.5 MB / 230.3 MB, free: 7.59 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.001078/0.001079, allocations: 90.42 kB / 281.2 MB, free: 5.34 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.979e-05/1.983e-05, allocations: 4 kB / 337.1 MB, free: 9.953 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1107/0.1107, allocations: 50.42 MB / 387.6 MB, free: 7.492 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3158/0.4265, allocations: 77.66 MB / 465.2 MB, free: 1.156 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001976/0.4268, allocations: 64.72 kB / 465.3 MB, free: 1.094 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.009264/0.436, allocations: 3.266 MB / 468.5 MB, free: 13.82 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.393e-06/0.4361, allocations: 3.938 kB / 468.6 MB, free: 13.82 MB / 346.7 MB Notification: Performance of Transformations before backend: time 7.494e-06/0.4361, allocations: 0 / 468.6 MB, free: 13.82 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.0005658/0.4367, allocations: 437.1 kB / 469 MB, free: 13.35 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.472e-05/0.4367, allocations: 8.031 kB / 469 MB, free: 13.34 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.024e-05/0.4368, allocations: 15.81 kB / 469 MB, free: 13.33 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001704/0.4369, allocations: 195.1 kB / 469.2 MB, free: 13.1 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.04e-05/0.437, allocations: 4 kB / 469.2 MB, free: 13.09 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.427e-05/0.437, allocations: 11.91 kB / 469.2 MB, free: 13.08 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001439/0.4372, allocations: 59.98 kB / 469.3 MB, free: 13.02 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001988/0.4374, allocations: 124 kB / 469.4 MB, free: 12.89 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.213e-05/0.4374, allocations: 3.984 kB / 469.4 MB, free: 12.88 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.913e-05/0.4374, allocations: 0 / 469.4 MB, free: 12.88 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.64e-06/0.4374, allocations: 8.156 kB / 469.4 MB, free: 12.88 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008271/0.4383, allocations: 483.9 kB / 469.9 MB, free: 12.36 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001161/0.4384, allocations: 74.5 kB / 469.9 MB, free: 12.28 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001034/0.4385, allocations: 52.84 kB / 470 MB, free: 12.22 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.124e-05/0.4385, allocations: 7.984 kB / 470 MB, free: 12.21 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.062e-05/0.4386, allocations: 30.56 kB / 470 MB, free: 12.18 MB / 346.7 MB Notification: Performance of pre-optimization done (n=7): time 1.183e-06/0.4386, allocations: 0 / 470 MB, free: 12.18 MB / 346.7 MB Notification: Performance of matching and sorting (n=7): time 0.0001904/0.4388, allocations: 81.52 kB / 470.1 MB, free: 12.09 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.521e-05/0.4388, allocations: 106.8 kB / 470.2 MB, free: 11.96 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000106/0.4389, allocations: 146.2 kB / 470.4 MB, free: 11.82 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.693e-05/0.4389, allocations: 25.7 kB / 470.4 MB, free: 11.79 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.754e-05/0.439, allocations: 115.9 kB / 470.5 MB, free: 11.67 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.143e-05/0.4391, allocations: 23.64 kB / 470.5 MB, free: 11.64 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.003e-06/0.4391, allocations: 4 kB / 470.5 MB, free: 11.64 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 8.875e-05/0.4392, allocations: 322.8 kB / 470.8 MB, free: 11.32 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.868e-05/0.4392, allocations: 24 kB / 470.9 MB, free: 11.29 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.018e-05/0.4393, allocations: 69.14 kB / 470.9 MB, free: 11.21 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.67e-05/0.4394, allocations: 27.98 kB / 471 MB, free: 11.18 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.559e-06/0.4394, allocations: 4 kB / 471 MB, free: 11.18 MB / 346.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001715/0.4395, allocations: 113.4 kB / 471.1 MB, free: 11.06 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.354e-05/0.4396, allocations: 4.094 kB / 471.1 MB, free: 11.05 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.369e-06/0.4396, allocations: 4.062 kB / 471.1 MB, free: 11.05 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.297e-05/0.4396, allocations: 8 kB / 471.1 MB, free: 11.04 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005681/0.4402, allocations: 87.91 kB / 471.2 MB, free: 10.96 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001124/0.4413, allocations: 1.319 MB / 472.5 MB, free: 9.52 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001687/0.4415, allocations: 28.05 kB / 472.5 MB, free: 9.492 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.579e-05/0.4415, allocations: 11.98 kB / 472.5 MB, free: 9.48 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.208e-05/0.4416, allocations: 104.9 kB / 472.6 MB, free: 9.371 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001402/0.4417, allocations: 85.83 kB / 472.7 MB, free: 9.281 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.183e-05/0.4418, allocations: 7.906 kB / 472.7 MB, free: 9.273 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002889/0.4421, allocations: 127 kB / 472.9 MB, free: 9.145 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.338e-06/0.4421, allocations: 15.89 kB / 472.9 MB, free: 9.129 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.142e-06/0.4421, allocations: 0 / 472.9 MB, free: 9.129 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.935e-06/0.4421, allocations: 0 / 472.9 MB, free: 9.129 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005294/0.4426, allocations: 400.6 kB / 473.3 MB, free: 8.688 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.134e-06/0.4427, allocations: 0 / 473.3 MB, free: 8.688 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001378/0.4428, allocations: 31.88 kB / 473.3 MB, free: 8.656 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002228/0.443, allocations: 40.86 kB / 473.3 MB, free: 8.613 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.077e-05/0.4431, allocations: 0 / 473.3 MB, free: 8.613 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008734/0.4439, allocations: 1.248 MB / 474.6 MB, free: 7.246 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.427e-06/0.444, allocations: 4.031 kB / 474.6 MB, free: 7.242 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003423/0.4443, allocations: 262.8 kB / 474.8 MB, free: 6.957 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.094e-05/0.4444, allocations: 88.95 kB / 474.9 MB, free: 6.852 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.35e-05/0.4444, allocations: 4 kB / 474.9 MB, free: 6.848 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001632/0.4446, allocations: 15.98 kB / 474.9 MB, free: 6.832 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.519e-05/0.4446, allocations: 12.05 kB / 475 MB, free: 6.82 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.753e-06/0.4446, allocations: 0 / 475 MB, free: 6.82 MB / 346.7 MB Notification: Performance of sorting global known variables: time 7.211e-05/0.4447, allocations: 115.3 kB / 475.1 MB, free: 6.707 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4447, allocations: 0 / 475.1 MB, free: 6.707 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002729/0.445, allocations: 32 kB / 475.1 MB, free: 6.676 MB / 346.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.0006144/0.4456, allocations: 0.8713 MB / 476 MB, free: 5.77 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0005238/0.4461, allocations: 115.9 kB / 476.1 MB, free: 5.656 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.196e-06/0.4462, allocations: 0 / 476.1 MB, free: 5.656 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002042/0.4464, allocations: 138 kB / 476.2 MB, free: 5.512 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001634/0.4465, allocations: 11.95 kB / 476.2 MB, free: 5.5 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001318/0.4479, allocations: 464.3 kB / 476.7 MB, free: 5.004 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002433/0.4481, allocations: 0.7119 MB / 477.4 MB, free: 4.266 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 6.222e-05/0.4482, allocations: 20.41 kB / 477.4 MB, free: 4.246 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.712e-05/0.4483, allocations: 39.42 kB / 477.5 MB, free: 4.207 MB / 346.7 MB Notification: Performance of SimCode: time 3.4e-07/0.4483, allocations: 0 / 477.5 MB, free: 4.207 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01957/0.4678, allocations: 2.368 MB / 479.8 MB, free: 1.855 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001806/0.4681, allocations: 153.1 kB / 480 MB, free: 1.66 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.608/2.076, allocations: 4.156 kB / 480 MB, free: 1.656 MB / 346.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