Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.TestSaturatingInductor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001357/0.001357, allocations: 124.4 kB / 17.79 MB, free: 5.266 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001403/0.001403, allocations: 203.3 kB / 20.74 MB, free: 2.316 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.517/1.517, allocations: 230.6 MB / 254.1 MB, free: 15.09 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2266/0.2266, allocations: 44.9 MB / 355.1 MB, free: 12.35 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Electrical.Analog.TestSaturatingInductor,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Electrical_Analog_TestSaturatingInductor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Electrical.Analog.TestSaturatingInductor,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Electrical_Analog_TestSaturatingInductor",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: ModelicaTest requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001965/0.001965, allocations: 67.89 kB / 499.5 MB, free: 11.74 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1514/0.1534, allocations: 65.42 MB / 0.5517 GB, free: 10.19 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Analog.TestSaturatingInductor): time 0.003699/0.1571, allocations: 1.926 MB / 0.5536 GB, free: 8.246 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.001188/0.1583, allocations: 0.5961 MB / 0.5542 GB, free: 7.645 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.333e-05/0.1583, allocations: 7.938 kB / 0.5542 GB, free: 7.637 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 5.728e-05/0.1584, allocations: 15.86 kB / 0.5542 GB, free: 7.621 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002234/0.1586, allocations: 43.62 kB / 0.5543 GB, free: 7.578 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002946/0.1589, allocations: 79.83 kB / 0.5543 GB, free: 7.5 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002146/0.1591, allocations: 151.4 kB / 0.5545 GB, free: 7.352 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001368/0.1593, allocations: 33.31 kB / 0.5545 GB, free: 7.32 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002318/0.1595, allocations: 75.7 kB / 0.5546 GB, free: 7.246 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001128/0.1596, allocations: 67.73 kB / 0.5546 GB, free: 7.18 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 2.791e-05/0.1596, allocations: 16 kB / 0.5547 GB, free: 7.164 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.114e-05/0.1597, allocations: 24 kB / 0.5547 GB, free: 7.141 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 3.205e-05/0.1597, allocations: 23.92 kB / 0.5547 GB, free: 7.117 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 7.504e-05/0.1598, allocations: 63.66 kB / 0.5548 GB, free: 7.055 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002255/0.16, allocations: 139.5 kB / 0.5549 GB, free: 6.918 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.901e-06/0.16, allocations: 4 kB / 0.5549 GB, free: 6.914 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.243e-06/0.16, allocations: 0 / 0.5549 GB, free: 6.914 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.018e-05/0.1601, allocations: 0 / 0.5549 GB, free: 6.914 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.0008623/0.1609, allocations: 454.9 kB / 0.5553 GB, free: 6.422 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.012e-05/0.161, allocations: 8.031 kB / 0.5553 GB, free: 6.414 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.122e-05/0.161, allocations: 42.75 kB / 0.5554 GB, free: 6.363 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003075/0.1613, allocations: 44.81 kB / 0.5554 GB, free: 6.32 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001993/0.1615, allocations: 190.2 kB / 0.5556 GB, free: 6.098 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.761e-05/0.1615, allocations: 8.375 kB / 0.5556 GB, free: 6.09 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.349e-05/0.1616, allocations: 4.375 kB / 0.5556 GB, free: 6.086 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003498/0.1619, allocations: 136.3 kB / 0.5558 GB, free: 5.938 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.593e-05/0.1619, allocations: 8 kB / 0.5558 GB, free: 5.93 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.563e-05/0.162, allocations: 0 / 0.5558 GB, free: 5.93 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.688e-06/0.162, allocations: 7.969 kB / 0.5558 GB, free: 5.922 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000347/0.1623, allocations: 91.92 kB / 0.5559 GB, free: 5.832 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008871/0.1632, allocations: 459.4 kB / 0.5563 GB, free: 5.324 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003202/0.1635, allocations: 94.45 kB / 0.5564 GB, free: 5.223 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001531/0.1637, allocations: 40.92 kB / 0.5564 GB, free: 5.18 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.076e-05/0.1637, allocations: 0 / 0.5564 GB, free: 5.18 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.156e-05/0.1637, allocations: 30.56 kB / 0.5565 GB, free: 5.141 MB / 414.1 MB Notification: Performance of pre-optimization done (n=4): time 8.91e-07/0.1637, allocations: 0 / 0.5565 GB, free: 5.141 MB / 414.1 MB Notification: Performance of matching and sorting (n=6): time 0.001429/0.1652, allocations: 325.1 kB / 0.5568 GB, free: 4.816 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.995e-05/0.1652, allocations: 106.8 kB / 0.5569 GB, free: 4.688 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001463/0.1654, allocations: 152 kB / 0.557 GB, free: 4.531 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.353e-05/0.1654, allocations: 29.64 kB / 0.557 GB, free: 4.496 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.97e-05/0.1655, allocations: 112.2 kB / 0.5571 GB, free: 4.379 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.632e-05/0.1655, allocations: 27.8 kB / 0.5572 GB, free: 4.352 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.453e-05/0.1656, allocations: 29.7 kB / 0.5572 GB, free: 4.316 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001399/0.1657, allocations: 318.8 kB / 0.5575 GB, free: 3.996 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002345/0.166, allocations: 59.89 kB / 0.5576 GB, free: 3.938 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002648/0.1662, allocations: 100.2 kB / 0.5577 GB, free: 3.824 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004472/0.1667, allocations: 134.5 kB / 0.5578 GB, free: 3.684 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.829e-06/0.1667, allocations: 4.062 kB / 0.5578 GB, free: 3.68 MB / 414.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0005297/0.1672, allocations: 173.5 kB / 0.558 GB, free: 3.504 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.186e-05/0.1672, allocations: 11.94 kB / 0.558 GB, free: 3.492 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.741e-06/0.1672, allocations: 0 / 0.558 GB, free: 3.492 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.86e-05/0.1673, allocations: 3.984 kB / 0.558 GB, free: 3.488 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006009/0.1679, allocations: 87.84 kB / 0.5581 GB, free: 3.402 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001625/0.1695, allocations: 1.496 MB / 0.5595 GB, free: 1.758 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002165/0.1697, allocations: 28 kB / 0.5595 GB, free: 1.73 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.755e-05/0.1697, allocations: 7.938 kB / 0.5596 GB, free: 1.723 MB / 414.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.0001236/0.1698, allocations: 117.9 kB / 0.5597 GB, free: 1.598 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.39e-05/0.1699, allocations: 11.95 kB / 0.5597 GB, free: 1.586 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005182/0.1704, allocations: 166.5 kB / 0.5598 GB, free: 1.422 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.519e-06/0.1704, allocations: 4 kB / 0.5598 GB, free: 1.418 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.085e-06/0.1704, allocations: 7.984 kB / 0.5598 GB, free: 1.41 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.356e-06/0.1704, allocations: 0 / 0.5598 GB, free: 1.41 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008626/0.1713, allocations: 462.2 kB / 0.5603 GB, free: 0.9023 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.883e-06/0.1713, allocations: 4 kB / 0.5603 GB, free: 0.8984 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001639/0.1714, allocations: 31.97 kB / 0.5603 GB, free: 0.8672 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.903e-06/0.1714, allocations: 0 / 0.5603 GB, free: 0.8672 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.108e-05/0.1714, allocations: 0 / 0.5603 GB, free: 0.8672 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.747e-06/0.1715, allocations: 3.938 kB / 0.5603 GB, free: 0.8633 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.223e-06/0.1715, allocations: 0 / 0.5603 GB, free: 0.8633 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005415/0.172, allocations: 247.4 kB / 0.5606 GB, free: 0.6055 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.562e-05/0.1721, allocations: 85.06 kB / 0.5606 GB, free: 0.5039 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.033e-05/0.1721, allocations: 3.938 kB / 0.5606 GB, free: 0.5 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002169/0.1723, allocations: 39.84 kB / 0.5607 GB, free: 472 kB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.228e-05/0.1724, allocations: 3.984 kB / 0.5607 GB, free: 468 kB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.145e-05/0.1724, allocations: 8 kB / 0.5607 GB, free: 460 kB / 414.1 MB Notification: Performance of sorting global known variables: time 9.635e-05/0.1725, allocations: 116.8 kB / 0.5608 GB, free: 344 kB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1725, allocations: 0 / 0.5608 GB, free: 344 kB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002896/0.1727, allocations: 24 kB / 0.5608 GB, free: 320 kB / 414.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.000895/0.1736, allocations: 0.7832 MB / 0.5616 GB, free: 15.5 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0009054/0.1745, allocations: 171.8 kB / 0.5618 GB, free: 15.33 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.325e-06/0.1746, allocations: 4.062 kB / 0.5618 GB, free: 15.33 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002398/0.1748, allocations: 63.89 kB / 0.5618 GB, free: 15.27 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003728/0.1752, allocations: 15.92 kB / 0.5618 GB, free: 15.25 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003589/0.1788, allocations: 1.993 MB / 0.5638 GB, free: 13.17 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000333/0.1791, allocations: 0.7002 MB / 0.5645 GB, free: 12.44 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 7.465e-05/0.1792, allocations: 12.44 kB / 0.5645 GB, free: 12.43 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.556e-05/0.1792, allocations: 31.42 kB / 0.5645 GB, free: 12.4 MB / 430.1 MB Notification: Performance of SimCode: time 6.81e-07/0.1792, allocations: 0 / 0.5645 GB, free: 12.4 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03017/0.2094, allocations: 3.208 MB / 0.5676 GB, free: 9.34 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.66/11.87, allocations: 3.938 kB / 0.5676 GB, free: 9.336 MB / 430.1 MB " [Timeout remaining time 648] (rm -f ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.TestSaturatingInductor.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.TestSaturatingInductor.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.TestSaturatingInductor.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.TestSaturatingInductor.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_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_0_0_ModelicaTest_Electrical_Analog_TestSaturatingInductor.fmu > ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.TestSaturatingInductor.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.TestSaturatingInductor_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Electrical/Analog/TestSaturatingInductor/TestSaturatingInductor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.TestSaturatingInductor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable saturatingInductor.Psi in file ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.TestSaturatingInductor_res.csv. Warning: Get data of variable saturatingInductor.Psi from file ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.TestSaturatingInductor_res.csv failed! Error: Could not read variable saturatingInductor.i in file ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.TestSaturatingInductor_res.csv. Warning: Get data of variable saturatingInductor.i from file ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.TestSaturatingInductor_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 15.087063904851675]