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.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.001138/0.001138, 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.0008435/0.0008435, 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.8719/0.8719, allocations: 177.1 MB / 204.3 MB, free: 5.707 MB / 186.7 MB " [Timeout remaining time 179] 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.2216/0.2216, allocations: 32.79 MB / 293.5 MB, free: 1.215 MB / 266.7 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.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_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 1.262e-06/1.262e-06, allocations: 0 / 439.6 MB, free: 4.266 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.385e-05/1.511e-05, allocations: 4.672 kB / 439.6 MB, free: 4.262 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestScalarFunctions): time 0.0009078/0.0009229, allocations: 0.4932 MB / 440.1 MB, free: 3.77 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.001422/0.002345, allocations: 1.579 MB / 441.6 MB, free: 2.172 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.948e-05/0.002365, allocations: 0 / 441.6 MB, free: 2.172 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 1.346e-05/0.002378, allocations: 0 / 441.6 MB, free: 2.172 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 6.242e-06/0.002385, allocations: 0 / 441.6 MB, free: 2.172 MB / 410.7 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.0004873/0.002872, allocations: 178.8 kB / 441.8 MB, free: 2 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 4.628e-05/0.002918, allocations: 0 / 441.8 MB, free: 2 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.222e-05/0.00295, allocations: 0 / 441.8 MB, free: 2 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.491e-05/0.002975, allocations: 4 kB / 441.8 MB, free: 1.996 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.461e-05/0.003, allocations: 3.984 kB / 441.8 MB, free: 1.992 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 8.085e-06/0.003008, allocations: 0 / 441.8 MB, free: 1.992 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002692/0.003277, allocations: 115.8 kB / 441.9 MB, free: 1.879 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 6.552e-06/0.003284, allocations: 4 kB / 441.9 MB, free: 1.875 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 1.729e-05/0.003301, allocations: 11.92 kB / 441.9 MB, free: 1.863 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 9.397e-05/0.003395, allocations: 43.89 kB / 442 MB, free: 1.82 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.653e-06/0.003397, allocations: 0 / 442 MB, free: 1.82 MB / 410.7 MB Notification: Performance of FrontEnd: time 8.22e-07/0.003397, allocations: 0 / 442 MB, free: 1.82 MB / 410.7 MB Notification: Performance of Transformations before backend: time 3.577e-06/0.003401, allocations: 0 / 442 MB, free: 1.82 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.0002141/0.003615, allocations: 268.1 kB / 442.3 MB, free: 1.523 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.355e-05/0.003649, allocations: 12.03 kB / 442.3 MB, free: 1.512 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.176e-05/0.00367, allocations: 30.75 kB / 442.3 MB, free: 1.473 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.298e-05/0.003693, allocations: 4.922 kB / 442.3 MB, free: 1.469 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 4.905e-05/0.003742, allocations: 101.8 kB / 442.4 MB, free: 1.344 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.897e-06/0.003751, allocations: 8.312 kB / 442.4 MB, free: 1.336 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.973e-06/0.003758, allocations: 4.375 kB / 442.4 MB, free: 1.332 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.078e-05/0.003829, allocations: 51.97 kB / 442.5 MB, free: 1.27 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.202e-06/0.003835, allocations: 192 / 442.5 MB, free: 1.27 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.005e-06/0.003843, allocations: 8.125 kB / 442.5 MB, free: 1.262 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.586e-06/0.003847, allocations: 0 / 442.5 MB, free: 1.262 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.852e-05/0.003865, allocations: 25.7 kB / 442.5 MB, free: 1.23 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.581e-05/0.003951, allocations: 124.8 kB / 442.6 MB, free: 1.066 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.805e-05/0.003989, allocations: 48.16 kB / 442.7 MB, free: 1.004 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.815e-05/0.004007, allocations: 34.66 kB / 442.7 MB, free: 0.9609 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.54e-06/0.004013, allocations: 4 kB / 442.7 MB, free: 0.957 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.769e-05/0.004041, allocations: 56.27 kB / 442.8 MB, free: 0.8867 MB / 410.7 MB Notification: Performance of pre-optimization done (n=1): time 5.61e-07/0.004041, allocations: 0 / 442.8 MB, free: 0.8867 MB / 410.7 MB Notification: Performance of matching and sorting (n=1): time 0.000142/0.004183, allocations: 122.7 kB / 442.9 MB, free: 0.7422 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.187e-05/0.004215, allocations: 77.11 kB / 442.9 MB, free: 0.6484 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.5e-05/0.00424, allocations: 101.8 kB / 443 MB, free: 0.5391 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 8.165e-06/0.004248, allocations: 25.7 kB / 443.1 MB, free: 0.5078 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.58e-05/0.004264, allocations: 80.14 kB / 443.2 MB, free: 436 kB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.317e-05/0.004277, allocations: 0 / 443.2 MB, free: 436 kB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.123e-05/0.004298, allocations: 17.72 kB / 443.2 MB, free: 412 kB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001034/0.004402, allocations: 319 kB / 443.5 MB, free: 84 kB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.518e-05/0.004417, allocations: 29.64 kB / 443.5 MB, free: 48 kB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.11e-05/0.004428, allocations: 29.7 kB / 443.5 MB, free: 12 kB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.1437/0.1481, allocations: 56.27 kB / 443.6 MB, free: 46.38 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.196e-06/0.1481, allocations: 3 kB / 443.6 MB, free: 46.38 MB / 410.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.016e-05/0.1482, allocations: 87.75 kB / 443.7 MB, free: 46.29 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.485e-05/0.1482, allocations: 31.55 kB / 443.7 MB, free: 46.26 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.531e-06/0.1483, allocations: 0 / 443.7 MB, free: 46.26 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.774e-05/0.1483, allocations: 1.688 kB / 443.7 MB, free: 46.26 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.41e-07/0.1483, allocations: 3.031 kB / 443.7 MB, free: 46.26 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.821e-06/0.1483, allocations: 2.938 kB / 443.7 MB, free: 46.26 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.674e-05/0.1483, allocations: 4.625 kB / 443.7 MB, free: 46.26 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.312e-06/0.1483, allocations: 0 / 443.7 MB, free: 46.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 4.712e-05/0.1483, allocations: 149.1 kB / 443.9 MB, free: 46.11 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.432e-06/0.1484, allocations: 0 / 443.9 MB, free: 46.11 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.848e-06/0.1484, allocations: 3 kB / 443.9 MB, free: 46.11 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.114e-06/0.1484, allocations: 2.969 kB / 443.9 MB, free: 46.11 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.887e-06/0.1484, allocations: 1.844 kB / 443.9 MB, free: 46.11 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.405e-06/0.1484, allocations: 0 / 443.9 MB, free: 46.11 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 3.906e-05/0.1484, allocations: 125.7 kB / 444 MB, free: 45.95 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.51e-07/0.1484, allocations: 0 / 444 MB, free: 45.95 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.4e-07/0.1484, allocations: 0 / 444 MB, free: 45.95 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.02e-07/0.1484, allocations: 2.094 kB / 444 MB, free: 45.95 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.032e-06/0.1484, allocations: 0 / 444 MB, free: 45.95 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.82e-07/0.1484, allocations: 3.844 kB / 444 MB, free: 45.95 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/0.1484, allocations: 2.969 kB / 444 MB, free: 45.95 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.213e-05/0.1485, allocations: 119.9 kB / 444.1 MB, free: 45.82 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.887e-06/0.1485, allocations: 0.5625 kB / 444.1 MB, free: 45.82 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.072e-05/0.1485, allocations: 4.938 kB / 444.1 MB, free: 45.82 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.749e-06/0.1485, allocations: 2.656 kB / 444.1 MB, free: 45.82 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.808e-06/0.1485, allocations: 2.562 kB / 444.1 MB, free: 45.82 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.292e-06/0.1485, allocations: 0.9844 kB / 444.1 MB, free: 45.82 MB / 410.7 MB Notification: Performance of sorting global known variables: time 8.385e-06/0.1485, allocations: 78.19 kB / 444.2 MB, free: 45.75 MB / 410.7 MB Notification: Performance of sort global known variables: time 4e-08/0.1485, allocations: 3.188 kB / 444.2 MB, free: 45.75 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0001469/0.1487, allocations: 17.08 kB / 444.2 MB, free: 45.75 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.0002756/0.1489, allocations: 0.7008 MB / 444.9 MB, free: 45.1 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 6.742e-05/0.149, allocations: 115.3 kB / 445 MB, free: 44.97 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.703e-06/0.149, allocations: 0 / 445 MB, free: 44.97 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 1.068e-05/0.149, allocations: 83.08 kB / 445.1 MB, free: 44.88 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.845e-05/0.1491, allocations: 5.281 kB / 445.1 MB, free: 44.88 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001926/0.1493, allocations: 145.7 kB / 445.3 MB, free: 44.72 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.084e-05/0.1493, allocations: 53.83 kB / 445.3 MB, free: 44.65 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 4.609e-06/0.1493, allocations: 0 / 445.3 MB, free: 44.65 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.038e-05/0.1493, allocations: 11 kB / 445.3 MB, free: 44.64 MB / 410.7 MB Notification: Performance of SimCode: time 4e-07/0.1493, allocations: 0 / 445.3 MB, free: 44.64 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01182/0.1611, allocations: 2.153 MB / 447.5 MB, free: 43.74 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.039/7.2, allocations: 3.469 kB / 447.5 MB, free: 43.74 MB / 410.7 MB " [Timeout remaining time 653] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/TestScalarFunctions/TestScalarFunctions.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Math.TestScalarFunctions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Failed to open simulation result ModelicaTest_4.0.0_ModelicaTest.Math.TestScalarFunctions_res.csv: Error: Error opening file: ModelicaTest_4.0.0_ModelicaTest.Math.TestScalarFunctions_res.csv " [Timeout remaining time 660] "" Variables in the reference:time,result Variables in the result: [Calling sys.exit(0), Time elapsed: 9.077058262191713]