Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Electrical.Analog.TestSaturatingInductor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Electrical.Analog.TestSaturatingInductor,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Electrical_Analog_TestSaturatingInductor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Electrical.Analog.TestSaturatingInductor,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Electrical_Analog_TestSaturatingInductor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001433/0.001433, allocations: 104.5 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001401/0.001401, allocations: 214.4 kB / 18.59 MB, free: 4.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.501/1.501, allocations: 227.4 MB / 246.8 MB, free: 10.51 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2508/0.2508, allocations: 46.11 MB / 344.2 MB, free: 11.52 MB / 286.1 MB Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002298/0.002298, allocations: 84.62 kB / 417.8 MB, free: 19.57 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1454/0.1477, allocations: 62.44 MB / 480.2 MB, free: 5.105 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Analog.TestSaturatingInductor): time 0.003774/0.1515, allocations: 1.915 MB / 482.1 MB, free: 3.176 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001229/0.1528, allocations: 0.5922 MB / 482.7 MB, free: 2.578 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.794e-05/0.1529, allocations: 0 / 482.7 MB, free: 2.578 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 6.036e-05/0.153, allocations: 15.84 kB / 482.7 MB, free: 2.562 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002049/0.1532, allocations: 35.7 kB / 482.8 MB, free: 2.527 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002867/0.1535, allocations: 90.56 kB / 482.8 MB, free: 2.441 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001737/0.1537, allocations: 151.4 kB / 483 MB, free: 2.293 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001246/0.1538, allocations: 33.11 kB / 483 MB, free: 2.262 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002089/0.154, allocations: 79.64 kB / 483.1 MB, free: 2.184 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001041/0.1541, allocations: 63.73 kB / 483.2 MB, free: 2.121 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.569e-05/0.1542, allocations: 12 kB / 483.2 MB, free: 2.109 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.931e-05/0.1542, allocations: 28 kB / 483.2 MB, free: 2.082 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.244e-05/0.1543, allocations: 23.92 kB / 483.2 MB, free: 2.059 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.503e-05/0.1544, allocations: 67.66 kB / 483.3 MB, free: 1.992 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001961/0.1546, allocations: 139.8 kB / 483.4 MB, free: 1.855 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.55e-06/0.1546, allocations: 8 kB / 483.4 MB, free: 1.848 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.162e-06/0.1546, allocations: 0 / 483.4 MB, free: 1.848 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.46e-06/0.1546, allocations: 0 / 483.4 MB, free: 1.848 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 17 * Number of variables: 17 Notification: Performance of Generate backend data structure: time 0.0007834/0.1554, allocations: 443 kB / 483.9 MB, free: 1.367 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.846e-05/0.1554, allocations: 8.031 kB / 483.9 MB, free: 1.359 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.423e-05/0.1555, allocations: 42.75 kB / 483.9 MB, free: 1.309 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003041/0.1558, allocations: 40.72 kB / 484 MB, free: 1.27 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001954/0.156, allocations: 196.1 kB / 484.2 MB, free: 1.039 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.359e-05/0.156, allocations: 4.375 kB / 484.2 MB, free: 1.035 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.134e-05/0.1561, allocations: 8.375 kB / 484.2 MB, free: 1.027 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003978/0.1565, allocations: 142.7 kB / 484.3 MB, free: 0.875 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.497e-05/0.1565, allocations: 3.984 kB / 484.3 MB, free: 0.8711 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.586e-05/0.1565, allocations: 0 / 484.3 MB, free: 0.8711 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.308e-05/0.1565, allocations: 11.98 kB / 484.3 MB, free: 0.8594 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003459/0.1569, allocations: 91.92 kB / 484.4 MB, free: 0.7695 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001/0.1579, allocations: 455.4 kB / 484.9 MB, free: 276 kB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003435/0.1583, allocations: 94.45 kB / 484.9 MB, free: 172 kB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001622/0.1584, allocations: 40.92 kB / 485 MB, free: 128 kB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.307e-05/0.1585, allocations: 0 / 485 MB, free: 128 kB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.507e-05/0.1585, allocations: 34.56 kB / 485 MB, free: 84 kB / 350.1 MB Notification: Performance of pre-optimization done (n=4): time 8.81e-07/0.1585, allocations: 0 / 485 MB, free: 84 kB / 350.1 MB Notification: Performance of matching and sorting (n=6): time 0.001532/0.1601, allocations: 321 kB / 485.3 MB, free: 15.76 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001039/0.1602, allocations: 102.8 kB / 485.4 MB, free: 15.64 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000169/0.1604, allocations: 152 kB / 485.6 MB, free: 15.48 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.626e-05/0.1604, allocations: 25.7 kB / 485.6 MB, free: 15.45 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001205/0.1605, allocations: 112.1 kB / 485.7 MB, free: 15.33 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.725e-05/0.1606, allocations: 19.72 kB / 485.7 MB, free: 15.31 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.641e-05/0.1606, allocations: 29.7 kB / 485.8 MB, free: 15.28 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002254/0.1609, allocations: 322.8 kB / 486.1 MB, free: 14.95 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000249/0.1611, allocations: 55.95 kB / 486.1 MB, free: 14.9 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002753/0.1614, allocations: 96.17 kB / 486.2 MB, free: 14.79 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004698/0.1619, allocations: 138.5 kB / 486.4 MB, free: 14.64 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.51e-07/0.1619, allocations: 0 / 486.4 MB, free: 14.64 MB / 366.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0005671/0.1625, allocations: 177.4 kB / 486.5 MB, free: 14.46 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.3e-05/0.1625, allocations: 11.94 kB / 486.5 MB, free: 14.45 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.899e-06/0.1625, allocations: 4.047 kB / 486.6 MB, free: 14.45 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.648e-05/0.1626, allocations: 4 kB / 486.6 MB, free: 14.45 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000586/0.1632, allocations: 91.91 kB / 486.6 MB, free: 14.36 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001688/0.1649, allocations: 1.489 MB / 488.1 MB, free: 12.72 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002285/0.1651, allocations: 31.94 kB / 488.2 MB, free: 12.69 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.618e-05/0.1651, allocations: 12.34 kB / 488.2 MB, free: 12.68 MB / 366.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 (9): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001474/0.1653, allocations: 117.8 kB / 488.3 MB, free: 12.55 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.314e-05/0.1653, allocations: 7.906 kB / 488.3 MB, free: 12.55 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005263/0.1659, allocations: 174.4 kB / 488.5 MB, free: 12.38 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.01e-06/0.1659, allocations: 4 kB / 488.5 MB, free: 12.37 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.142e-06/0.1659, allocations: 3.938 kB / 488.5 MB, free: 12.37 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.956e-06/0.1659, allocations: 0 / 488.5 MB, free: 12.37 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009161/0.1668, allocations: 466.5 kB / 488.9 MB, free: 11.86 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.214e-06/0.1668, allocations: 0 / 488.9 MB, free: 11.86 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001589/0.167, allocations: 27.97 kB / 489 MB, free: 11.83 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.325e-06/0.167, allocations: 0 / 489 MB, free: 11.83 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.109e-05/0.167, allocations: 0 / 489 MB, free: 11.83 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.918e-06/0.167, allocations: 4.016 kB / 489 MB, free: 11.82 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.146e-06/0.167, allocations: 7.984 kB / 489 MB, free: 11.82 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005312/0.1676, allocations: 243.4 kB / 489.2 MB, free: 11.56 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.719e-05/0.1677, allocations: 89.02 kB / 489.3 MB, free: 11.46 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.443e-05/0.1677, allocations: 0 / 489.3 MB, free: 11.46 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002128/0.1679, allocations: 35.84 kB / 489.3 MB, free: 11.42 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.775e-05/0.168, allocations: 3.984 kB / 489.3 MB, free: 11.42 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.029e-05/0.168, allocations: 4 kB / 489.3 MB, free: 11.41 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001173/0.1681, allocations: 117.3 kB / 489.5 MB, free: 11.3 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1681, allocations: 0 / 489.5 MB, free: 11.3 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002749/0.1684, allocations: 28 kB / 489.5 MB, free: 11.27 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 simulation (7): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008954/0.1693, allocations: 0.7787 MB / 490.3 MB, free: 10.46 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0009301/0.1702, allocations: 171.9 kB / 490.4 MB, free: 10.3 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.63e-06/0.1703, allocations: 4 kB / 490.4 MB, free: 10.29 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002344/0.1705, allocations: 67.83 kB / 490.5 MB, free: 10.23 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003934/0.1709, allocations: 19.92 kB / 490.5 MB, free: 10.21 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003719/0.1746, allocations: 1.984 MB / 492.5 MB, free: 8.133 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003537/0.175, allocations: 0.7002 MB / 493.2 MB, free: 7.406 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 8.246e-05/0.1751, allocations: 16.42 kB / 493.2 MB, free: 7.391 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.143e-05/0.1752, allocations: 31.42 kB / 493.3 MB, free: 7.359 MB / 366.1 MB Notification: Performance of SimCode: time 4.61e-07/0.1752, allocations: 0 / 493.3 MB, free: 7.359 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02819/0.2034, allocations: 3.131 MB / 496.4 MB, free: 4.391 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.67/11.87, allocations: 14.09 kB / 496.4 MB, free: 4.379 MB / 366.1 MB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Electrical.Analog.TestSaturatingInductor.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Electrical.Analog.TestSaturatingInductor.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Electrical.Analog.TestSaturatingInductor.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Electrical.Analog.TestSaturatingInductor.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.Electrical.Analog.TestSaturatingInductor_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-05 --interface-type ModelExchange --solver CVode --output-interval 0.001 ModelicaTest_4_1_0-beta_om_ModelicaTest_Electrical_Analog_TestSaturatingInductor.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Electrical.Analog.TestSaturatingInductor.pipe 2>&1)