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.001927/0.001927, allocations: 111.1 kB / 20.44 MB, free: 1.184 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.002331/0.002331, allocations: 211.7 kB / 23.73 MB, free: 4.387 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.479/1.479, allocations: 230.6 MB / 257.5 MB, free: 7.758 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.97 MB / 360.9 MB, free: 4.031 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.0022/0.0022, allocations: 72.12 kB / 0.4961 GB, free: 7.738 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.321/0.3232, allocations: 66.04 MB / 0.5606 GB, free: 4.25 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestScalarFunctions): time 0.001653/0.3248, allocations: 495.9 kB / 0.5611 GB, free: 3.766 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002201/0.327, allocations: 1.575 MB / 0.5626 GB, free: 2.176 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.112e-05/0.3271, allocations: 0 / 0.5626 GB, free: 2.176 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.347e-05/0.3271, allocations: 0 / 0.5626 GB, free: 2.176 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 4.718e-06/0.3271, allocations: 0 / 0.5626 GB, free: 2.176 MB / 398.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.0006521/0.3277, allocations: 171.4 kB / 0.5628 GB, free: 2.008 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.109e-05/0.3278, allocations: 0 / 0.5628 GB, free: 2.008 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.611e-05/0.3278, allocations: 4 kB / 0.5628 GB, free: 2.004 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.463e-05/0.3278, allocations: 0 / 0.5628 GB, free: 2.004 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.867e-05/0.3279, allocations: 11.86 kB / 0.5628 GB, free: 1.992 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.424e-06/0.3279, allocations: 0 / 0.5628 GB, free: 1.992 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000376/0.3283, allocations: 119.9 kB / 0.5629 GB, free: 1.875 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.865e-06/0.3283, allocations: 0 / 0.5629 GB, free: 1.875 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.858e-05/0.3283, allocations: 3.984 kB / 0.5629 GB, free: 1.871 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001173/0.3284, allocations: 37.78 kB / 0.5629 GB, free: 1.836 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.468e-06/0.3284, allocations: 0 / 0.5629 GB, free: 1.836 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.3284, allocations: 0 / 0.5629 GB, free: 1.836 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.023e-05/0.3284, allocations: 0 / 0.5629 GB, free: 1.836 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.0003185/0.3287, allocations: 276 kB / 0.5632 GB, free: 1.531 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.89e-05/0.3288, allocations: 8.031 kB / 0.5632 GB, free: 1.523 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.486e-05/0.3288, allocations: 38.69 kB / 0.5632 GB, free: 1.477 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.378e-05/0.3288, allocations: 4.938 kB / 0.5632 GB, free: 1.473 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.268e-05/0.3289, allocations: 106.5 kB / 0.5633 GB, free: 1.344 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.107e-05/0.3289, allocations: 384 / 0.5633 GB, free: 1.344 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.057e-06/0.3289, allocations: 384 / 0.5633 GB, free: 1.344 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001029/0.329, allocations: 63.52 kB / 0.5634 GB, free: 1.27 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.243e-06/0.329, allocations: 0 / 0.5634 GB, free: 1.27 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.333e-06/0.329, allocations: 3.938 kB / 0.5634 GB, free: 1.266 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.497e-06/0.3291, allocations: 0 / 0.5634 GB, free: 1.266 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.047e-05/0.3291, allocations: 29.7 kB / 0.5634 GB, free: 1.23 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001189/0.3292, allocations: 116.8 kB / 0.5635 GB, free: 1.074 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.329e-05/0.3293, allocations: 52.25 kB / 0.5636 GB, free: 1.008 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.747e-05/0.3293, allocations: 34.55 kB / 0.5636 GB, free: 0.9648 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.383e-06/0.3293, allocations: 0 / 0.5636 GB, free: 0.9648 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.044e-05/0.3294, allocations: 64.27 kB / 0.5637 GB, free: 0.8867 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 8.92e-07/0.3294, allocations: 0 / 0.5637 GB, free: 0.8867 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.000198/0.3295, allocations: 118.8 kB / 0.5638 GB, free: 0.7461 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.138e-05/0.3296, allocations: 81.05 kB / 0.5639 GB, free: 0.6484 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.956e-05/0.3297, allocations: 93.81 kB / 0.564 GB, free: 0.5469 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.57e-05/0.3297, allocations: 25.7 kB / 0.564 GB, free: 0.5156 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.616e-05/0.3297, allocations: 80.14 kB / 0.5641 GB, free: 444 kB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.236e-05/0.3298, allocations: 8.125 kB / 0.5641 GB, free: 436 kB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.808e-05/0.3298, allocations: 13.72 kB / 0.5641 GB, free: 416 kB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001356/0.3299, allocations: 310.8 kB / 0.5644 GB, free: 96 kB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.601e-05/0.33, allocations: 29.7 kB / 0.5644 GB, free: 60 kB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.933e-05/0.33, allocations: 29.7 kB / 0.5644 GB, free: 24 kB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.075e-05/0.33, allocations: 64.25 kB / 0.5645 GB, free: 15.95 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.413e-06/0.33, allocations: 0 / 0.5645 GB, free: 15.95 MB / 414.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.703e-05/0.3301, allocations: 89.11 kB / 0.5646 GB, free: 15.84 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.643e-05/0.3302, allocations: 37.58 kB / 0.5646 GB, free: 15.8 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.723e-06/0.3302, allocations: 8.078 kB / 0.5646 GB, free: 15.79 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.279e-05/0.3302, allocations: 3.938 kB / 0.5646 GB, free: 15.79 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.495e-06/0.3302, allocations: 8 kB / 0.5646 GB, free: 15.78 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.568e-06/0.3302, allocations: 0 / 0.5646 GB, free: 15.78 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.471e-05/0.3302, allocations: 0 / 0.5646 GB, free: 15.78 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.103e-06/0.3302, allocations: 0 / 0.5646 GB, free: 15.78 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 0.0001048/0.3303, allocations: 135.5 kB / 0.5648 GB, free: 15.63 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.568e-06/0.3303, allocations: 3.938 kB / 0.5648 GB, free: 15.62 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.22e-05/0.3304, allocations: 3 kB / 0.5648 GB, free: 15.62 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.203e-06/0.3304, allocations: 0 / 0.5648 GB, free: 15.62 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.639e-06/0.3304, allocations: 4 kB / 0.5648 GB, free: 15.62 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.064e-06/0.3304, allocations: 0 / 0.5648 GB, free: 15.62 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001087/0.3305, allocations: 124.8 kB / 0.5649 GB, free: 15.45 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.61e-07/0.3305, allocations: 3.938 kB / 0.5649 GB, free: 15.45 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.01e-07/0.3305, allocations: 0 / 0.5649 GB, free: 15.45 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.616e-06/0.3305, allocations: 3.938 kB / 0.5649 GB, free: 15.45 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.833e-06/0.3305, allocations: 0 / 0.5649 GB, free: 15.45 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.116e-06/0.3305, allocations: 4 kB / 0.5649 GB, free: 15.44 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.61e-07/0.3305, allocations: 0 / 0.5649 GB, free: 15.44 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000129/0.3306, allocations: 120.5 kB / 0.565 GB, free: 15.29 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.192e-06/0.3306, allocations: 3.938 kB / 0.565 GB, free: 15.29 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.101e-05/0.3306, allocations: 4.031 kB / 0.565 GB, free: 15.29 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.556e-06/0.3306, allocations: 0 / 0.565 GB, free: 15.29 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.491e-05/0.3307, allocations: 4 kB / 0.565 GB, free: 15.28 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.11e-06/0.3307, allocations: 3.984 kB / 0.565 GB, free: 15.28 MB / 414.1 MB Notification: Performance of sorting global known variables: time 3.384e-05/0.3307, allocations: 75.28 kB / 0.5651 GB, free: 15.2 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3307, allocations: 0 / 0.5651 GB, free: 15.2 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002142/0.3309, allocations: 15.94 kB / 0.5651 GB, free: 15.19 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.0006816/0.3316, allocations: 0.71 MB / 0.5658 GB, free: 14.45 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001363/0.3317, allocations: 118.8 kB / 0.5659 GB, free: 14.3 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.3317, allocations: 3.938 kB / 0.5659 GB, free: 14.3 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 6.581e-05/0.3318, allocations: 81.11 kB / 0.566 GB, free: 14.2 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001275/0.3319, allocations: 3.984 kB / 0.566 GB, free: 14.2 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003206/0.3322, allocations: 144.4 kB / 0.5662 GB, free: 14.01 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.974e-05/0.3323, allocations: 55.34 kB / 0.5662 GB, free: 13.94 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 8.215e-06/0.3323, allocations: 4 kB / 0.5662 GB, free: 13.93 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.796e-05/0.3323, allocations: 7.562 kB / 0.5662 GB, free: 13.93 MB / 414.1 MB Notification: Performance of SimCode: time 4.21e-07/0.3323, allocations: 4 kB / 0.5662 GB, free: 13.92 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02722/0.3595, allocations: 2.001 MB / 0.5682 GB, free: 12.05 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.96/11.32, allocations: 14.34 kB / 0.5682 GB, free: 12.04 MB / 414.1 MB " [Timeout remaining time 649] (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: 14.329118774272501]