Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Math.Random.Examples.GenerateRandomNumbers.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.001322/0.001322, allocations: 111.6 kB / 18.45 MB, free: 4.59 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.001407/0.001407, allocations: 215.2 kB / 21.42 MB, free: 1.629 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.508/1.508, allocations: 207.6 MB / 231.8 MB, free: 4.219 MB / 174.1 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(Modelica.Math.Random.Examples.GenerateRandomNumbers,fileNamePrefix="Modelica_3_2_3_Modelica_Math_Random_Examples_GenerateRandomNumbers",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Math.Random.Examples.GenerateRandomNumbers,fileNamePrefix="Modelica_3_2_3_Modelica_Math_Random_Examples_GenerateRandomNumbers",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001726/0.001726, allocations: 59.86 kB / 342.3 MB, free: 9.992 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1156/0.1173, allocations: 49.12 MB / 391.4 MB, free: 8.703 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Math.Random.Examples.GenerateRandomNumbers): time 0.002975/0.1203, allocations: 1.231 MB / 392.6 MB, free: 7.465 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001096/0.1214, allocations: 464.7 kB / 393.1 MB, free: 7.012 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.421e-05/0.1214, allocations: 3.938 kB / 393.1 MB, free: 7.008 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 3.558e-05/0.1215, allocations: 0 / 393.1 MB, free: 7.008 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004706/0.1219, allocations: 71.73 kB / 393.2 MB, free: 6.938 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001685/0.1221, allocations: 75.73 kB / 393.2 MB, free: 6.863 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001029/0.1222, allocations: 39.91 kB / 393.3 MB, free: 6.824 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.331e-05/0.1223, allocations: 7.938 kB / 393.3 MB, free: 6.816 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.972e-05/0.1223, allocations: 23.91 kB / 393.3 MB, free: 6.793 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.197e-05/0.1223, allocations: 27.91 kB / 393.3 MB, free: 6.766 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.252e-05/0.1224, allocations: 0 / 393.3 MB, free: 6.766 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002566/0.1226, allocations: 123.8 kB / 393.5 MB, free: 6.645 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.781e-05/0.1227, allocations: 31.91 kB / 393.5 MB, free: 6.613 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 6.767e-05/0.1227, allocations: 55.61 kB / 393.6 MB, free: 6.559 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002767/0.123, allocations: 179.5 kB / 393.7 MB, free: 6.383 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.468e-06/0.123, allocations: 0 / 393.7 MB, free: 6.383 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.773e-06/0.123, allocations: 0 / 393.7 MB, free: 6.383 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.921e-06/0.123, allocations: 0 / 393.7 MB, free: 6.383 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 44 * Number of variables: 44 Notification: Performance of Generate backend data structure: time 0.0007177/0.1237, allocations: 0.5721 MB / 394.3 MB, free: 5.746 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.346e-05/0.1238, allocations: 12.03 kB / 394.3 MB, free: 5.734 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.52e-05/0.1239, allocations: 58.62 kB / 394.4 MB, free: 5.668 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001277/0.124, allocations: 20.84 kB / 394.4 MB, free: 5.648 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002136/0.1242, allocations: 188.2 kB / 394.6 MB, free: 5.426 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.573e-05/0.1242, allocations: 4.375 kB / 394.6 MB, free: 5.422 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.541e-05/0.1243, allocations: 4.375 kB / 394.6 MB, free: 5.418 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004815/0.1247, allocations: 282.9 kB / 394.9 MB, free: 5.129 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.123e-05/0.1247, allocations: 3.938 kB / 394.9 MB, free: 5.125 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.152e-05/0.1248, allocations: 4 kB / 394.9 MB, free: 5.121 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.745e-06/0.1248, allocations: 4 kB / 394.9 MB, free: 5.117 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002032/0.125, allocations: 148.2 kB / 395 MB, free: 4.969 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004893/0.1255, allocations: 377.7 kB / 395.4 MB, free: 4.547 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002387/0.1257, allocations: 193.4 kB / 395.6 MB, free: 4.34 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001968/0.1259, allocations: 174.1 kB / 395.7 MB, free: 4.164 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.714e-06/0.1259, allocations: 0 / 395.7 MB, free: 4.164 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005997/0.1265, allocations: 490.7 kB / 396.2 MB, free: 3.641 MB / 318.1 MB Notification: Performance of pre-optimization done (n=49): time 1.072e-06/0.1265, allocations: 0 / 396.2 MB, free: 3.641 MB / 318.1 MB Notification: Performance of matching and sorting (n=49): time 0.001207/0.1277, allocations: 0.7566 MB / 397 MB, free: 2.867 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001429/0.1278, allocations: 168.5 kB / 397.1 MB, free: 2.672 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.681e-05/0.1279, allocations: 97.86 kB / 397.2 MB, free: 2.566 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.089e-05/0.128, allocations: 29.7 kB / 397.3 MB, free: 2.531 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.705e-05/0.128, allocations: 85.12 kB / 397.4 MB, free: 2.445 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.234e-05/0.1281, allocations: 103.1 kB / 397.5 MB, free: 2.344 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.262e-05/0.1282, allocations: 45.7 kB / 397.5 MB, free: 2.293 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001865/0.1284, allocations: 330.8 kB / 397.8 MB, free: 1.961 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.414e-05/0.1285, allocations: 80.41 kB / 397.9 MB, free: 1.883 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000121/0.1286, allocations: 120.3 kB / 398 MB, free: 1.762 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004224/0.129, allocations: 436.8 kB / 398.4 MB, free: 1.305 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.879e-06/0.129, allocations: 7.938 kB / 398.4 MB, free: 1.297 MB / 318.1 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0004073/0.1294, allocations: 361 kB / 398.8 MB, free: 0.9258 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001262/0.1295, allocations: 111.3 kB / 398.9 MB, free: 0.8047 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.833e-06/0.1295, allocations: 4 kB / 398.9 MB, free: 0.8008 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.177e-05/0.1296, allocations: 0 / 398.9 MB, free: 0.8008 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.121e-05/0.1297, allocations: 4 kB / 398.9 MB, free: 0.7969 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.185e-06/0.1297, allocations: 3.938 kB / 398.9 MB, free: 0.793 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.243e-05/0.1297, allocations: 31.88 kB / 399 MB, free: 0.7617 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.215e-05/0.1298, allocations: 8 kB / 399 MB, free: 0.7539 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 46 (state1024[33],state1024[32],state1024[31],state1024[30],state1024[29],state1024[28],state1024[27],state1024[26],state1024[25],state1024[24],state1024[23],state1024[22],state1024[21],state1024[20],state1024[19],state1024[18],state1024[17],state1024[16],state1024[15],state1024[14],state1024[13],state1024[12],state1024[11],state1024[10],state1024[9],state1024[8],state1024[7],state1024[6],state1024[5],state1024[4],state1024[3],state1024[2],state1024[1],state128[4],state128[3],state128[2],state128[1],state64[2],state64[1],$outputAlias_r1024,$outputAlias_r128,$outputAlias_r64,$whenCondition2,iImpure,rImpure,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (5): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 2 * 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.0003872/0.1302, allocations: 303.7 kB / 399.3 MB, free: 448 kB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.491e-05/0.1302, allocations: 27.89 kB / 399.3 MB, free: 420 kB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.528e-05/0.1302, allocations: 9.562 kB / 399.3 MB, free: 408 kB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.239e-06/0.1302, allocations: 4 kB / 399.3 MB, free: 404 kB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.608e-06/0.1302, allocations: 0 / 399.3 MB, free: 404 kB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.935e-06/0.1302, allocations: 0 / 399.3 MB, free: 404 kB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001735/0.132, allocations: 1.467 MB / 400.8 MB, free: 14.86 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.084e-06/0.132, allocations: 0 / 400.8 MB, free: 14.86 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.713e-05/0.132, allocations: 7.984 kB / 400.8 MB, free: 14.85 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.735e-06/0.132, allocations: 4 kB / 400.8 MB, free: 14.85 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.141e-05/0.132, allocations: 16 kB / 400.8 MB, free: 14.83 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.984e-06/0.132, allocations: 0 / 400.8 MB, free: 14.83 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.461e-06/0.1321, allocations: 7.984 kB / 400.8 MB, free: 14.82 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00172/0.1338, allocations: 1.335 MB / 402.1 MB, free: 13.46 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.414e-05/0.1338, allocations: 92.95 kB / 402.2 MB, free: 13.35 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001061/0.134, allocations: 72.06 kB / 402.3 MB, free: 13.28 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.011e-05/0.134, allocations: 19.94 kB / 402.3 MB, free: 13.26 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.091e-05/0.1341, allocations: 15.98 kB / 402.3 MB, free: 13.25 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.857e-05/0.1341, allocations: 19.98 kB / 402.4 MB, free: 13.23 MB / 334.1 MB Notification: Performance of sorting global known variables: time 5.988e-05/0.1342, allocations: 79.22 kB / 402.4 MB, free: 13.15 MB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1342, allocations: 0 / 402.4 MB, free: 13.15 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003999/0.1346, allocations: 95.92 kB / 402.5 MB, free: 13.05 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 46 ($whenCondition1,rImpure,iImpure,$whenCondition2,$outputAlias_r64,$outputAlias_r128,$outputAlias_r1024,state64[1],state64[2],state128[1],state128[2],state128[3],state128[4],state1024[1],state1024[2],state1024[3],state1024[4],state1024[5],state1024[6],state1024[7],state1024[8],state1024[9],state1024[10],state1024[11],state1024[12],state1024[13],state1024[14],state1024[15],state1024[16],state1024[17],state1024[18],state1024[19],state1024[20],state1024[21],state1024[22],state1024[23],state1024[24],state1024[25],state1024[26],state1024[27],state1024[28],state1024[29],state1024[30],state1024[31],state1024[32],state1024[33]) * Number of discrete states: 46 ($outputAlias_r1024,$outputAlias_r128,$outputAlias_r64,state1024[33],state1024[32],state1024[31],state1024[30],state1024[29],state1024[28],state1024[27],state1024[26],state1024[25],state1024[24],state1024[23],state1024[22],state1024[21],state1024[20],state1024[19],state1024[18],state1024[17],state1024[16],state1024[15],state1024[14],state1024[13],state1024[12],state1024[11],state1024[10],state1024[9],state1024[8],state1024[7],state1024[6],state1024[5],state1024[4],state1024[3],state1024[2],state1024[1],state128[4],state128[3],state128[2],state128[1],state64[2],state64[1],$whenCondition2,iImpure,rImpure,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (5): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 2 * 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.002616/0.1372, allocations: 2.327 MB / 404.8 MB, free: 10.68 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001288/0.1385, allocations: 1.078 MB / 405.9 MB, free: 9.574 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.295e-06/0.1385, allocations: 3.938 kB / 405.9 MB, free: 9.57 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009549/0.1394, allocations: 0.9006 MB / 406.8 MB, free: 8.645 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002739/0.1397, allocations: 27.94 kB / 406.9 MB, free: 8.617 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003884/0.1436, allocations: 3.331 MB / 410.2 MB, free: 5.176 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004162/0.144, allocations: 0.7241 MB / 410.9 MB, free: 4.426 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 1.786e-05/0.144, allocations: 0 / 410.9 MB, free: 4.426 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.804e-05/0.1441, allocations: 39.42 kB / 411 MB, free: 4.387 MB / 334.1 MB Notification: Performance of SimCode: time 8.42e-07/0.1441, allocations: 4 kB / 411 MB, free: 4.383 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03093/0.175, allocations: 4.771 MB / 415.7 MB, free: 15.56 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.016/8.191, allocations: 11.75 kB / 415.7 MB, free: 15.55 MB / 350.1 MB " [Timeout remaining time 652] (rm -f Modelica_3.2.3_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe ; mkfifo Modelica_3.2.3_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe >> ../files/Modelica_3.2.3_Modelica.Math.Random.Examples.GenerateRandomNumbers.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Math.Random.Examples.GenerateRandomNumbers_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000396747 Modelica_3_2_3_Modelica_Math_Random_Examples_GenerateRandomNumbers.fmu > Modelica_3.2.3_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Math.Random.Examples.GenerateRandomNumbers_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Math/Random/Examples/GenerateRandomNumbers/GenerateRandomNumbers.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Math.Random.Examples.GenerateRandomNumbers.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: 10.8657864889974]