Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ShowSaturatingInductor,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_ShowSaturatingInductor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ShowSaturatingInductor,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_ShowSaturatingInductor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001147/0.001147, allocations: 202.8 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.414/1.414, allocations: 225.6 MB / 234.8 MB, free: 3.254 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009695/0.0009694, allocations: 89.78 kB / 286.7 MB, free: 5.293 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.301e-05/2.302e-05, allocations: 4 kB / 343.8 MB, free: 8.18 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09807/0.09811, allocations: 51.47 MB / 395.3 MB, free: 4.668 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3213/0.4195, allocations: 78.48 MB / 473.7 MB, free: 13.06 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001932/0.4198, allocations: 67.44 kB / 473.8 MB, free: 13.04 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.009039/0.4288, allocations: 3.359 MB / 477.2 MB, free: 11.09 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.283e-06/0.4288, allocations: 0 / 477.2 MB, free: 11.09 MB / 346.7 MB Notification: Performance of Transformations before backend: time 8.656e-06/0.4288, allocations: 4 kB / 477.2 MB, free: 11.09 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.0005141/0.4294, allocations: 437.5 kB / 477.6 MB, free: 10.65 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.6e-05/0.4294, allocations: 11.97 kB / 477.6 MB, free: 10.64 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003793/0.4298, allocations: 53.98 kB / 477.7 MB, free: 10.6 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001258/0.4299, allocations: 199.6 kB / 477.8 MB, free: 10.37 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.255e-05/0.43, allocations: 0 / 477.8 MB, free: 10.37 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.552e-05/0.43, allocations: 11.61 kB / 477.9 MB, free: 10.36 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001279/0.4301, allocations: 61.59 kB / 477.9 MB, free: 10.33 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00017/0.4303, allocations: 121.2 kB / 478 MB, free: 10.23 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.054e-05/0.4303, allocations: 0 / 478 MB, free: 10.23 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.69e-05/0.4303, allocations: 3.984 kB / 478 MB, free: 10.23 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.328e-06/0.4304, allocations: 7.938 kB / 478 MB, free: 10.22 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007384/0.4311, allocations: 484.4 kB / 478.5 MB, free: 9.848 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001119/0.4312, allocations: 79.38 kB / 478.6 MB, free: 9.785 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.478e-05/0.4313, allocations: 49.7 kB / 478.6 MB, free: 9.75 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.882e-05/0.4314, allocations: 8.141 kB / 478.7 MB, free: 9.742 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.606e-05/0.4314, allocations: 34.52 kB / 478.7 MB, free: 9.699 MB / 346.7 MB Notification: Performance of pre-optimization done (n=7): time 1.163e-06/0.4314, allocations: 0 / 478.7 MB, free: 9.699 MB / 346.7 MB Notification: Performance of matching and sorting (n=7): time 0.0001894/0.4316, allocations: 81.7 kB / 478.8 MB, free: 9.633 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.572e-05/0.4316, allocations: 108.4 kB / 478.9 MB, free: 9.504 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.557e-05/0.4317, allocations: 143.2 kB / 479 MB, free: 9.379 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.5e-05/0.4317, allocations: 25.7 kB / 479 MB, free: 9.348 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.073e-05/0.4318, allocations: 117.4 kB / 479.2 MB, free: 9.246 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.736e-05/0.4318, allocations: 22.44 kB / 479.2 MB, free: 9.23 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.093e-06/0.4318, allocations: 1.688 kB / 479.2 MB, free: 9.23 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 5.182e-05/0.4319, allocations: 322.3 kB / 479.5 MB, free: 8.914 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.276e-05/0.4319, allocations: 23.56 kB / 479.5 MB, free: 8.902 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.125e-05/0.432, allocations: 77.02 kB / 479.6 MB, free: 8.828 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.451e-05/0.4321, allocations: 24.73 kB / 479.6 MB, free: 8.816 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.414e-06/0.4321, allocations: 4 kB / 479.6 MB, free: 8.812 MB / 346.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001569/0.4322, allocations: 113.6 kB / 479.7 MB, free: 8.727 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.297e-05/0.4323, allocations: 8.094 kB / 479.7 MB, free: 8.719 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.699e-06/0.4323, allocations: 0 / 479.7 MB, free: 8.719 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.341e-05/0.4323, allocations: 7.953 kB / 479.7 MB, free: 8.711 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005512/0.4328, allocations: 81.56 kB / 479.8 MB, free: 8.652 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009221/0.4338, allocations: 1.325 MB / 481.2 MB, free: 7.277 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001679/0.4339, allocations: 28.89 kB / 481.2 MB, free: 7.254 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.17e-05/0.434, allocations: 4 kB / 481.2 MB, free: 7.25 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 6.517e-05/0.434, allocations: 106.3 kB / 481.3 MB, free: 7.141 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001278/0.4342, allocations: 83.7 kB / 481.4 MB, free: 7.074 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.993e-05/0.4342, allocations: 17.25 kB / 481.4 MB, free: 7.059 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002726/0.4345, allocations: 133.5 kB / 481.5 MB, free: 6.965 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.454e-06/0.4345, allocations: 6.719 kB / 481.5 MB, free: 6.961 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.904e-06/0.4345, allocations: 3.25 kB / 481.5 MB, free: 6.961 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.298e-06/0.4345, allocations: 1.594 kB / 481.5 MB, free: 6.961 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004689/0.435, allocations: 396.6 kB / 481.9 MB, free: 6.609 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.764e-06/0.435, allocations: 0 / 481.9 MB, free: 6.609 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001366/0.4352, allocations: 30.03 kB / 481.9 MB, free: 6.586 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002254/0.4354, allocations: 37.02 kB / 482 MB, free: 6.559 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.155e-05/0.4354, allocations: 0 / 482 MB, free: 6.559 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006648/0.4361, allocations: 1.239 MB / 483.2 MB, free: 5.273 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.775e-06/0.4361, allocations: 4.031 kB / 483.2 MB, free: 5.27 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003065/0.4364, allocations: 261.8 kB / 483.5 MB, free: 5.035 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.894e-05/0.4365, allocations: 91.98 kB / 483.6 MB, free: 4.93 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.177e-05/0.4365, allocations: 3.938 kB / 483.6 MB, free: 4.926 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001635/0.4366, allocations: 15.23 kB / 483.6 MB, free: 4.914 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.713e-05/0.4367, allocations: 15.06 kB / 483.6 MB, free: 4.902 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.183e-06/0.4367, allocations: 1.312 kB / 483.6 MB, free: 4.902 MB / 346.7 MB Notification: Performance of sorting global known variables: time 5.551e-05/0.4368, allocations: 115.2 kB / 483.7 MB, free: 4.805 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.4368, allocations: 0 / 483.7 MB, free: 4.805 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.000278/0.4371, allocations: 33.31 kB / 483.7 MB, free: 4.773 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.0005713/0.4376, allocations: 0.8832 MB / 484.6 MB, free: 3.914 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.000529/0.4382, allocations: 111.7 kB / 484.7 MB, free: 3.84 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.206e-06/0.4382, allocations: 4.188 kB / 484.7 MB, free: 3.836 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001801/0.4384, allocations: 133.4 kB / 484.9 MB, free: 3.711 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001553/0.4385, allocations: 6.562 kB / 484.9 MB, free: 3.711 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001292/0.4398, allocations: 471.6 kB / 485.3 MB, free: 3.293 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002145/0.4401, allocations: 0.7148 MB / 486.1 MB, free: 18.56 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 5.963e-05/0.4401, allocations: 16.53 kB / 486.1 MB, free: 18.54 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.287e-05/0.4402, allocations: 42.11 kB / 486.1 MB, free: 18.53 MB / 362.7 MB Notification: Performance of SimCode: time 3e-07/0.4402, allocations: 0 / 486.1 MB, free: 18.53 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02036/0.4606, allocations: 2.365 MB / 488.5 MB, free: 16.22 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001666/0.4608, allocations: 147.8 kB / 488.6 MB, free: 16.03 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.632/2.093, allocations: 3.25 kB / 488.6 MB, free: 16.03 MB / 362.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_ShowSaturatingInductor_fmu --startTime=0 --stopTime=6.2832 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_ShowSaturatingInductor.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor_res.mat does not exist to compare? outputFormat=mat