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.001442/0.001442, allocations: 104.1 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.001419/0.001419, 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.462/1.462, allocations: 227.4 MB / 246.8 MB, free: 10.52 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.2415/0.2415, allocations: 46.11 MB / 344.2 MB, free: 11.56 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.003421/0.003421, allocations: 80.33 kB / 417.8 MB, free: 19.61 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1507/0.1542, allocations: 62.45 MB / 480.2 MB, free: 5.145 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Analog.TestSaturatingInductor): time 0.004032/0.1582, allocations: 1.916 MB / 482.1 MB, free: 3.211 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001146/0.1594, allocations: 0.5883 MB / 482.7 MB, free: 2.617 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.147e-05/0.1595, allocations: 4 kB / 482.7 MB, free: 2.613 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 6.129e-05/0.1596, allocations: 11.86 kB / 482.7 MB, free: 2.602 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002191/0.1598, allocations: 35.7 kB / 482.8 MB, free: 2.566 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002905/0.1601, allocations: 83.83 kB / 482.8 MB, free: 2.484 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001779/0.1603, allocations: 159.4 kB / 483 MB, free: 2.328 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001364/0.1605, allocations: 33.09 kB / 483 MB, free: 2.297 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00022/0.1607, allocations: 79.64 kB / 483.1 MB, free: 2.219 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001104/0.1608, allocations: 63.75 kB / 483.2 MB, free: 2.156 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.941e-05/0.1608, allocations: 12 kB / 483.2 MB, free: 2.145 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.099e-05/0.1609, allocations: 20 kB / 483.2 MB, free: 2.125 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.762e-05/0.161, allocations: 35.89 kB / 483.2 MB, free: 2.09 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 9.169e-05/0.1611, allocations: 63.66 kB / 483.3 MB, free: 2.027 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002103/0.1613, allocations: 143.8 kB / 483.4 MB, free: 1.887 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.328e-06/0.1613, allocations: 0 / 483.4 MB, free: 1.887 MB / 350.1 MB Notification: Performance of FrontEnd: time 9.72e-07/0.1613, allocations: 0 / 483.4 MB, free: 1.887 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.412e-06/0.1613, allocations: 4 kB / 483.4 MB, free: 1.883 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.0008323/0.1621, allocations: 443 kB / 483.9 MB, free: 1.402 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.214e-05/0.1622, allocations: 8.031 kB / 483.9 MB, free: 1.395 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.271e-05/0.1623, allocations: 42.73 kB / 483.9 MB, free: 1.344 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003005/0.1626, allocations: 40.72 kB / 484 MB, free: 1.305 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001914/0.1628, allocations: 198.6 kB / 484.2 MB, free: 1.074 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.576e-05/0.1628, allocations: 4.375 kB / 484.2 MB, free: 1.07 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.865e-05/0.1628, allocations: 12.38 kB / 484.2 MB, free: 1.059 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003366/0.1632, allocations: 140.2 kB / 484.3 MB, free: 0.9062 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.164e-05/0.1632, allocations: 0 / 484.3 MB, free: 0.9062 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.49e-05/0.1632, allocations: 0 / 484.3 MB, free: 0.9062 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.55e-06/0.1632, allocations: 4 kB / 484.3 MB, free: 0.9023 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000333/0.1636, allocations: 95.86 kB / 484.4 MB, free: 0.8086 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008554/0.1644, allocations: 455.4 kB / 484.9 MB, free: 316 kB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003098/0.1648, allocations: 94.45 kB / 485 MB, free: 212 kB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001512/0.1649, allocations: 40.92 kB / 485 MB, free: 168 kB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.895e-05/0.1649, allocations: 0 / 485 MB, free: 168 kB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.032e-05/0.165, allocations: 34.56 kB / 485 MB, free: 124 kB / 350.1 MB Notification: Performance of pre-optimization done (n=4): time 1.011e-06/0.165, allocations: 0 / 485 MB, free: 124 kB / 350.1 MB Notification: Performance of matching and sorting (n=6): time 0.001436/0.1664, allocations: 321 kB / 485.3 MB, free: 15.8 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.91e-05/0.1665, allocations: 102.8 kB / 485.4 MB, free: 15.68 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001561/0.1667, allocations: 147.9 kB / 485.6 MB, free: 15.52 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.389e-05/0.1667, allocations: 25.7 kB / 485.6 MB, free: 15.49 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.852e-05/0.1668, allocations: 112.1 kB / 485.7 MB, free: 15.38 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.964e-05/0.1669, allocations: 27.69 kB / 485.7 MB, free: 15.35 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.643e-05/0.1669, allocations: 29.7 kB / 485.8 MB, free: 15.31 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001396/0.1671, allocations: 314.8 kB / 486.1 MB, free: 15 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002358/0.1673, allocations: 59.94 kB / 486.1 MB, free: 14.94 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002679/0.1676, allocations: 104.2 kB / 486.2 MB, free: 14.82 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004459/0.1681, allocations: 134.5 kB / 486.4 MB, free: 14.68 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.233e-06/0.1681, allocations: 0 / 486.4 MB, free: 14.68 MB / 366.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0005392/0.1686, allocations: 173.4 kB / 486.5 MB, free: 14.5 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.311e-05/0.1687, allocations: 7.938 kB / 486.5 MB, free: 14.5 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.789e-06/0.1687, allocations: 4 kB / 486.6 MB, free: 14.49 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.256e-05/0.1687, allocations: 3.938 kB / 486.6 MB, free: 14.49 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006637/0.1694, allocations: 87.97 kB / 486.6 MB, free: 14.4 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001892/0.1713, allocations: 1.501 MB / 488.1 MB, free: 12.76 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002596/0.1716, allocations: 24.02 kB / 488.2 MB, free: 12.73 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.242e-05/0.1716, allocations: 20.05 kB / 488.2 MB, free: 12.71 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.0001657/0.1718, allocations: 121.8 kB / 488.3 MB, free: 12.59 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.166e-05/0.1718, allocations: 7.906 kB / 488.3 MB, free: 12.58 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005318/0.1724, allocations: 166.3 kB / 488.5 MB, free: 12.41 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.475e-06/0.1724, allocations: 0 / 488.5 MB, free: 12.41 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.478e-06/0.1724, allocations: 4 kB / 488.5 MB, free: 12.41 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.51e-06/0.1724, allocations: 4.172 kB / 488.5 MB, free: 12.41 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008893/0.1733, allocations: 462.3 kB / 488.9 MB, free: 11.9 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.415e-06/0.1733, allocations: 3.938 kB / 488.9 MB, free: 11.89 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001634/0.1735, allocations: 23.97 kB / 489 MB, free: 11.87 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.729e-06/0.1735, allocations: 4 kB / 489 MB, free: 11.87 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.077e-05/0.1735, allocations: 0 / 489 MB, free: 11.87 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.646e-06/0.1735, allocations: 3.938 kB / 489 MB, free: 11.86 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.1735, allocations: 4 kB / 489 MB, free: 11.86 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005565/0.1741, allocations: 255.5 kB / 489.2 MB, free: 11.59 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.702e-05/0.1742, allocations: 89.02 kB / 489.3 MB, free: 11.49 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.56e-05/0.1742, allocations: 4 kB / 489.3 MB, free: 11.48 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000209/0.1744, allocations: 27.91 kB / 489.3 MB, free: 11.46 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.951e-05/0.1745, allocations: 3.984 kB / 489.3 MB, free: 11.45 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.897e-06/0.1745, allocations: 4 kB / 489.4 MB, free: 11.45 MB / 366.1 MB Notification: Performance of sorting global known variables: time 9.855e-05/0.1746, allocations: 109.8 kB / 489.5 MB, free: 11.34 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1746, allocations: 0 / 489.5 MB, free: 11.34 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002935/0.1749, allocations: 36 kB / 489.5 MB, free: 11.31 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.0009186/0.1758, allocations: 0.7709 MB / 490.3 MB, free: 10.51 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0009386/0.1768, allocations: 175.9 kB / 490.4 MB, free: 10.34 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 6.282e-06/0.1768, allocations: 0 / 490.4 MB, free: 10.34 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002694/0.1771, allocations: 75.81 kB / 490.5 MB, free: 10.26 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004415/0.1775, allocations: 11.94 kB / 490.5 MB, free: 10.25 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003734/0.1813, allocations: 1.985 MB / 492.5 MB, free: 8.172 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003113/0.1816, allocations: 0.7002 MB / 493.2 MB, free: 7.445 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 8.092e-05/0.1817, allocations: 16.42 kB / 493.2 MB, free: 7.43 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.441e-05/0.1818, allocations: 31.42 kB / 493.3 MB, free: 7.398 MB / 366.1 MB Notification: Performance of SimCode: time 5.01e-07/0.1818, allocations: 0 / 493.3 MB, free: 7.398 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05329/0.2351, allocations: 3.125 MB / 496.4 MB, free: 4.434 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.45/11.68, allocations: 16.75 kB / 496.4 MB, free: 4.422 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.Electrical.Analog.TestSaturatingInductor_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_Electrical_Analog_TestSaturatingInductor_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-05 ModelicaTest_4_1_0-beta_om_ModelicaTest_Electrical_Analog_TestSaturatingInductor.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Electrical.Analog.TestSaturatingInductor.pipe 2>&1)