Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Math.TestScalarFunctions.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.001334/0.001334, allocations: 123.4 kB / 17.79 MB, free: 5.246 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.001448/0.001448, allocations: 208.3 kB / 20.75 MB, free: 2.297 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.483/1.483, 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.2311/0.2311, allocations: 46.91 MB / 357.1 MB, free: 10.31 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.Math.TestScalarFunctions,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Math_TestScalarFunctions",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.TestScalarFunctions,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Math_TestScalarFunctions",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001892/0.001892, allocations: 67.91 kB / 0.4909 GB, free: 7.977 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1275/0.1294, allocations: 66 MB / 0.5554 GB, free: 5.855 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestScalarFunctions): time 0.001562/0.1309, allocations: 489 kB / 0.5558 GB, free: 5.375 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.00227/0.1332, allocations: 1.659 MB / 0.5574 GB, free: 3.699 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.141e-05/0.1332, allocations: 0 / 0.5574 GB, free: 3.699 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 1.449e-05/0.1332, allocations: 0 / 0.5574 GB, free: 3.699 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 5.51e-06/0.1332, allocations: 3.938 kB / 0.5575 GB, free: 3.695 MB / 414.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/Math.mo:4:3-36:22:writable] Warning: Pure function 'ModelicaTest.Math.ScalarFunctions' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.0006528/0.1339, allocations: 163.4 kB / 0.5576 GB, free: 3.535 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 4.297e-05/0.1339, allocations: 0 / 0.5576 GB, free: 3.535 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.731e-05/0.134, allocations: 0 / 0.5576 GB, free: 3.535 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.661e-05/0.134, allocations: 7.984 kB / 0.5576 GB, free: 3.527 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.073e-05/0.134, allocations: 0 / 0.5576 GB, free: 3.527 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 6.552e-06/0.134, allocations: 0 / 0.5576 GB, free: 3.527 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003601/0.1344, allocations: 119.9 kB / 0.5577 GB, free: 3.41 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 1.037e-05/0.1344, allocations: 7.984 kB / 0.5577 GB, free: 3.402 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 1.7e-05/0.1344, allocations: 0 / 0.5577 GB, free: 3.402 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001085/0.1345, allocations: 27.97 kB / 0.5578 GB, free: 3.375 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.019e-06/0.1345, allocations: 4 kB / 0.5578 GB, free: 3.371 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.092e-06/0.1345, allocations: 0 / 0.5578 GB, free: 3.371 MB / 414.1 MB Notification: Performance of Transformations before backend: time 7.214e-06/0.1345, allocations: 11.86 kB / 0.5578 GB, free: 3.359 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.0003753/0.1349, allocations: 353.1 kB / 0.5581 GB, free: 2.961 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.856e-05/0.1349, allocations: 12.03 kB / 0.5581 GB, free: 2.949 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.556e-05/0.135, allocations: 30.75 kB / 0.5582 GB, free: 2.91 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.081e-05/0.135, allocations: 0.9375 kB / 0.5582 GB, free: 2.91 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001135/0.1351, allocations: 164.4 kB / 0.5583 GB, free: 2.711 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.246e-05/0.1351, allocations: 384 / 0.5583 GB, free: 2.711 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.152e-06/0.1351, allocations: 384 / 0.5583 GB, free: 2.711 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.438e-05/0.1352, allocations: 33.83 kB / 0.5583 GB, free: 2.672 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.872e-06/0.1352, allocations: 0 / 0.5583 GB, free: 2.672 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.382e-06/0.1352, allocations: 0 / 0.5583 GB, free: 2.672 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.741e-06/0.1352, allocations: 7.984 kB / 0.5584 GB, free: 2.664 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.986e-05/0.1352, allocations: 8 kB / 0.5584 GB, free: 2.656 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001505/0.1354, allocations: 153.6 kB / 0.5585 GB, free: 2.457 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.26e-05/0.1354, allocations: 14.58 kB / 0.5585 GB, free: 2.434 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.93e-05/0.1355, allocations: 12.95 kB / 0.5585 GB, free: 2.418 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.764e-06/0.1355, allocations: 0 / 0.5585 GB, free: 2.418 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.413e-05/0.1355, allocations: 64.2 kB / 0.5586 GB, free: 2.34 MB / 414.1 MB Notification: Performance of pre-optimization done (n=1): time 9.61e-07/0.1355, allocations: 4 kB / 0.5586 GB, free: 2.336 MB / 414.1 MB Notification: Performance of matching and sorting (n=1): time 0.000183/0.1357, allocations: 67.33 kB / 0.5587 GB, free: 2.258 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.699e-05/0.1358, allocations: 77.11 kB / 0.5587 GB, free: 2.164 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.105e-05/0.1358, allocations: 93.81 kB / 0.5588 GB, free: 2.062 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.335e-05/0.1358, allocations: 25.7 kB / 0.5589 GB, free: 2.031 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.25e-05/0.1359, allocations: 84.14 kB / 0.5589 GB, free: 1.945 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.36e-05/0.1359, allocations: 0 / 0.5589 GB, free: 1.945 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.836e-05/0.1359, allocations: 13.72 kB / 0.5589 GB, free: 1.926 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001269/0.136, allocations: 315 kB / 0.5592 GB, free: 1.609 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.077e-06/0.136, allocations: 4 kB / 0.5592 GB, free: 1.605 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.36e-06/0.136, allocations: 0 / 0.5592 GB, free: 1.605 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.648e-05/0.1361, allocations: 64.25 kB / 0.5593 GB, free: 1.527 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-06/0.1361, allocations: 0 / 0.5593 GB, free: 1.527 MB / 414.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.352e-05/0.1362, allocations: 67.34 kB / 0.5594 GB, free: 1.449 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.198e-05/0.1362, allocations: 33.64 kB / 0.5594 GB, free: 1.41 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.817e-06/0.1362, allocations: 0 / 0.5594 GB, free: 1.41 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.14e-05/0.1362, allocations: 4.094 kB / 0.5594 GB, free: 1.406 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.855e-06/0.1362, allocations: 7.922 kB / 0.5594 GB, free: 1.398 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.248e-06/0.1362, allocations: 0 / 0.5594 GB, free: 1.398 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.498e-05/0.1362, allocations: 4 kB / 0.5594 GB, free: 1.395 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.801e-06/0.1362, allocations: 0 / 0.5594 GB, free: 1.395 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 8.912e-05/0.1363, allocations: 133.7 kB / 0.5595 GB, free: 1.25 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.268e-05/0.1363, allocations: 7.938 kB / 0.5596 GB, free: 1.242 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.496e-06/0.1364, allocations: 3.125 kB / 0.5596 GB, free: 1.242 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.42e-07/0.1364, allocations: 3.938 kB / 0.5596 GB, free: 1.238 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.206e-06/0.1364, allocations: 4 kB / 0.5596 GB, free: 1.234 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.014e-06/0.1364, allocations: 0 / 0.5596 GB, free: 1.234 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001149/0.1365, allocations: 145.7 kB / 0.5597 GB, free: 1.043 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.096e-06/0.1365, allocations: 4 kB / 0.5597 GB, free: 1.039 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.71e-07/0.1365, allocations: 0 / 0.5597 GB, free: 1.039 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.086e-06/0.1365, allocations: 3.938 kB / 0.5597 GB, free: 1.035 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.993e-06/0.1365, allocations: 0 / 0.5597 GB, free: 1.035 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.182e-06/0.1365, allocations: 0 / 0.5597 GB, free: 1.035 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.92e-07/0.1365, allocations: 0 / 0.5597 GB, free: 1.035 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001205/0.1366, allocations: 98.77 kB / 0.5598 GB, free: 0.9141 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.807e-05/0.1367, allocations: 85.05 kB / 0.5599 GB, free: 0.8125 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.359e-05/0.1367, allocations: 0 / 0.5599 GB, free: 0.8125 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.466e-06/0.1367, allocations: 0 / 0.5599 GB, free: 0.8125 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.976e-05/0.1367, allocations: 4 kB / 0.5599 GB, free: 0.8086 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.284e-06/0.1367, allocations: 0 / 0.5599 GB, free: 0.8086 MB / 414.1 MB Notification: Performance of sorting global known variables: time 4.135e-05/0.1368, allocations: 75.28 kB / 0.56 GB, free: 0.7344 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1368, allocations: 0 / 0.56 GB, free: 0.7344 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002339/0.137, allocations: 19.92 kB / 0.56 GB, free: 0.7148 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.0007477/0.1377, allocations: 0.6718 MB / 0.5606 GB, free: 16 kB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001442/0.1379, allocations: 63.36 kB / 0.5607 GB, free: 15.94 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.1379, allocations: 8.062 kB / 0.5607 GB, free: 15.93 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 4.308e-05/0.1379, allocations: 51.41 kB / 0.5608 GB, free: 15.87 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001387/0.1381, allocations: 10.12 kB / 0.5608 GB, free: 15.86 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003549/0.1384, allocations: 122.6 kB / 0.5609 GB, free: 15.7 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003508/0.1388, allocations: 0.669 MB / 0.5615 GB, free: 15.01 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 6.763e-06/0.1388, allocations: 4 kB / 0.5615 GB, free: 15 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.575e-05/0.1388, allocations: 11.38 kB / 0.5616 GB, free: 14.99 MB / 430.1 MB Notification: Performance of SimCode: time 5.21e-07/0.1388, allocations: 0 / 0.5616 GB, free: 14.99 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02161/0.1604, allocations: 1.485 MB / 0.563 GB, free: 13.57 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.815/7.976, allocations: 7.984 kB / 0.563 GB, free: 13.57 MB / 430.1 MB " [Timeout remaining time 652] (rm -f ModelicaTest_4.1.0_ModelicaTest.Math.TestScalarFunctions.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Math.TestScalarFunctions.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Math.TestScalarFunctions.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Math.TestScalarFunctions.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0_ModelicaTest.Math.TestScalarFunctions_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_Math_TestScalarFunctions.fmu > ModelicaTest_4.1.0_ModelicaTest.Math.TestScalarFunctions.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Math.TestScalarFunctions_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Math/TestScalarFunctions/TestScalarFunctions.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.Math.TestScalarFunctions.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: 10.987925048990292]