Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001203/0.001203, allocations: 88.33 kB / 20.67 MB, free: 3.875 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001063/0.001063, allocations: 160.9 kB / 23.95 MB, free: 0.5977 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9178/0.9178, allocations: 177 MB / 204.1 MB, free: 5.758 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2821/0.2821, allocations: 34.24 MB / 294.8 MB, free: 0.6836 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Math.TestScalarFunctions,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Math_TestScalarFunctions",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.TestScalarFunctions,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Math_TestScalarFunctions",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.843e-06/1.843e-06, allocations: 0 / 442.1 MB, free: 1.582 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.167e-05/2.351e-05, allocations: 2.281 kB / 442.1 MB, free: 1.578 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestScalarFunctions): time 0.001203/0.001226, allocations: 495.6 kB / 442.6 MB, free: 1.098 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.2053/0.2065, allocations: 1.578 MB / 444.2 MB, free: 43.27 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.497e-05/0.2066, allocations: 0 / 444.2 MB, free: 43.27 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 1.748e-05/0.2066, allocations: 4.906 kB / 444.2 MB, free: 43.27 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 7.013e-06/0.2066, allocations: 0 / 444.2 MB, free: 43.27 MB / 410.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/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.000515/0.2071, allocations: 172 kB / 444.4 MB, free: 43.22 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 5.487e-05/0.2071, allocations: 2.656 kB / 444.4 MB, free: 43.22 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.078e-05/0.2072, allocations: 5.125 kB / 444.4 MB, free: 43.22 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.207e-05/0.2072, allocations: 3.281 kB / 444.4 MB, free: 43.22 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.693e-05/0.2073, allocations: 0 / 444.4 MB, free: 43.22 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 1.096e-05/0.2073, allocations: 0 / 444.4 MB, free: 43.22 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003022/0.2076, allocations: 118.5 kB / 444.5 MB, free: 43.22 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 1.122e-05/0.2076, allocations: 0 / 444.5 MB, free: 43.22 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 2.083e-05/0.2076, allocations: 2.875 kB / 444.5 MB, free: 43.22 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001173/0.2077, allocations: 47.66 kB / 444.5 MB, free: 43.21 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.677e-06/0.2077, allocations: 0 / 444.5 MB, free: 43.21 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.302e-06/0.2077, allocations: 0 / 444.5 MB, free: 43.21 MB / 410.7 MB Notification: Performance of Transformations before backend: time 4.549e-06/0.2077, allocations: 0 / 444.5 MB, free: 43.21 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.0002204/0.208, allocations: 273.9 kB / 444.8 MB, free: 42.93 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.311e-05/0.208, allocations: 11.5 kB / 444.8 MB, free: 42.93 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.271e-05/0.208, allocations: 33.5 kB / 444.9 MB, free: 42.89 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.968e-05/0.208, allocations: 0.9375 kB / 444.9 MB, free: 42.89 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 4.021e-05/0.2081, allocations: 105.7 kB / 445 MB, free: 42.76 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.121e-05/0.2081, allocations: 6.688 kB / 445 MB, free: 42.76 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.245e-06/0.2081, allocations: 384 / 445 MB, free: 42.76 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.904e-05/0.2082, allocations: 60.89 kB / 445 MB, free: 42.7 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.005e-06/0.2082, allocations: 192 / 445 MB, free: 42.7 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.456e-06/0.2082, allocations: 4.688 kB / 445 MB, free: 42.7 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.859e-06/0.2082, allocations: 0 / 445 MB, free: 42.7 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.278e-05/0.2082, allocations: 38.62 kB / 445.1 MB, free: 42.66 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 7.698e-05/0.2083, allocations: 118.8 kB / 445.2 MB, free: 42.51 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.052e-05/0.2084, allocations: 47.45 kB / 445.2 MB, free: 42.45 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.274e-05/0.2084, allocations: 33.44 kB / 445.3 MB, free: 42.41 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.191e-06/0.2084, allocations: 0 / 445.3 MB, free: 42.41 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.667e-05/0.2084, allocations: 61.58 kB / 445.3 MB, free: 42.34 MB / 410.7 MB Notification: Performance of pre-optimization done (n=1): time 7.82e-07/0.2084, allocations: 0 / 445.3 MB, free: 42.34 MB / 410.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001612/0.2086, allocations: 125.6 kB / 445.4 MB, free: 42.21 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.939e-05/0.2086, allocations: 77.11 kB / 445.5 MB, free: 42.12 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.849e-05/0.2086, allocations: 93.12 kB / 445.6 MB, free: 42.02 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 4.809e-06/0.2086, allocations: 25.7 kB / 445.6 MB, free: 41.99 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.645e-06/0.2086, allocations: 80.14 kB / 445.7 MB, free: 41.91 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.654e-05/0.2086, allocations: 6.875 kB / 445.7 MB, free: 41.91 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.114e-05/0.2087, allocations: 15.97 kB / 445.7 MB, free: 41.89 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 2.749e-05/0.2087, allocations: 317.7 kB / 446 MB, free: 41.57 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.378e-05/0.2087, allocations: 25.7 kB / 446.1 MB, free: 41.54 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.075e-06/0.2087, allocations: 32.8 kB / 446.1 MB, free: 41.51 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.699e-05/0.2087, allocations: 59.17 kB / 446.2 MB, free: 41.44 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.704e-06/0.2087, allocations: 0 / 446.2 MB, free: 41.44 MB / 410.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.158e-05/0.2088, allocations: 94.58 kB / 446.3 MB, free: 41.34 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.62e-05/0.2088, allocations: 31.58 kB / 446.3 MB, free: 41.31 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.498e-06/0.2088, allocations: 0 / 446.3 MB, free: 41.31 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.252e-05/0.2088, allocations: 3.938 kB / 446.3 MB, free: 41.31 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.41e-07/0.2088, allocations: 0 / 446.3 MB, free: 41.31 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.961e-06/0.2088, allocations: 3.422 kB / 446.3 MB, free: 41.31 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.327e-05/0.2088, allocations: 4.094 kB / 446.3 MB, free: 41.3 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.324e-06/0.2089, allocations: 6.844 kB / 446.3 MB, free: 41.3 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.289e-05/0.2089, allocations: 135.4 kB / 446.4 MB, free: 41.16 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.757e-06/0.2089, allocations: 1.75 kB / 446.4 MB, free: 41.16 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.307e-06/0.2089, allocations: 3.562 kB / 446.4 MB, free: 41.15 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.204e-06/0.2089, allocations: 7.875 kB / 446.4 MB, free: 41.14 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.468e-06/0.2089, allocations: 0 / 446.4 MB, free: 41.14 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.955e-06/0.2089, allocations: 2.906 kB / 446.5 MB, free: 41.14 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 3.598e-05/0.209, allocations: 116 kB / 446.6 MB, free: 40.99 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.12e-07/0.209, allocations: 0 / 446.6 MB, free: 40.99 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.41e-07/0.209, allocations: 0.8438 kB / 446.6 MB, free: 40.99 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.41e-07/0.209, allocations: 6.969 kB / 446.6 MB, free: 40.99 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.192e-06/0.209, allocations: 0 / 446.6 MB, free: 40.99 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.41e-07/0.209, allocations: 3.938 kB / 446.6 MB, free: 40.98 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.01e-07/0.209, allocations: 0 / 446.6 MB, free: 40.98 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.444e-05/0.209, allocations: 115.5 kB / 446.7 MB, free: 40.86 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.089e-06/0.209, allocations: 9.703 kB / 446.7 MB, free: 40.86 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.267e-06/0.209, allocations: 0 / 446.7 MB, free: 40.86 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.552e-06/0.209, allocations: 6.5 kB / 446.7 MB, free: 40.86 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.285e-05/0.2091, allocations: 8.406 kB / 446.7 MB, free: 40.85 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.833e-06/0.2091, allocations: 0 / 446.7 MB, free: 40.85 MB / 410.7 MB Notification: Performance of sorting global known variables: time 9.948e-06/0.2091, allocations: 79.31 kB / 446.8 MB, free: 40.77 MB / 410.7 MB Notification: Performance of sort global known variables: time 5e-08/0.2091, allocations: 0 / 446.8 MB, free: 40.77 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0001392/0.2092, allocations: 14.66 kB / 446.8 MB, free: 40.77 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.0003377/0.2095, allocations: 0.6956 MB / 447.5 MB, free: 40.12 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 9.188e-05/0.2096, allocations: 110.2 kB / 447.6 MB, free: 40 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.412e-06/0.2096, allocations: 2.625 kB / 447.6 MB, free: 40 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 1.64e-05/0.2097, allocations: 91.25 kB / 447.7 MB, free: 39.89 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.578e-05/0.2097, allocations: 6.531 kB / 447.7 MB, free: 39.89 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002425/0.21, allocations: 141.5 kB / 447.8 MB, free: 39.73 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.501e-05/0.21, allocations: 54.27 kB / 447.9 MB, free: 39.66 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 5.16e-06/0.21, allocations: 3.938 kB / 447.9 MB, free: 39.65 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.385e-05/0.21, allocations: 8.5 kB / 447.9 MB, free: 39.65 MB / 410.7 MB Notification: Performance of SimCode: time 7.91e-07/0.21, allocations: 0 / 447.9 MB, free: 39.65 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01882/0.2289, allocations: 2.144 MB / 450.1 MB, free: 38.7 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.746/6.975, allocations: 9.797 kB / 450.1 MB, free: 38.7 MB / 410.7 MB " [Timeout remaining time 653] (rm -f ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_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_trunk_ModelicaTest_Math_TestScalarFunctions.fmu > ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions_res.csv","/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_trunk_ModelicaTest.Math.TestScalarFunctions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Failed to open simulation result ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions_res.csv: Error: Error opening file: ModelicaTest_trunk_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.135322689078748]