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.001066/0.001066, allocations: 83.69 kB / 20.67 MB, free: 3.887 MB / 18.57 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.0008183/0.0008183, allocations: 170 kB / 23.95 MB, free: 0.6094 MB / 18.57 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 0.8829/0.8829, allocations: 177.1 MB / 204.3 MB, free: 5.73 MB / 186.7 MB " [Timeout remaining time 179] 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.2434/0.2434, allocations: 34.26 MB / 294.9 MB, free: 0.7031 MB / 266.7 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 1.654e-06/1.654e-06, allocations: 0 / 442.2 MB, free: 1.695 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.863e-05/2.028e-05, allocations: 3.688 kB / 442.2 MB, free: 1.691 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestScalarFunctions): time 0.001126/0.001146, allocations: 493 kB / 442.6 MB, free: 1.211 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.1716/0.1727, allocations: 1.578 MB / 444.2 MB, free: 43.21 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.759e-05/0.1727, allocations: 0 / 444.2 MB, free: 43.21 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 1.746e-05/0.1728, allocations: 0 / 444.2 MB, free: 43.21 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 7.134e-06/0.1728, allocations: 0.9375 kB / 444.2 MB, free: 43.21 MB / 410.7 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.0005658/0.1733, allocations: 162.4 kB / 444.4 MB, free: 43.18 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 5.577e-05/0.1734, allocations: 4.312 kB / 444.4 MB, free: 43.18 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.024e-05/0.1734, allocations: 0.7188 kB / 444.4 MB, free: 43.18 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.112e-05/0.1735, allocations: 5.578 kB / 444.4 MB, free: 43.18 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.366e-05/0.1735, allocations: 6.438 kB / 444.4 MB, free: 43.18 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 8.877e-06/0.1735, allocations: 0 / 444.4 MB, free: 43.18 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002924/0.1738, allocations: 121.9 kB / 444.5 MB, free: 43.18 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 7.174e-06/0.1738, allocations: 2.75 kB / 444.5 MB, free: 43.18 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 1.647e-05/0.1738, allocations: 3.375 kB / 444.5 MB, free: 43.18 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000107/0.1739, allocations: 46.31 kB / 444.6 MB, free: 43.17 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.168e-06/0.1739, allocations: 2.656 kB / 444.6 MB, free: 43.17 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.352e-06/0.1739, allocations: 0 / 444.6 MB, free: 43.17 MB / 410.7 MB Notification: Performance of Transformations before backend: time 5.47e-06/0.1739, allocations: 0 / 444.6 MB, free: 43.17 MB / 410.7 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.0002096/0.1741, allocations: 271.5 kB / 444.8 MB, free: 42.89 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.735e-05/0.1742, allocations: 8.531 kB / 444.8 MB, free: 42.89 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.011e-05/0.1742, allocations: 33.5 kB / 444.9 MB, free: 42.85 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.948e-05/0.1742, allocations: 1.922 kB / 444.9 MB, free: 42.85 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 3.534e-05/0.1743, allocations: 102.4 kB / 445 MB, free: 42.72 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.966e-06/0.1743, allocations: 4.312 kB / 445 MB, free: 42.72 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.723e-06/0.1743, allocations: 6.688 kB / 445 MB, free: 42.72 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.451e-05/0.1744, allocations: 61.03 kB / 445 MB, free: 42.66 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.961e-06/0.1744, allocations: 192 / 445 MB, free: 42.66 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.754e-06/0.1744, allocations: 384 / 445 MB, free: 42.66 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.779e-06/0.1744, allocations: 7.875 kB / 445.1 MB, free: 42.65 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.935e-05/0.1744, allocations: 36.48 kB / 445.1 MB, free: 42.62 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 7.935e-05/0.1745, allocations: 115.8 kB / 445.2 MB, free: 42.46 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.803e-05/0.1745, allocations: 51.12 kB / 445.3 MB, free: 42.41 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.428e-05/0.1745, allocations: 35.62 kB / 445.3 MB, free: 42.37 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.473e-06/0.1745, allocations: 0 / 445.3 MB, free: 42.37 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.432e-05/0.1746, allocations: 59.14 kB / 445.3 MB, free: 42.3 MB / 410.7 MB Notification: Performance of pre-optimization done (n=1): time 7.11e-07/0.1746, allocations: 0 / 445.3 MB, free: 42.3 MB / 410.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001552/0.1747, allocations: 125.4 kB / 445.5 MB, free: 42.16 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.449e-05/0.1747, allocations: 77.73 kB / 445.5 MB, free: 42.07 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.529e-05/0.1747, allocations: 99.91 kB / 445.6 MB, free: 41.97 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 4.678e-06/0.1748, allocations: 25.7 kB / 445.7 MB, free: 41.94 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.993e-06/0.1748, allocations: 82.7 kB / 445.7 MB, free: 41.86 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.474e-05/0.1748, allocations: 0 / 445.7 MB, free: 41.86 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.006e-05/0.1748, allocations: 12.44 kB / 445.8 MB, free: 41.84 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 2.999e-05/0.1748, allocations: 314.7 kB / 446.1 MB, free: 41.53 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.173e-05/0.1748, allocations: 28.36 kB / 446.1 MB, free: 41.5 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.955e-06/0.1748, allocations: 28.05 kB / 446.1 MB, free: 41.47 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.934e-05/0.1749, allocations: 68.7 kB / 446.2 MB, free: 41.39 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.663e-06/0.1749, allocations: 4 kB / 446.2 MB, free: 41.39 MB / 410.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 3.915e-05/0.1749, allocations: 86.3 kB / 446.3 MB, free: 41.3 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.512e-05/0.1749, allocations: 34.22 kB / 446.3 MB, free: 41.27 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.41e-06/0.1749, allocations: 2.312 kB / 446.3 MB, free: 41.27 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.129e-05/0.175, allocations: 0 / 446.3 MB, free: 41.27 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.142e-06/0.175, allocations: 3.938 kB / 446.3 MB, free: 41.26 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.128e-06/0.175, allocations: 0 / 446.3 MB, free: 41.26 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.338e-05/0.175, allocations: 0 / 446.3 MB, free: 41.26 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.773e-06/0.175, allocations: 2.969 kB / 446.3 MB, free: 41.26 MB / 410.7 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 5.224e-05/0.175, allocations: 142.7 kB / 446.5 MB, free: 41.11 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.286e-06/0.175, allocations: 0 / 446.5 MB, free: 41.11 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.737e-06/0.175, allocations: 3 kB / 446.5 MB, free: 41.11 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.654e-06/0.175, allocations: 3.938 kB / 446.5 MB, free: 41.11 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.859e-06/0.1751, allocations: 3.938 kB / 446.5 MB, free: 41.1 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.314e-06/0.1751, allocations: 2.594 kB / 446.5 MB, free: 41.1 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 3.976e-05/0.1751, allocations: 116.5 kB / 446.6 MB, free: 40.95 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.974e-06/0.1751, allocations: 6.125 kB / 446.6 MB, free: 40.95 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.91e-07/0.1751, allocations: 0 / 446.6 MB, free: 40.95 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.142e-06/0.1751, allocations: 0 / 446.6 MB, free: 40.95 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.841e-06/0.1751, allocations: 0 / 446.6 MB, free: 40.95 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.71e-07/0.1751, allocations: 4 kB / 446.6 MB, free: 40.95 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/0.1751, allocations: 9.188 kB / 446.6 MB, free: 40.94 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.274e-05/0.1752, allocations: 115.3 kB / 446.7 MB, free: 40.81 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.416e-06/0.1752, allocations: 4.062 kB / 446.7 MB, free: 40.81 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.698e-06/0.1752, allocations: 0 / 446.7 MB, free: 40.81 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.041e-06/0.1752, allocations: 3.031 kB / 446.7 MB, free: 40.81 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.222e-05/0.1752, allocations: 3.938 kB / 446.7 MB, free: 40.81 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.593e-06/0.1752, allocations: 0 / 446.7 MB, free: 40.81 MB / 410.7 MB Notification: Performance of sorting global known variables: time 9.257e-06/0.1752, allocations: 75.28 kB / 446.8 MB, free: 40.73 MB / 410.7 MB Notification: Performance of sort global known variables: time 5e-08/0.1752, allocations: 0 / 446.8 MB, free: 40.73 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0001466/0.1753, allocations: 21.38 kB / 446.8 MB, free: 40.73 MB / 410.7 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.0003471/0.1757, allocations: 0.7028 MB / 447.5 MB, free: 40.07 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 7.797e-05/0.1758, allocations: 117.2 kB / 447.6 MB, free: 39.95 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.543e-06/0.1758, allocations: 0 / 447.6 MB, free: 39.95 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 1.226e-05/0.1758, allocations: 79.67 kB / 447.7 MB, free: 39.85 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.441e-05/0.1759, allocations: 8.219 kB / 447.7 MB, free: 39.85 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002203/0.1761, allocations: 143.6 kB / 447.9 MB, free: 39.68 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.339e-05/0.1761, allocations: 57.34 kB / 447.9 MB, free: 39.61 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 4.679e-06/0.1761, allocations: 3.938 kB / 447.9 MB, free: 39.61 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.389e-05/0.1761, allocations: 14.64 kB / 447.9 MB, free: 39.6 MB / 410.7 MB Notification: Performance of SimCode: time 3.8e-07/0.1761, allocations: 0 / 447.9 MB, free: 39.6 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01461/0.1908, allocations: 2.154 MB / 450.1 MB, free: 38.66 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.647/6.837, allocations: 10.66 kB / 450.1 MB, free: 38.66 MB / 410.7 MB " [Timeout remaining time 653] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0_ModelicaTest.Math.TestScalarFunctions_res.mat --tempDir=temp_ModelicaTest_4_1_0_ModelicaTest_Math_TestScalarFunctions_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 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.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Math/TestScalarFunctions/TestScalarFunctions.csv","/var/lib/jenkins/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: 8.703489751555026]