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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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) 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001054/0.001053, allocations: 87.2 kB / 16.31 MB, free: 6.457 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001139/0.001139, allocations: 180.2 kB / 17.21 MB, free: 6.328 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.52/1.52, allocations: 223.3 MB / 241.2 MB, free: 14.61 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003498/0.0003501, allocations: 8 kB / 300.9 MB, free: 6.137 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1288/0.1292, allocations: 50.42 MB / 351.3 MB, free: 3.699 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ShowSaturatingInductor): time 0.002964/0.1322, allocations: 1.678 MB / 353 MB, free: 2.008 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001149/0.1334, allocations: 0.5341 MB / 353.6 MB, free: 1.469 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.07e-05/0.1335, allocations: 4 kB / 353.6 MB, free: 1.465 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 4.28e-05/0.1335, allocations: 11.92 kB / 353.6 MB, free: 1.453 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001545/0.1337, allocations: 39.67 kB / 353.6 MB, free: 1.414 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003742/0.1341, allocations: 71.84 kB / 353.7 MB, free: 1.344 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002102/0.1343, allocations: 167.2 kB / 353.8 MB, free: 1.18 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002041/0.1345, allocations: 53.39 kB / 353.9 MB, free: 1.121 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001957/0.1347, allocations: 67.78 kB / 354 MB, free: 1.055 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001386/0.1348, allocations: 67.67 kB / 354 MB, free: 0.9883 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.017e-05/0.1349, allocations: 8 kB / 354 MB, free: 0.9805 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.754e-05/0.1349, allocations: 8 kB / 354 MB, free: 0.9727 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 3.569e-05/0.135, allocations: 23.86 kB / 354.1 MB, free: 0.9492 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 6.363e-05/0.135, allocations: 53.62 kB / 354.1 MB, free: 0.8906 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001758/0.1352, allocations: 119.9 kB / 354.2 MB, free: 0.7734 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.229e-05/0.1352, allocations: 3.984 kB / 354.2 MB, free: 0.7695 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.755e-06/0.1352, allocations: 0 / 354.2 MB, free: 0.7695 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.208e-05/0.1353, allocations: 0 / 354.2 MB, free: 0.7695 MB / 286.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.0008489/0.1361, allocations: 450.7 kB / 354.7 MB, free: 288 kB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.398e-05/0.1362, allocations: 8.031 kB / 354.7 MB, free: 280 kB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.246e-05/0.1362, allocations: 42.55 kB / 354.7 MB, free: 228 kB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.542e-05/0.1363, allocations: 19.81 kB / 354.7 MB, free: 208 kB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002195/0.1365, allocations: 197.7 kB / 354.9 MB, free: 15.97 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.628e-05/0.1366, allocations: 8 kB / 354.9 MB, free: 15.96 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.981e-05/0.1366, allocations: 8 kB / 355 MB, free: 15.96 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003186/0.1369, allocations: 144.1 kB / 355.1 MB, free: 15.8 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.51e-05/0.1369, allocations: 3.984 kB / 355.1 MB, free: 15.8 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.335e-05/0.137, allocations: 15.95 kB / 355.1 MB, free: 15.78 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.95e-06/0.137, allocations: 3.938 kB / 355.1 MB, free: 15.78 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002759/0.1373, allocations: 99.88 kB / 355.2 MB, free: 15.68 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009093/0.1382, allocations: 0.511 MB / 355.7 MB, free: 15.11 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003025/0.1385, allocations: 106.5 kB / 355.8 MB, free: 15 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002014/0.1387, allocations: 64.83 kB / 355.9 MB, free: 14.93 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.929e-05/0.1387, allocations: 4 kB / 355.9 MB, free: 14.93 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.874e-05/0.1388, allocations: 34.56 kB / 355.9 MB, free: 14.89 MB / 302.1 MB Notification: Performance of pre-optimization done (n=7): time 1.132e-06/0.1388, allocations: 0 / 355.9 MB, free: 14.89 MB / 302.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004882/0.1393, allocations: 157.4 kB / 356.1 MB, free: 14.73 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001116/0.1394, allocations: 110.8 kB / 356.2 MB, free: 14.59 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001812/0.1396, allocations: 153.9 kB / 356.3 MB, free: 14.44 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.63e-05/0.1396, allocations: 29.7 kB / 356.4 MB, free: 14.4 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001275/0.1398, allocations: 120 kB / 356.5 MB, free: 14.28 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.658e-05/0.1398, allocations: 31.62 kB / 356.5 MB, free: 14.25 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.752e-06/0.1398, allocations: 0 / 356.5 MB, free: 14.25 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001921/0.14, allocations: 326.8 kB / 356.8 MB, free: 13.92 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000138/0.1402, allocations: 43.97 kB / 356.9 MB, free: 13.88 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000161/0.1403, allocations: 76.27 kB / 357 MB, free: 13.79 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001561/0.1405, allocations: 48.27 kB / 357 MB, free: 13.74 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.481e-06/0.1405, allocations: 4 kB / 357 MB, free: 13.74 MB / 302.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003611/0.1409, allocations: 157.3 kB / 357.2 MB, free: 13.58 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.711e-05/0.1409, allocations: 8 kB / 357.2 MB, free: 13.57 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.797e-06/0.1409, allocations: 0 / 357.2 MB, free: 13.57 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.52e-05/0.141, allocations: 0 / 357.2 MB, free: 13.57 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005764/0.1415, allocations: 79.92 kB / 357.3 MB, free: 13.49 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001531/0.1431, allocations: 1.402 MB / 358.7 MB, free: 11.95 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001724/0.1433, allocations: 31.86 kB / 358.7 MB, free: 11.92 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.061e-05/0.1433, allocations: 0 / 358.7 MB, free: 11.92 MB / 302.1 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.0001174/0.1434, allocations: 121.8 kB / 358.8 MB, free: 11.79 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.919e-05/0.1435, allocations: 7.906 kB / 358.8 MB, free: 11.78 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004516/0.1439, allocations: 171.1 kB / 359 MB, free: 11.61 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.008e-06/0.1439, allocations: 3.953 kB / 359 MB, free: 11.6 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.062e-06/0.1439, allocations: 0 / 359 MB, free: 11.6 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.246e-06/0.144, allocations: 0 / 359 MB, free: 11.6 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000767/0.1447, allocations: 475.9 kB / 359.4 MB, free: 11.07 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.347e-06/0.1447, allocations: 4.031 kB / 359.4 MB, free: 11.07 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001757/0.1449, allocations: 28.02 kB / 359.5 MB, free: 11.04 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002541/0.1452, allocations: 40.81 kB / 359.5 MB, free: 11 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.378e-05/0.1452, allocations: 4 kB / 359.5 MB, free: 11 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001095/0.1463, allocations: 1.288 MB / 360.8 MB, free: 9.574 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.794e-06/0.1463, allocations: 0 / 360.8 MB, free: 9.574 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005744/0.1469, allocations: 313 kB / 361.1 MB, free: 9.246 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.325e-05/0.147, allocations: 85.05 kB / 361.2 MB, free: 9.145 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.373e-05/0.147, allocations: 4 kB / 361.2 MB, free: 9.141 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001556/0.1472, allocations: 15.98 kB / 361.2 MB, free: 9.125 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.37e-05/0.1472, allocations: 7.984 kB / 361.2 MB, free: 9.117 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.843e-06/0.1472, allocations: 4.062 kB / 361.2 MB, free: 9.113 MB / 302.1 MB Notification: Performance of sorting global known variables: time 9.735e-05/0.1474, allocations: 123.3 kB / 361.3 MB, free: 8.992 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1474, allocations: 0 / 361.3 MB, free: 8.992 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003124/0.1477, allocations: 43.84 kB / 361.4 MB, free: 8.949 MB / 302.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 () * 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.0009707/0.1487, allocations: 0.8272 MB / 362.2 MB, free: 8.09 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006276/0.1493, allocations: 143.9 kB / 362.4 MB, free: 7.949 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.26e-06/0.1493, allocations: 4.062 kB / 362.4 MB, free: 7.945 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003128/0.1496, allocations: 166.6 kB / 362.5 MB, free: 7.77 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000257/0.1499, allocations: 12 kB / 362.5 MB, free: 7.758 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002434/0.1523, allocations: 1.149 MB / 363.7 MB, free: 6.551 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003252/0.1527, allocations: 0.7158 MB / 364.4 MB, free: 5.809 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 6.147e-05/0.1528, allocations: 8.547 kB / 364.4 MB, free: 5.801 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.144e-05/0.1528, allocations: 47.41 kB / 364.5 MB, free: 5.754 MB / 302.1 MB Notification: Performance of SimCode: time 5.21e-07/0.1528, allocations: 0 / 364.5 MB, free: 5.754 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01535/0.1682, allocations: 2.909 MB / 367.4 MB, free: 3.039 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002035/0.1684, allocations: 238.4 kB / 367.6 MB, free: 2.789 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.927/2.096, allocations: 0 / 367.6 MB, free: 2.789 MB / 302.1 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