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.001739/0.001739, allocations: 123.4 kB / 17.79 MB, free: 5.227 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.002176/0.002176, allocations: 209.6 kB / 20.75 MB, free: 2.27 MB / 14.72 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 1.527/1.527, allocations: 230.6 MB / 254.1 MB, free: 15.09 MB / 206.1 MB " [Timeout remaining time 178] 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.2266/0.2266, allocations: 44.92 MB / 355.1 MB, free: 12.32 MB / 286.1 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: ModelicaTest requested package Modelica of version 4.0.0. Modelica 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.00274/0.00274, allocations: 72.16 kB / 499.6 MB, free: 11.68 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1261/0.1289, allocations: 65.42 MB / 0.5517 GB, free: 10.13 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestSpecial): time 0.001655/0.1305, allocations: 0.4892 MB / 0.5522 GB, free: 9.637 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.002944/0.1335, allocations: 2.045 MB / 0.5542 GB, free: 7.57 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.602e-05/0.1335, allocations: 0 / 0.5542 GB, free: 7.57 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 1.157e-05/0.1335, allocations: 4 kB / 0.5542 GB, free: 7.566 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 5.139e-06/0.1335, allocations: 0 / 0.5542 GB, free: 7.566 MB / 414.1 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.001421/0.1349, allocations: 0.4948 MB / 0.5547 GB, free: 7.07 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 5.412e-05/0.135, allocations: 0 / 0.5547 GB, free: 7.07 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.499e-05/0.135, allocations: 0 / 0.5547 GB, free: 7.07 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.478e-05/0.135, allocations: 4 kB / 0.5547 GB, free: 7.066 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.739e-05/0.1351, allocations: 0 / 0.5547 GB, free: 7.066 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 6.643e-06/0.1351, allocations: 3.938 kB / 0.5547 GB, free: 7.062 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001032/0.1361, allocations: 0.671 MB / 0.5554 GB, free: 6.391 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 6.973e-06/0.1361, allocations: 4 kB / 0.5554 GB, free: 6.387 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 1.906e-05/0.1361, allocations: 3.984 kB / 0.5554 GB, free: 6.383 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005405/0.1367, allocations: 387.1 kB / 0.5558 GB, free: 6.004 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.687e-06/0.1367, allocations: 0 / 0.5558 GB, free: 6.004 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.323e-06/0.1367, allocations: 0 / 0.5558 GB, free: 6.004 MB / 414.1 MB Notification: Performance of Transformations before backend: time 5.09e-06/0.1367, allocations: 0 / 0.5558 GB, free: 6.004 MB / 414.1 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.000513/0.1372, allocations: 424.4 kB / 0.5562 GB, free: 5.535 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.14e-05/0.1372, allocations: 15.97 kB / 0.5562 GB, free: 5.52 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.614e-05/0.1373, allocations: 38.69 kB / 0.5562 GB, free: 5.473 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.388e-05/0.1373, allocations: 0.9375 kB / 0.5562 GB, free: 5.473 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001224/0.1374, allocations: 160.4 kB / 0.5564 GB, free: 5.277 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.993e-06/0.1374, allocations: 4.312 kB / 0.5564 GB, free: 5.273 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.463e-05/0.1375, allocations: 4.375 kB / 0.5564 GB, free: 5.27 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000115/0.1376, allocations: 41.81 kB / 0.5564 GB, free: 5.223 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.814e-06/0.1376, allocations: 0 / 0.5564 GB, free: 5.223 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.023e-06/0.1376, allocations: 4 kB / 0.5564 GB, free: 5.219 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.918e-06/0.1376, allocations: 0 / 0.5564 GB, free: 5.219 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.742e-05/0.1376, allocations: 0 / 0.5564 GB, free: 5.219 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002455/0.1379, allocations: 232.9 kB / 0.5566 GB, free: 4.941 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.264e-05/0.1379, allocations: 22.55 kB / 0.5567 GB, free: 4.91 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.145e-05/0.1379, allocations: 8.922 kB / 0.5567 GB, free: 4.898 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.237e-05/0.1379, allocations: 4 kB / 0.5567 GB, free: 4.895 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.725e-05/0.138, allocations: 64.27 kB / 0.5567 GB, free: 4.816 MB / 414.1 MB Notification: Performance of pre-optimization done (n=2): time 1.002e-06/0.138, allocations: 0 / 0.5567 GB, free: 4.816 MB / 414.1 MB Notification: Performance of matching and sorting (n=2): time 0.0001861/0.1382, allocations: 67.39 kB / 0.5568 GB, free: 4.738 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.581e-05/0.1382, allocations: 85.05 kB / 0.5569 GB, free: 4.637 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.209e-05/0.1383, allocations: 89.86 kB / 0.557 GB, free: 4.539 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.471e-05/0.1383, allocations: 25.7 kB / 0.557 GB, free: 4.508 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.595e-05/0.1383, allocations: 80.14 kB / 0.5571 GB, free: 4.426 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.217e-05/0.1384, allocations: 16.02 kB / 0.5571 GB, free: 4.41 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.601e-05/0.1384, allocations: 13.7 kB / 0.5571 GB, free: 4.391 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001481/0.1385, allocations: 314.8 kB / 0.5574 GB, free: 4.074 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.445e-05/0.1386, allocations: 4 kB / 0.5574 GB, free: 4.07 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.192e-06/0.1386, allocations: 0 / 0.5574 GB, free: 4.07 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.414e-05/0.1386, allocations: 64.27 kB / 0.5575 GB, free: 3.992 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.326e-06/0.1386, allocations: 3.938 kB / 0.5575 GB, free: 3.988 MB / 414.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 8.951e-05/0.1387, allocations: 71.45 kB / 0.5575 GB, free: 3.906 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.275e-05/0.1387, allocations: 33.7 kB / 0.5576 GB, free: 3.867 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.426e-06/0.1388, allocations: 3.938 kB / 0.5576 GB, free: 3.863 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.062e-05/0.1388, allocations: 0 / 0.5576 GB, free: 3.863 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.627e-05/0.1388, allocations: 4 kB / 0.5576 GB, free: 3.859 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.807e-06/0.1388, allocations: 0 / 0.5576 GB, free: 3.859 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.426e-05/0.1388, allocations: 0 / 0.5576 GB, free: 3.859 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.616e-06/0.1388, allocations: 4 kB / 0.5576 GB, free: 3.855 MB / 414.1 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 0.0001024/0.1389, allocations: 149.6 kB / 0.5577 GB, free: 3.695 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.142e-05/0.1389, allocations: 4.031 kB / 0.5577 GB, free: 3.691 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.291e-05/0.1389, allocations: 7.125 kB / 0.5577 GB, free: 3.688 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.132e-06/0.1389, allocations: 0 / 0.5577 GB, free: 3.688 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.206e-06/0.1389, allocations: 0 / 0.5577 GB, free: 3.688 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.815e-06/0.1389, allocations: 3.938 kB / 0.5577 GB, free: 3.684 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002783/0.1392, allocations: 292.3 kB / 0.558 GB, free: 3.336 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.162e-06/0.1392, allocations: 4 kB / 0.558 GB, free: 3.332 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.771e-06/0.1392, allocations: 3.938 kB / 0.558 GB, free: 3.328 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.196e-06/0.1392, allocations: 3.984 kB / 0.558 GB, free: 3.324 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.901e-06/0.1392, allocations: 0 / 0.558 GB, free: 3.324 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.002e-06/0.1392, allocations: 4.031 kB / 0.558 GB, free: 3.32 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.92e-07/0.1392, allocations: 0 / 0.558 GB, free: 3.32 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001417/0.1394, allocations: 173.2 kB / 0.5582 GB, free: 3.129 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.811e-05/0.1394, allocations: 77.11 kB / 0.5583 GB, free: 3.035 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.113e-05/0.1394, allocations: 0 / 0.5583 GB, free: 3.035 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.779e-05/0.1395, allocations: 0 / 0.5583 GB, free: 3.035 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.903e-05/0.1395, allocations: 4 kB / 0.5583 GB, free: 3.031 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.086e-06/0.1395, allocations: 4.031 kB / 0.5583 GB, free: 3.027 MB / 414.1 MB Notification: Performance of sorting global known variables: time 4.255e-05/0.1395, allocations: 75.28 kB / 0.5583 GB, free: 2.953 MB / 414.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.1395, allocations: 0 / 0.5583 GB, free: 2.953 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.000425/0.14, allocations: 139.5 kB / 0.5585 GB, free: 2.816 MB / 414.1 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.001156/0.1411, allocations: 0.9296 MB / 0.5594 GB, free: 1.863 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.000117/0.1412, allocations: 59.41 kB / 0.5594 GB, free: 1.793 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.693e-06/0.1412, allocations: 0 / 0.5594 GB, free: 1.793 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 5.632e-05/0.1413, allocations: 67.41 kB / 0.5595 GB, free: 1.715 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001817/0.1415, allocations: 0 / 0.5595 GB, free: 1.715 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001041/0.1425, allocations: 1.195 MB / 0.5607 GB, free: 444 kB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003258/0.1428, allocations: 0.669 MB / 0.5613 GB, free: 15.74 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 1.014e-05/0.1429, allocations: 3.938 kB / 0.5613 GB, free: 15.73 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.139e-05/0.1429, allocations: 15.38 kB / 0.5613 GB, free: 15.72 MB / 430.1 MB Notification: Performance of SimCode: time 2.81e-07/0.1429, allocations: 0 / 0.5613 GB, free: 15.72 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02813/0.171, allocations: 4.543 MB / 0.5658 GB, free: 11.25 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.218/8.389, allocations: 0 / 0.5658 GB, free: 11.25 MB / 430.1 MB " [Timeout remaining time 652] (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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/Random/TestSpecial/TestSpecial.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestSpecial.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: 11.593989911023527]