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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001243/0.001243, allocations: 117.9 kB / 18.5 MB, free: 4.52 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001333/0.001333, allocations: 214.5 kB / 21.46 MB, free: 1.566 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.487/1.487, allocations: 230.5 MB / 254.7 MB, free: 15.19 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2329/0.2329, allocations: 46.93 MB / 357.7 MB, free: 10.21 MB / 286.1 MB " [Timeout remaining time 180] 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"}) [Timeout 660] "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.002274/0.002274, allocations: 75.88 kB / 0.4916 GB, free: 7.758 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1405/0.1427, allocations: 66.05 MB / 0.5561 GB, free: 5.582 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Analog.TestSaturatingInductor): time 0.003593/0.1463, allocations: 1.917 MB / 0.558 GB, free: 3.645 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.001319/0.1476, allocations: 0.6 MB / 0.5586 GB, free: 3.039 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.415e-05/0.1477, allocations: 0 / 0.5586 GB, free: 3.039 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 5.478e-05/0.1478, allocations: 19.84 kB / 0.5586 GB, free: 3.02 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002021/0.148, allocations: 35.7 kB / 0.5587 GB, free: 2.984 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004007/0.1484, allocations: 90.69 kB / 0.5587 GB, free: 2.898 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001893/0.1486, allocations: 147.4 kB / 0.5589 GB, free: 2.754 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000132/0.1487, allocations: 29.09 kB / 0.5589 GB, free: 2.727 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002204/0.1489, allocations: 75.7 kB / 0.559 GB, free: 2.652 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001091/0.149, allocations: 67.75 kB / 0.559 GB, free: 2.586 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 2.882e-05/0.149, allocations: 12 kB / 0.5591 GB, free: 2.574 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.54e-05/0.1491, allocations: 24 kB / 0.5591 GB, free: 2.551 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 3.584e-05/0.1491, allocations: 27.91 kB / 0.5591 GB, free: 2.523 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002918/0.1494, allocations: 67.64 kB / 0.5592 GB, free: 2.457 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002229/0.1496, allocations: 143.4 kB / 0.5593 GB, free: 2.316 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.009e-06/0.1497, allocations: 0 / 0.5593 GB, free: 2.316 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.884e-06/0.1497, allocations: 0 / 0.5593 GB, free: 2.316 MB / 414.1 MB Notification: Performance of Transformations before backend: time 9.417e-06/0.1497, allocations: 4 kB / 0.5593 GB, free: 2.312 MB / 414.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.0008331/0.1505, allocations: 454.8 kB / 0.5597 GB, free: 1.82 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.049e-05/0.1505, allocations: 8.031 kB / 0.5598 GB, free: 1.812 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.904e-05/0.1506, allocations: 42.75 kB / 0.5598 GB, free: 1.762 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002972/0.1509, allocations: 44.81 kB / 0.5598 GB, free: 1.719 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002/0.1511, allocations: 188.2 kB / 0.56 GB, free: 1.496 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.367e-05/0.1511, allocations: 4.375 kB / 0.56 GB, free: 1.492 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.07e-05/0.1511, allocations: 12.38 kB / 0.56 GB, free: 1.48 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003471/0.1515, allocations: 134 kB / 0.5602 GB, free: 1.336 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.095e-05/0.1515, allocations: 0 / 0.5602 GB, free: 1.336 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.573e-05/0.1515, allocations: 4 kB / 0.5602 GB, free: 1.332 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.945e-06/0.1515, allocations: 0 / 0.5602 GB, free: 1.332 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000431/0.152, allocations: 95.86 kB / 0.5603 GB, free: 1.238 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008916/0.1528, allocations: 463.4 kB / 0.5607 GB, free: 0.7266 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003377/0.1532, allocations: 90.45 kB / 0.5608 GB, free: 0.6289 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001602/0.1533, allocations: 44.92 kB / 0.5608 GB, free: 0.582 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.895e-05/0.1534, allocations: 7.922 kB / 0.5608 GB, free: 0.5742 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.825e-05/0.1534, allocations: 30.56 kB / 0.5609 GB, free: 0.5352 MB / 414.1 MB Notification: Performance of pre-optimization done (n=4): time 1.322e-06/0.1534, allocations: 0 / 0.5609 GB, free: 0.5352 MB / 414.1 MB Notification: Performance of matching and sorting (n=6): time 0.001559/0.1549, allocations: 325.1 kB / 0.5612 GB, free: 216 kB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001383/0.1551, allocations: 106.8 kB / 0.5613 GB, free: 84 kB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00017/0.1553, allocations: 152.1 kB / 0.5614 GB, free: 15.93 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 4.061e-05/0.1553, allocations: 25.7 kB / 0.5614 GB, free: 15.89 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.717e-05/0.1554, allocations: 112.2 kB / 0.5616 GB, free: 15.78 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.221e-05/0.1554, allocations: 19.84 kB / 0.5616 GB, free: 15.76 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.643e-05/0.1555, allocations: 33.7 kB / 0.5616 GB, free: 15.72 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001389/0.1556, allocations: 322.8 kB / 0.5619 GB, free: 15.39 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002299/0.1558, allocations: 55.95 kB / 0.562 GB, free: 15.34 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002574/0.1561, allocations: 96.17 kB / 0.5621 GB, free: 15.23 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004442/0.1565, allocations: 134.5 kB / 0.5622 GB, free: 15.09 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.82e-07/0.1565, allocations: 0 / 0.5622 GB, free: 15.09 MB / 430.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0005455/0.1571, allocations: 177.5 kB / 0.5624 GB, free: 14.91 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.737e-05/0.1571, allocations: 11.94 kB / 0.5624 GB, free: 14.9 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.53e-06/0.1571, allocations: 3.938 kB / 0.5624 GB, free: 14.89 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.358e-05/0.1571, allocations: 0 / 0.5624 GB, free: 14.89 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005839/0.1577, allocations: 83.91 kB / 0.5624 GB, free: 14.81 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002261/0.16, allocations: 1.5 MB / 0.5639 GB, free: 13.16 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003111/0.1603, allocations: 32.09 kB / 0.5639 GB, free: 13.13 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.037e-05/0.1603, allocations: 7.938 kB / 0.564 GB, free: 13.12 MB / 430.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.0001658/0.1605, allocations: 121.7 kB / 0.5641 GB, free: 13 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.951e-05/0.1605, allocations: 16.02 kB / 0.5641 GB, free: 12.98 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000781/0.1613, allocations: 162.3 kB / 0.5642 GB, free: 12.82 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.939e-06/0.1613, allocations: 3.984 kB / 0.5642 GB, free: 12.82 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.094e-06/0.1613, allocations: 0 / 0.5642 GB, free: 12.82 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.079e-06/0.1613, allocations: 4 kB / 0.5642 GB, free: 12.81 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001231/0.1626, allocations: 466.4 kB / 0.5647 GB, free: 12.3 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.756e-06/0.1626, allocations: 0 / 0.5647 GB, free: 12.3 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002351/0.1628, allocations: 35.97 kB / 0.5647 GB, free: 12.27 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.697e-06/0.1628, allocations: 0 / 0.5647 GB, free: 12.27 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.533e-05/0.1628, allocations: 0 / 0.5647 GB, free: 12.27 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.719e-06/0.1628, allocations: 3.938 kB / 0.5647 GB, free: 12.26 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.493e-06/0.1628, allocations: 3.938 kB / 0.5647 GB, free: 12.26 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000762/0.1636, allocations: 251.3 kB / 0.565 GB, free: 12 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001753/0.1638, allocations: 85.06 kB / 0.5651 GB, free: 11.89 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.035e-05/0.1638, allocations: 0 / 0.5651 GB, free: 11.89 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003028/0.1641, allocations: 36.19 kB / 0.5651 GB, free: 11.86 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.595e-05/0.1642, allocations: 7.984 kB / 0.5651 GB, free: 11.85 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.123e-05/0.1642, allocations: 0 / 0.5651 GB, free: 11.85 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.000123/0.1643, allocations: 111.3 kB / 0.5652 GB, free: 11.74 MB / 430.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1643, allocations: 0 / 0.5652 GB, free: 11.74 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0004906/0.1648, allocations: 24 kB / 0.5652 GB, free: 11.72 MB / 430.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.001291/0.1661, allocations: 0.7866 MB / 0.566 GB, free: 10.9 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001297/0.1674, allocations: 171.8 kB / 0.5662 GB, free: 10.73 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.995e-06/0.1674, allocations: 0 / 0.5662 GB, free: 10.73 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003335/0.1677, allocations: 64.02 kB / 0.5662 GB, free: 10.67 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006039/0.1683, allocations: 13.48 kB / 0.5662 GB, free: 10.66 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005572/0.1739, allocations: 1.983 MB / 0.5682 GB, free: 8.586 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005716/0.1745, allocations: 0.7002 MB / 0.5689 GB, free: 7.859 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0001118/0.1746, allocations: 16.42 kB / 0.5689 GB, free: 7.844 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001259/0.1747, allocations: 35.42 kB / 0.5689 GB, free: 7.809 MB / 430.1 MB Notification: Performance of SimCode: time 8.21e-07/0.1747, allocations: 0 / 0.5689 GB, free: 7.809 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03743/0.2121, allocations: 3.232 MB / 0.5721 GB, free: 4.75 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.72/11.93, allocations: 7.875 kB / 0.5721 GB, free: 4.742 MB / 430.1 MB " [Timeout remaining time 648] (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) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 15.179279095958918] Failed to read output from testmodel.py, exit status != 0: ['time', 'saturatingInductor.Psi', 'saturatingInductor.i'] 12.021947627421468 12.0376806 11.885023411 Calling exit ...