Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Utilities.TestInternal.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.00127/0.00127, allocations: 123.4 kB / 17.79 MB, free: 5.281 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.001364/0.001364, allocations: 204.3 kB / 20.74 MB, free: 2.34 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.522/1.522, 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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2291/0.2291, allocations: 46.92 MB / 357.1 MB, free: 10.32 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+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.Utilities.TestInternal,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Utilities_TestInternal",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestInternal,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Utilities_TestInternal",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001908/0.001908, allocations: 59.91 kB / 0.4909 GB, free: 8.004 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.152/0.1539, allocations: 66 MB / 0.5553 GB, free: 5.879 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestInternal): time 0.001673/0.1556, allocations: 486.7 kB / 0.5558 GB, free: 5.402 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007294/0.1563, allocations: 263.8 kB / 0.5561 GB, free: 5.145 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.741e-05/0.1564, allocations: 0 / 0.5561 GB, free: 5.145 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 1.862e-05/0.1564, allocations: 4 kB / 0.5561 GB, free: 5.141 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 6.692e-06/0.1564, allocations: 4 kB / 0.5561 GB, free: 5.137 MB / 414.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/Utilities.mo:398:3-453:15:writable] Warning: Pure function 'ModelicaTest.Utilities.Internal' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.0003659/0.1568, allocations: 47.83 kB / 0.5561 GB, free: 5.09 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 6.014e-05/0.1568, allocations: 0 / 0.5561 GB, free: 5.09 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.331e-05/0.1569, allocations: 0 / 0.5561 GB, free: 5.09 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.049e-05/0.1569, allocations: 4 kB / 0.5561 GB, free: 5.086 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.133e-05/0.1569, allocations: 3.984 kB / 0.5561 GB, free: 5.082 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 1.078e-05/0.1569, allocations: 0 / 0.5561 GB, free: 5.082 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000181/0.1571, allocations: 71.88 kB / 0.5562 GB, free: 5.012 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 7.544e-06/0.1571, allocations: 0 / 0.5562 GB, free: 5.012 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 2.004e-05/0.1571, allocations: 0 / 0.5562 GB, free: 5.012 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001475/0.1573, allocations: 63.8 kB / 0.5563 GB, free: 4.949 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.1573, allocations: 4 kB / 0.5563 GB, free: 4.945 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.334e-06/0.1573, allocations: 0 / 0.5563 GB, free: 4.945 MB / 414.1 MB Notification: Performance of Transformations before backend: time 6.422e-06/0.1573, allocations: 0 / 0.5563 GB, free: 4.945 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: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0004293/0.1577, allocations: 357 kB / 0.5566 GB, free: 4.539 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.389e-05/0.1578, allocations: 8.031 kB / 0.5566 GB, free: 4.531 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.74e-05/0.1578, allocations: 34.75 kB / 0.5566 GB, free: 4.488 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.62e-05/0.1578, allocations: 0.9375 kB / 0.5566 GB, free: 4.488 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001153/0.158, allocations: 164.4 kB / 0.5568 GB, free: 4.289 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.289e-05/0.158, allocations: 384 / 0.5568 GB, free: 4.289 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.783e-06/0.158, allocations: 384 / 0.5568 GB, free: 4.289 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.52e-05/0.1581, allocations: 38.25 kB / 0.5568 GB, free: 4.246 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.028e-05/0.1581, allocations: 3.938 kB / 0.5568 GB, free: 4.242 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.618e-06/0.1581, allocations: 3.984 kB / 0.5568 GB, free: 4.238 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.148e-06/0.1581, allocations: 0 / 0.5568 GB, free: 4.238 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.889e-05/0.1581, allocations: 3.938 kB / 0.5568 GB, free: 4.234 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001602/0.1583, allocations: 145.7 kB / 0.557 GB, free: 4.043 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.796e-05/0.1583, allocations: 18.58 kB / 0.557 GB, free: 4.016 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.765e-05/0.1583, allocations: 12.95 kB / 0.557 GB, free: 4 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.215e-06/0.1583, allocations: 0 / 0.557 GB, free: 4 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.557e-05/0.1584, allocations: 60.25 kB / 0.5571 GB, free: 3.926 MB / 414.1 MB Notification: Performance of pre-optimization done (n=1): time 1.042e-06/0.1584, allocations: 3.938 kB / 0.5571 GB, free: 3.922 MB / 414.1 MB Notification: Performance of matching and sorting (n=1): time 0.000198/0.1586, allocations: 67.28 kB / 0.5571 GB, free: 3.844 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.743e-05/0.1587, allocations: 77.11 kB / 0.5572 GB, free: 3.75 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.04e-05/0.1587, allocations: 97.81 kB / 0.5573 GB, free: 3.645 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.623e-05/0.1588, allocations: 25.83 kB / 0.5573 GB, free: 3.613 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.094e-05/0.1588, allocations: 89.78 kB / 0.5574 GB, free: 3.523 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.771e-05/0.1588, allocations: 4 kB / 0.5574 GB, free: 3.52 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.23e-05/0.1588, allocations: 9.719 kB / 0.5574 GB, free: 3.504 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.000154/0.159, allocations: 310.8 kB / 0.5577 GB, free: 3.191 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.322e-05/0.159, allocations: 4 kB / 0.5577 GB, free: 3.188 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.921e-06/0.159, allocations: 0 / 0.5577 GB, free: 3.188 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.983e-05/0.1591, allocations: 64.27 kB / 0.5578 GB, free: 3.109 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.904e-06/0.1591, allocations: 4.062 kB / 0.5578 GB, free: 3.105 MB / 414.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.214e-05/0.1592, allocations: 63.33 kB / 0.5579 GB, free: 3.031 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.491e-05/0.1592, allocations: 33.7 kB / 0.5579 GB, free: 2.992 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.633e-06/0.1592, allocations: 3.938 kB / 0.5579 GB, free: 2.988 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.275e-05/0.1592, allocations: 0 / 0.5579 GB, free: 2.988 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.12e-07/0.1592, allocations: 0 / 0.5579 GB, free: 2.988 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.548e-06/0.1592, allocations: 0 / 0.5579 GB, free: 2.988 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.511e-05/0.1592, allocations: 0 / 0.5579 GB, free: 2.988 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.843e-06/0.1592, allocations: 4 kB / 0.5579 GB, free: 2.984 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (result) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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 prepare postOptimizeDAE: time 9.402e-05/0.1593, allocations: 141.8 kB / 0.558 GB, free: 2.832 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.584e-06/0.1593, allocations: 0 / 0.558 GB, free: 2.832 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.969e-06/0.1594, allocations: 11.06 kB / 0.558 GB, free: 2.824 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.152e-06/0.1594, allocations: 0 / 0.558 GB, free: 2.824 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.767e-06/0.1594, allocations: 3.938 kB / 0.558 GB, free: 2.82 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.014e-06/0.1594, allocations: 0 / 0.558 GB, free: 2.82 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001133/0.1595, allocations: 145.7 kB / 0.5582 GB, free: 2.629 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.91e-07/0.1595, allocations: 0 / 0.5582 GB, free: 2.629 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.178e-06/0.1595, allocations: 7.984 kB / 0.5582 GB, free: 2.621 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.172e-06/0.1595, allocations: 4 kB / 0.5582 GB, free: 2.617 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.374e-06/0.1595, allocations: 7.938 kB / 0.5582 GB, free: 2.609 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.81e-07/0.1595, allocations: 0 / 0.5582 GB, free: 2.609 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.42e-07/0.1595, allocations: 0 / 0.5582 GB, free: 2.609 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001098/0.1596, allocations: 90.78 kB / 0.5583 GB, free: 2.496 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.856e-05/0.1596, allocations: 81.09 kB / 0.5584 GB, free: 2.398 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.239e-05/0.1597, allocations: 7.875 kB / 0.5584 GB, free: 2.391 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.155e-06/0.1597, allocations: 0 / 0.5584 GB, free: 2.391 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.655e-05/0.1597, allocations: 8.031 kB / 0.5584 GB, free: 2.383 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.505e-06/0.1597, allocations: 0 / 0.5584 GB, free: 2.383 MB / 414.1 MB Notification: Performance of sorting global known variables: time 3.775e-05/0.1597, allocations: 75.28 kB / 0.5584 GB, free: 2.309 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1597, allocations: 0 / 0.5584 GB, free: 2.309 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002172/0.1599, allocations: 23.94 kB / 0.5585 GB, free: 2.285 MB / 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: 1 (result) * Number of discrete states: 1 (result) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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.001039/0.161, allocations: 0.799 MB / 0.5593 GB, free: 1.52 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001152/0.1611, allocations: 67.39 kB / 0.5593 GB, free: 1.441 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.924e-06/0.1611, allocations: 0 / 0.5593 GB, free: 1.441 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 3.651e-05/0.1611, allocations: 55.41 kB / 0.5594 GB, free: 1.375 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000118/0.1613, allocations: 0 / 0.5594 GB, free: 1.375 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003415/0.1616, allocations: 130.6 kB / 0.5595 GB, free: 1.207 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003284/0.1619, allocations: 0.669 MB / 0.5601 GB, free: 0.5117 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 6.402e-06/0.1619, allocations: 0 / 0.5601 GB, free: 0.5117 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.461e-05/0.1619, allocations: 7.562 kB / 0.5602 GB, free: 0.5039 MB / 414.1 MB Notification: Performance of SimCode: time 3.01e-07/0.1619, allocations: 7.938 kB / 0.5602 GB, free: 0.4961 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02371/0.1857, allocations: 1.635 MB / 0.5618 GB, free: 14.93 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.001/8.187, allocations: 0 / 0.5618 GB, free: 14.93 MB / 430.1 MB " [Timeout remaining time 652] (rm -f ModelicaTest_4.1.0_ModelicaTest.Utilities.TestInternal.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Utilities.TestInternal.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Utilities.TestInternal.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Utilities.TestInternal.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0_ModelicaTest.Utilities.TestInternal_res.csv --start-time 0 --stop-time 0 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0 ModelicaTest_4_1_0_ModelicaTest_Utilities_TestInternal.fmu > ModelicaTest_4.1.0_ModelicaTest.Utilities.TestInternal.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Utilities.TestInternal_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Utilities/TestInternal/TestInternal.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.Utilities.TestInternal.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 11.167471961991396]