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.001057/0.001057, allocations: 93.61 kB / 16.3 MB, free: 6.133 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.001645/0.001645, allocations: 179.3 kB / 17.2 MB, free: 6.016 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.475/1.475, allocations: 223.2 MB / 241.1 MB, free: 384 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004403/0.0004405, allocations: 8 kB / 300.8 MB, free: 6.379 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1413/0.1418, allocations: 50.42 MB / 351.2 MB, free: 3.949 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ShowSaturatingInductor): time 0.00249/0.1443, allocations: 1.631 MB / 352.9 MB, free: 2.305 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009224/0.1453, allocations: 0.5303 MB / 353.4 MB, free: 1.77 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.429e-05/0.1454, allocations: 4 kB / 353.4 MB, free: 1.766 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 3.783e-05/0.1454, allocations: 7.922 kB / 353.4 MB, free: 1.758 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001439/0.1456, allocations: 51.83 kB / 353.5 MB, free: 1.707 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003231/0.1459, allocations: 63.91 kB / 353.5 MB, free: 1.645 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001726/0.1461, allocations: 119.7 kB / 353.6 MB, free: 1.527 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001554/0.1462, allocations: 41.45 kB / 353.7 MB, free: 1.48 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000174/0.1464, allocations: 71.75 kB / 353.8 MB, free: 1.41 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001122/0.1465, allocations: 63.69 kB / 353.8 MB, free: 1.348 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.623e-05/0.1466, allocations: 8 kB / 353.8 MB, free: 1.34 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.322e-05/0.1466, allocations: 8 kB / 353.8 MB, free: 1.332 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 3.298e-05/0.1467, allocations: 27.91 kB / 353.9 MB, free: 1.305 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 4.618e-05/0.1467, allocations: 49.64 kB / 353.9 MB, free: 1.25 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00017/0.1469, allocations: 123.9 kB / 354 MB, free: 1.129 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.454e-06/0.1469, allocations: 0 / 354 MB, free: 1.129 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.823e-06/0.1469, allocations: 0 / 354 MB, free: 1.129 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.624e-06/0.1469, allocations: 4 kB / 354 MB, free: 1.125 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.0007969/0.1477, allocations: 446.7 kB / 354.5 MB, free: 0.6406 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.613e-05/0.1478, allocations: 8.031 kB / 354.5 MB, free: 0.6328 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.395e-05/0.1479, allocations: 46.52 kB / 354.5 MB, free: 0.5781 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.505e-05/0.1479, allocations: 15.81 kB / 354.5 MB, free: 0.5625 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002195/0.1481, allocations: 198.8 kB / 354.7 MB, free: 336 kB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.58e-05/0.1482, allocations: 11.94 kB / 354.7 MB, free: 324 kB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.399e-05/0.1482, allocations: 12 kB / 354.8 MB, free: 312 kB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003409/0.1485, allocations: 156 kB / 354.9 MB, free: 140 kB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.456e-05/0.1486, allocations: 0 / 354.9 MB, free: 140 kB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.763e-05/0.1486, allocations: 0 / 354.9 MB, free: 140 kB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.476e-06/0.1486, allocations: 7.953 kB / 354.9 MB, free: 132 kB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002779/0.1489, allocations: 95.94 kB / 355 MB, free: 36 kB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00101/0.1499, allocations: 0.5111 MB / 355.5 MB, free: 15.47 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000302/0.1502, allocations: 106.5 kB / 355.6 MB, free: 15.36 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.64e-05/0.1503, allocations: 0 / 355.6 MB, free: 15.36 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.188e-05/0.1503, allocations: 38.48 kB / 355.7 MB, free: 15.31 MB / 302.1 MB Notification: Performance of pre-optimization done (n=7): time 1.012e-06/0.1503, allocations: 4 kB / 355.7 MB, free: 15.3 MB / 302.1 MB Notification: Performance of matching and sorting (n=7): time 0.0005059/0.1508, allocations: 157.6 kB / 355.8 MB, free: 15.14 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.718e-05/0.1509, allocations: 102.8 kB / 355.9 MB, free: 15.02 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001537/0.1511, allocations: 168.4 kB / 356.1 MB, free: 14.85 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.547e-05/0.1511, allocations: 29.7 kB / 356.1 MB, free: 14.81 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.374e-05/0.1512, allocations: 119.9 kB / 356.2 MB, free: 14.69 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.804e-05/0.1512, allocations: 23.64 kB / 356.3 MB, free: 14.67 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.528e-06/0.1513, allocations: 4 kB / 356.3 MB, free: 14.66 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001351/0.1514, allocations: 322.8 kB / 356.6 MB, free: 14.34 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001353/0.1515, allocations: 43.98 kB / 356.6 MB, free: 14.3 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001544/0.1517, allocations: 88.19 kB / 356.7 MB, free: 14.2 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001313/0.1518, allocations: 44.02 kB / 356.7 MB, free: 14.15 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.924e-06/0.1518, allocations: 0 / 356.7 MB, free: 14.15 MB / 302.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003416/0.1522, allocations: 149.4 kB / 356.9 MB, free: 14 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.126e-05/0.1522, allocations: 8 kB / 356.9 MB, free: 13.99 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.59e-06/0.1522, allocations: 0 / 356.9 MB, free: 13.99 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.444e-05/0.1523, allocations: 4.031 kB / 356.9 MB, free: 13.99 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005784/0.1528, allocations: 83.92 kB / 357 MB, free: 13.91 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001499/0.1544, allocations: 1.405 MB / 358.4 MB, free: 12.36 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001731/0.1545, allocations: 28.12 kB / 358.4 MB, free: 12.33 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.454e-05/0.1546, allocations: 7.984 kB / 358.4 MB, free: 12.32 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.0001487/0.1547, allocations: 121.8 kB / 358.5 MB, free: 12.2 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.582e-05/0.1548, allocations: 7.906 kB / 358.5 MB, free: 12.19 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004585/0.1552, allocations: 171.5 kB / 358.7 MB, free: 12.01 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.494e-06/0.1552, allocations: 0 / 358.7 MB, free: 12.01 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.715e-06/0.1553, allocations: 3.953 kB / 358.7 MB, free: 12.01 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.25e-06/0.1553, allocations: 4 kB / 358.7 MB, free: 12 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002711/0.1555, allocations: 225.5 kB / 358.9 MB, free: 11.73 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.483e-06/0.1555, allocations: 0 / 358.9 MB, free: 11.73 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001504/0.1557, allocations: 23.98 kB / 359 MB, free: 11.71 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002579/0.156, allocations: 36.83 kB / 359 MB, free: 11.67 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.327e-05/0.156, allocations: 7.938 kB / 359 MB, free: 11.66 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001177/0.1572, allocations: 1.3 MB / 360.3 MB, free: 10.23 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.538e-06/0.1572, allocations: 11.92 kB / 360.3 MB, free: 10.22 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005957/0.1578, allocations: 304.4 kB / 360.6 MB, free: 9.902 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.627e-05/0.1579, allocations: 93.03 kB / 360.7 MB, free: 9.793 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.514e-05/0.1579, allocations: 12.06 kB / 360.7 MB, free: 9.781 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001575/0.1581, allocations: 15.94 kB / 360.7 MB, free: 9.766 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.207e-05/0.1581, allocations: 4 kB / 360.7 MB, free: 9.762 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.145e-05/0.1581, allocations: 11.98 kB / 360.8 MB, free: 9.75 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001/0.1583, allocations: 119 kB / 360.9 MB, free: 9.637 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1583, allocations: 0 / 360.9 MB, free: 9.637 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003116/0.1586, allocations: 39.94 kB / 360.9 MB, free: 9.598 MB / 302.1 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.0009507/0.1595, allocations: 0.8302 MB / 361.7 MB, free: 8.738 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006766/0.1602, allocations: 148 kB / 361.9 MB, free: 8.594 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.1602, allocations: 0 / 361.9 MB, free: 8.594 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003618/0.1606, allocations: 170.7 kB / 362.1 MB, free: 8.414 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001865/0.1608, allocations: 18.64 kB / 362.1 MB, free: 8.398 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002001/0.1628, allocations: 1.113 MB / 363.2 MB, free: 7.23 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003923/0.1632, allocations: 0.7238 MB / 363.9 MB, free: 6.48 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 6.525e-05/0.1633, allocations: 16.41 kB / 363.9 MB, free: 6.465 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.395e-05/0.1634, allocations: 35.42 kB / 364 MB, free: 6.43 MB / 302.1 MB Notification: Performance of SimCode: time 4.61e-07/0.1634, allocations: 0 / 364 MB, free: 6.43 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01805/0.1814, allocations: 2.848 MB / 366.8 MB, free: 3.77 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003536/0.1819, allocations: 221.3 kB / 367 MB, free: 3.531 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.92/2.102, allocations: 0 / 367 MB, free: 3.531 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