Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Math.TestScalarFunctions.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001295/0.001295, allocations: 112.4 kB / 21.1 MB, free: 0.7773 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001343/0.001343, allocations: 189.2 kB / 24.36 MB, free: 4.211 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.398/1.398, allocations: 225.6 MB / 253.1 MB, free: 13.05 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.214/0.214, allocations: 44.91 MB / 353.2 MB, free: 11.86 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Math.TestScalarFunctions,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Math_TestScalarFunctions",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.TestScalarFunctions,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Math_TestScalarFunctions",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002817/0.002817, allocations: 71.88 kB / 496.8 MB, free: 1.656 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3546/0.3574, allocations: 64.29 MB / 0.5479 GB, free: 12.93 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestScalarFunctions): time 0.001694/0.3591, allocations: 0.4939 MB / 0.5484 GB, free: 12.56 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002013/0.3612, allocations: 1.409 MB / 0.5498 GB, free: 11.44 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.482e-05/0.3612, allocations: 1.062 kB / 0.5498 GB, free: 11.44 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.475e-05/0.3612, allocations: 3.938 kB / 0.5498 GB, free: 11.44 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.541e-06/0.3612, allocations: 0 / 0.5498 GB, free: 11.44 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.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.000524/0.3617, allocations: 116 kB / 0.5499 GB, free: 11.36 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.556e-05/0.3618, allocations: 5.156 kB / 0.5499 GB, free: 11.36 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.604e-05/0.3618, allocations: 5.188 kB / 0.5499 GB, free: 11.35 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.49e-05/0.3618, allocations: 1.094 kB / 0.5499 GB, free: 11.35 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.059e-05/0.3619, allocations: 1.125 kB / 0.5499 GB, free: 11.35 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.562e-06/0.3619, allocations: 0 / 0.5499 GB, free: 11.35 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002754/0.3621, allocations: 65.84 kB / 0.55 GB, free: 11.32 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.274e-06/0.3621, allocations: 1.188 kB / 0.55 GB, free: 11.32 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.73e-05/0.3622, allocations: 9.109 kB / 0.55 GB, free: 11.31 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 9.303e-05/0.3623, allocations: 22.62 kB / 0.55 GB, free: 11.3 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.997e-06/0.3623, allocations: 0 / 0.55 GB, free: 11.3 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.3623, allocations: 0 / 0.55 GB, free: 11.3 MB / 398.1 MB Notification: Performance of Transformations before backend: time 8.476e-06/0.3623, allocations: 1.062 kB / 0.55 GB, free: 11.3 MB / 398.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.0003175/0.3626, allocations: 272.9 kB / 0.5503 GB, free: 11.01 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.606e-05/0.3626, allocations: 10.02 kB / 0.5503 GB, free: 11.01 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.969e-05/0.3627, allocations: 31.66 kB / 0.5503 GB, free: 10.97 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.111e-05/0.3627, allocations: 1.969 kB / 0.5503 GB, free: 10.97 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.792e-05/0.3628, allocations: 103.4 kB / 0.5504 GB, free: 10.84 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.093e-05/0.3628, allocations: 5.438 kB / 0.5504 GB, free: 10.84 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.262e-06/0.3628, allocations: 1.719 kB / 0.5504 GB, free: 10.84 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.636e-05/0.3629, allocations: 34.8 kB / 0.5505 GB, free: 10.8 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.464e-06/0.3629, allocations: 0.875 kB / 0.5505 GB, free: 10.8 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.942e-06/0.3629, allocations: 0 / 0.5505 GB, free: 10.8 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.587e-06/0.3629, allocations: 1.188 kB / 0.5505 GB, free: 10.8 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.825e-05/0.3629, allocations: 5.312 kB / 0.5505 GB, free: 10.8 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001316/0.363, allocations: 122 kB / 0.5506 GB, free: 10.64 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.91e-05/0.3631, allocations: 20.58 kB / 0.5506 GB, free: 10.61 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.351e-05/0.3631, allocations: 5.797 kB / 0.5506 GB, free: 10.6 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.454e-06/0.3631, allocations: 1.312 kB / 0.5506 GB, free: 10.6 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.841e-05/0.3631, allocations: 60.2 kB / 0.5507 GB, free: 10.53 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 1.242e-06/0.3631, allocations: 0.9375 kB / 0.5507 GB, free: 10.53 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001828/0.3633, allocations: 70.36 kB / 0.5507 GB, free: 10.45 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.944e-05/0.3634, allocations: 78.64 kB / 0.5508 GB, free: 10.36 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.18e-05/0.3634, allocations: 93.98 kB / 0.5509 GB, free: 10.26 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.589e-05/0.3634, allocations: 25.7 kB / 0.5509 GB, free: 10.23 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.212e-05/0.3635, allocations: 81.58 kB / 0.551 GB, free: 10.14 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.551e-05/0.3635, allocations: 3.984 kB / 0.551 GB, free: 10.14 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.663e-05/0.3635, allocations: 12.09 kB / 0.551 GB, free: 10.12 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000156/0.3637, allocations: 324 kB / 0.5513 GB, free: 9.801 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.778e-06/0.3637, allocations: 0 / 0.5513 GB, free: 9.801 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.701e-06/0.3637, allocations: 1.469 kB / 0.5513 GB, free: 9.801 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.078e-05/0.3637, allocations: 62.98 kB / 0.5514 GB, free: 9.727 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.3637, allocations: 1.531 kB / 0.5514 GB, free: 9.727 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.282e-05/0.3638, allocations: 61.97 kB / 0.5514 GB, free: 9.66 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.717e-05/0.3639, allocations: 38.78 kB / 0.5515 GB, free: 9.621 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.958e-06/0.3639, allocations: 0 / 0.5515 GB, free: 9.621 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.232e-05/0.3639, allocations: 1.281 kB / 0.5515 GB, free: 9.621 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.01e-07/0.3639, allocations: 0 / 0.5515 GB, free: 9.621 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.957e-06/0.3639, allocations: 0 / 0.5515 GB, free: 9.621 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.439e-05/0.3639, allocations: 1.344 kB / 0.5515 GB, free: 9.621 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.754e-06/0.3639, allocations: 9.344 kB / 0.5515 GB, free: 9.613 MB / 398.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 0.0001006/0.364, allocations: 141 kB / 0.5516 GB, free: 9.461 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.167e-05/0.364, allocations: 9.016 kB / 0.5516 GB, free: 9.453 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.333e-05/0.364, allocations: 6.953 kB / 0.5516 GB, free: 9.441 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.954e-06/0.364, allocations: 1.531 kB / 0.5516 GB, free: 9.441 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.946e-06/0.364, allocations: 0 / 0.5516 GB, free: 9.441 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.35e-06/0.364, allocations: 7.922 kB / 0.5516 GB, free: 9.434 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.746e-05/0.3641, allocations: 115.5 kB / 0.5518 GB, free: 9.281 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.91e-07/0.3641, allocations: 0 / 0.5518 GB, free: 9.281 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.31e-07/0.3641, allocations: 4 kB / 0.5518 GB, free: 9.277 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.166e-06/0.3641, allocations: 3.938 kB / 0.5518 GB, free: 9.273 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.841e-06/0.3641, allocations: 1.25 kB / 0.5518 GB, free: 9.273 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.062e-06/0.3641, allocations: 0 / 0.5518 GB, free: 9.273 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.21e-07/0.3641, allocations: 1.438 kB / 0.5518 GB, free: 9.273 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001026/0.3642, allocations: 96.62 kB / 0.5519 GB, free: 9.164 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.892e-06/0.3643, allocations: 5.375 kB / 0.5519 GB, free: 9.16 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.111e-05/0.3643, allocations: 1.594 kB / 0.5519 GB, free: 9.16 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.047e-06/0.3643, allocations: 4 kB / 0.5519 GB, free: 9.156 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.199e-05/0.3643, allocations: 1.406 kB / 0.5519 GB, free: 9.156 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.893e-06/0.3643, allocations: 9.203 kB / 0.5519 GB, free: 9.148 MB / 398.1 MB Notification: Performance of sorting global known variables: time 4.08e-05/0.3643, allocations: 79.28 kB / 0.552 GB, free: 9.07 MB / 398.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3643, allocations: 0 / 0.552 GB, free: 9.07 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002026/0.3645, allocations: 9.406 kB / 0.552 GB, free: 9.07 MB / 398.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.0006122/0.3651, allocations: 0.662 MB / 0.5526 GB, free: 8.418 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 9.479e-05/0.3652, allocations: 60.78 kB / 0.5527 GB, free: 8.352 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.543e-06/0.3652, allocations: 0 / 0.5527 GB, free: 8.352 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 5.373e-05/0.3653, allocations: 59.02 kB / 0.5527 GB, free: 8.285 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00012/0.3654, allocations: 1.438 kB / 0.5527 GB, free: 8.285 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002785/0.3657, allocations: 110.8 kB / 0.5528 GB, free: 8.148 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003175/0.366, allocations: 0.6779 MB / 0.5535 GB, free: 7.445 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 4.809e-06/0.366, allocations: 0 / 0.5535 GB, free: 7.445 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.462e-05/0.366, allocations: 8.906 kB / 0.5535 GB, free: 7.438 MB / 398.1 MB Notification: Performance of SimCode: time 3.2e-07/0.366, allocations: 0 / 0.5535 GB, free: 7.438 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02256/0.3886, allocations: 1.335 MB / 0.5548 GB, free: 6.648 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.933/8.321, allocations: 12.97 kB / 0.5548 GB, free: 6.641 MB / 398.1 MB " [Timeout remaining time 652] (rm -f ModelicaTest_4.0.0_ModelicaTest.Math.TestScalarFunctions.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Math.TestScalarFunctions.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Math.TestScalarFunctions.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Math.TestScalarFunctions.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.0.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_0_0_ModelicaTest_Math_TestScalarFunctions.fmu > ModelicaTest_4.0.0_ModelicaTest.Math.TestScalarFunctions.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Math.TestScalarFunctions_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/TestScalarFunctions/TestScalarFunctions.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.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: 11.107568634208292]