Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestSpecial.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.0008469/0.0008469, 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.0008767/0.0008767, 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.8651/0.8651, 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.2402/0.2402, allocations: 32.8 MB / 293.5 MB, free: 1.211 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.Random.TestSpecial,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Math_Random_TestSpecial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.Random.TestSpecial,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Math_Random_TestSpecial",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.595e-06/2.595e-06, allocations: 0 / 439.6 MB, free: 4.262 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.168e-05/3.427e-05, allocations: 2.281 kB / 439.6 MB, free: 4.258 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestSpecial): time 0.001654/0.001688, allocations: 0.5065 MB / 440.1 MB, free: 3.754 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.002092/0.003781, allocations: 1.93 MB / 442 MB, free: 1.801 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.725e-05/0.003798, allocations: 0 / 442 MB, free: 1.801 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 1.53e-05/0.003813, allocations: 0 / 442 MB, free: 1.801 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 7.143e-06/0.00382, allocations: 0 / 442 MB, free: 1.801 MB / 410.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/Math.mo:928:5-1011:16:writable] Warning: Pure function 'ModelicaTest.Math.Random.special' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.001289/0.005109, allocations: 0.5006 MB / 442.5 MB, free: 1.301 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 5.196e-05/0.005161, allocations: 4 kB / 442.5 MB, free: 1.297 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.09e-05/0.005202, allocations: 3.984 kB / 442.5 MB, free: 1.293 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.998e-05/0.005232, allocations: 3.984 kB / 442.5 MB, free: 1.289 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.055e-05/0.005252, allocations: 4 kB / 442.5 MB, free: 1.285 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 7.705e-06/0.00526, allocations: 0 / 442.5 MB, free: 1.285 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009113/0.006171, allocations: 0.6704 MB / 443.2 MB, free: 0.6133 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 8.997e-06/0.00618, allocations: 0 / 443.2 MB, free: 0.6133 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 2.219e-05/0.006203, allocations: 4 kB / 443.2 MB, free: 0.6094 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006218/0.006824, allocations: 494.8 kB / 443.7 MB, free: 128 kB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.779e-06/0.006829, allocations: 0 / 443.7 MB, free: 128 kB / 410.7 MB Notification: Performance of FrontEnd: time 2.385e-06/0.006832, allocations: 0 / 443.7 MB, free: 128 kB / 410.7 MB Notification: Performance of Transformations before backend: time 7.274e-06/0.006839, allocations: 0 / 443.7 MB, free: 128 kB / 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.1764/0.1832, allocations: 332 kB / 444 MB, free: 46.38 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.54e-05/0.1833, allocations: 10.19 kB / 444 MB, free: 46.38 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.02e-05/0.1833, allocations: 34.02 kB / 444.1 MB, free: 46.34 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.997e-05/0.1834, allocations: 3.938 kB / 444.1 MB, free: 46.34 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 3.927e-05/0.1834, allocations: 105.1 kB / 444.2 MB, free: 46.21 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.063e-05/0.1834, allocations: 0.9375 kB / 444.2 MB, free: 46.21 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.584e-06/0.1834, allocations: 4.875 kB / 444.2 MB, free: 46.21 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.589e-05/0.1835, allocations: 65.41 kB / 444.2 MB, free: 46.15 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.975e-06/0.1835, allocations: 192 / 444.2 MB, free: 46.15 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.074e-06/0.1835, allocations: 4.516 kB / 444.2 MB, free: 46.15 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.24e-06/0.1835, allocations: 5.531 kB / 444.2 MB, free: 46.14 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.095e-05/0.1835, allocations: 31.98 kB / 444.3 MB, free: 46.11 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001563/0.1837, allocations: 193.1 kB / 444.5 MB, free: 45.89 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.511e-05/0.1837, allocations: 54.95 kB / 444.5 MB, free: 45.83 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.911e-05/0.1838, allocations: 34.78 kB / 444.5 MB, free: 45.79 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.348e-06/0.1838, allocations: 3.281 kB / 444.5 MB, free: 45.79 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.444e-05/0.1838, allocations: 62.98 kB / 444.6 MB, free: 45.72 MB / 410.7 MB Notification: Performance of pre-optimization done (n=2): time 1.232e-06/0.1838, allocations: 0 / 444.6 MB, free: 45.72 MB / 410.7 MB Notification: Performance of matching and sorting (n=2): time 0.000159/0.184, allocations: 129.7 kB / 444.7 MB, free: 45.59 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.472e-05/0.184, allocations: 80.34 kB / 444.8 MB, free: 45.5 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.162e-05/0.184, allocations: 90.61 kB / 444.9 MB, free: 45.4 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 4.358e-06/0.184, allocations: 32.05 kB / 444.9 MB, free: 45.37 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.751e-06/0.184, allocations: 80.89 kB / 445 MB, free: 45.29 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.978e-05/0.184, allocations: 2 kB / 445 MB, free: 45.29 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.237e-05/0.184, allocations: 13.69 kB / 445 MB, free: 45.27 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 2.576e-05/0.1841, allocations: 314.1 kB / 445.3 MB, free: 44.96 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.441e-05/0.1841, allocations: 34.09 kB / 445.4 MB, free: 44.93 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.127e-06/0.1841, allocations: 26.83 kB / 445.4 MB, free: 44.9 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.889e-05/0.1841, allocations: 67.73 kB / 445.5 MB, free: 44.83 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.473e-06/0.1841, allocations: 4.031 kB / 445.5 MB, free: 44.83 MB / 410.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 4.242e-05/0.1842, allocations: 96.53 kB / 445.6 MB, free: 44.73 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.298e-05/0.1842, allocations: 37.77 kB / 445.6 MB, free: 44.7 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.108e-06/0.1842, allocations: 0 / 445.6 MB, free: 44.7 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.188e-05/0.1842, allocations: 3.781 kB / 445.6 MB, free: 44.7 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.534e-05/0.1842, allocations: 3.844 kB / 445.6 MB, free: 44.7 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.02e-06/0.1842, allocations: 0 / 445.6 MB, free: 44.7 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.605e-05/0.1842, allocations: 6.719 kB / 445.6 MB, free: 44.7 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.971e-06/0.1842, allocations: 0 / 445.6 MB, free: 44.7 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: 2 ($outputAlias_result,result) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 1 * 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.085e-05/0.1843, allocations: 136.5 kB / 445.7 MB, free: 44.55 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.206e-05/0.1843, allocations: 4 kB / 445.7 MB, free: 44.55 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.663e-05/0.1843, allocations: 10.56 kB / 445.8 MB, free: 44.54 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.314e-06/0.1843, allocations: 3.375 kB / 445.8 MB, free: 44.54 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.92e-06/0.1843, allocations: 0 / 445.8 MB, free: 44.54 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.136e-06/0.1843, allocations: 1.75 kB / 445.8 MB, free: 44.54 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001383/0.1845, allocations: 301.2 kB / 446.1 MB, free: 44.22 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.162e-06/0.1845, allocations: 0.6562 kB / 446.1 MB, free: 44.22 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.687e-06/0.1845, allocations: 0 / 446.1 MB, free: 44.22 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.063e-06/0.1845, allocations: 5.812 kB / 446.1 MB, free: 44.21 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.851e-06/0.1845, allocations: 2.688 kB / 446.1 MB, free: 44.21 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.213e-06/0.1845, allocations: 0 / 446.1 MB, free: 44.21 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.322e-06/0.1845, allocations: 0 / 446.1 MB, free: 44.21 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.231e-05/0.1845, allocations: 197.5 kB / 446.3 MB, free: 44.02 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.24e-06/0.1845, allocations: 4.859 kB / 446.3 MB, free: 44.02 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.058e-05/0.1845, allocations: 2.656 kB / 446.3 MB, free: 44.02 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.441e-05/0.1846, allocations: 5.406 kB / 446.3 MB, free: 44.02 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.665e-05/0.1846, allocations: 2.531 kB / 446.3 MB, free: 44.02 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.116e-06/0.1846, allocations: 0.8125 kB / 446.3 MB, free: 44.02 MB / 410.7 MB Notification: Performance of sorting global known variables: time 8.767e-06/0.1846, allocations: 75.28 kB / 446.3 MB, free: 43.95 MB / 410.7 MB Notification: Performance of sort global known variables: time 4e-08/0.1846, allocations: 0 / 446.3 MB, free: 43.95 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0004175/0.185, allocations: 132.8 kB / 446.5 MB, free: 43.95 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: 2 (result,$outputAlias_result) * Number of discrete states: 1 ($outputAlias_result) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 1 * 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.0007434/0.1858, allocations: 0.9946 MB / 447.5 MB, free: 43.19 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 8.864e-05/0.1858, allocations: 117.4 kB / 447.6 MB, free: 43.07 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.473e-06/0.1859, allocations: 0 / 447.6 MB, free: 43.07 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 1.562e-05/0.1859, allocations: 88.23 kB / 447.7 MB, free: 42.97 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001374/0.186, allocations: 2.844 kB / 447.7 MB, free: 42.97 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005017/0.1865, allocations: 1.336 MB / 449 MB, free: 41.63 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.876e-05/0.1865, allocations: 54.39 kB / 449.1 MB, free: 41.56 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 1.041e-05/0.1865, allocations: 3.938 kB / 449.1 MB, free: 41.55 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.111e-05/0.1866, allocations: 11.41 kB / 449.1 MB, free: 41.55 MB / 410.7 MB Notification: Performance of SimCode: time 8.32e-07/0.1866, allocations: 0 / 449.1 MB, free: 41.55 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02001/0.2066, allocations: 5.259 MB / 454.3 MB, free: 40.43 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.096/7.303, allocations: 5.969 kB / 454.3 MB, free: 40.43 MB / 410.7 MB " [Timeout remaining time 653] (rm -f ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestSpecial.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestSpecial.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestSpecial.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestSpecial.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestSpecial_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_Random_TestSpecial.fmu > ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestSpecial.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestSpecial_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/Random/TestSpecial/TestSpecial.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestSpecial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Failed to open simulation result ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestSpecial_res.csv: Error: Error opening file: ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestSpecial_res.csv " [Timeout remaining time 660] "" Variables in the reference:time,result Variables in the result: [Calling sys.exit(0), Time elapsed: 9.279091438278556]