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.001642/0.001642, allocations: 111.1 kB / 20.44 MB, free: 1.062 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.001998/0.001998, allocations: 212.4 kB / 23.73 MB, free: 4.16 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.617/1.617, allocations: 230.6 MB / 257.5 MB, free: 7.805 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.2328/0.2328, allocations: 44.93 MB / 358.8 MB, free: 6.023 MB / 286.1 MB " [Timeout remaining time 179] 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.002417/0.002417, allocations: 67.91 kB / 0.493 GB, free: 10.51 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3968/0.3992, allocations: 65.48 MB / 0.557 GB, free: 7.312 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestSpecial): time 0.001711/0.401, allocations: 0.4971 MB / 0.5574 GB, free: 6.938 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003233/0.4042, allocations: 1.922 MB / 0.5593 GB, free: 5.078 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.006e-05/0.4042, allocations: 3.938 kB / 0.5593 GB, free: 5.074 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.754e-05/0.4042, allocations: 4 kB / 0.5593 GB, free: 5.07 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.903e-06/0.4042, allocations: 0 / 0.5593 GB, free: 5.07 MB / 398.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.001555/0.4058, allocations: 0.5016 MB / 0.5598 GB, free: 4.57 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.372e-05/0.4058, allocations: 4 kB / 0.5598 GB, free: 4.566 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.542e-05/0.4059, allocations: 0 / 0.5598 GB, free: 4.566 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.595e-05/0.4059, allocations: 0 / 0.5598 GB, free: 4.566 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.867e-05/0.4059, allocations: 0 / 0.5598 GB, free: 4.566 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.652e-06/0.4059, allocations: 4 kB / 0.5598 GB, free: 4.562 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001078/0.407, allocations: 0.6685 MB / 0.5605 GB, free: 3.895 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.825e-06/0.407, allocations: 0 / 0.5605 GB, free: 3.895 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.234e-05/0.407, allocations: 4 kB / 0.5605 GB, free: 3.891 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005704/0.4076, allocations: 395 kB / 0.5609 GB, free: 3.504 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.145e-06/0.4076, allocations: 0 / 0.5609 GB, free: 3.504 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.4076, allocations: 0 / 0.5609 GB, free: 3.504 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.51e-06/0.4076, allocations: 4 kB / 0.5609 GB, free: 3.5 MB / 398.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.0004336/0.408, allocations: 333.9 kB / 0.5612 GB, free: 3.141 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.957e-05/0.4081, allocations: 16.02 kB / 0.5612 GB, free: 3.125 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.9e-05/0.4081, allocations: 34.7 kB / 0.5612 GB, free: 3.082 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.198e-05/0.4082, allocations: 0.9375 kB / 0.5612 GB, free: 3.082 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.613e-05/0.4083, allocations: 110.5 kB / 0.5613 GB, free: 2.949 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.157e-05/0.4083, allocations: 384 / 0.5613 GB, free: 2.949 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.127e-05/0.4083, allocations: 384 / 0.5613 GB, free: 2.949 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001208/0.4084, allocations: 63.53 kB / 0.5614 GB, free: 2.875 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.888e-06/0.4084, allocations: 3.984 kB / 0.5614 GB, free: 2.871 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.525e-06/0.4084, allocations: 0 / 0.5614 GB, free: 2.871 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.208e-06/0.4084, allocations: 4 kB / 0.5614 GB, free: 2.867 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.228e-05/0.4085, allocations: 33.64 kB / 0.5614 GB, free: 2.828 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002392/0.4087, allocations: 207.9 kB / 0.5616 GB, free: 2.582 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.691e-05/0.4088, allocations: 48.3 kB / 0.5617 GB, free: 2.52 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.832e-05/0.4088, allocations: 38.62 kB / 0.5617 GB, free: 2.473 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.232e-05/0.4088, allocations: 4 kB / 0.5617 GB, free: 2.469 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.249e-05/0.4089, allocations: 56.27 kB / 0.5618 GB, free: 2.398 MB / 398.1 MB Notification: Performance of pre-optimization done (n=2): time 1.122e-06/0.4089, allocations: 0 / 0.5618 GB, free: 2.398 MB / 398.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002174/0.4091, allocations: 126.9 kB / 0.5619 GB, free: 2.25 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.321e-05/0.4092, allocations: 85.11 kB / 0.562 GB, free: 2.148 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.65e-05/0.4092, allocations: 89.86 kB / 0.5621 GB, free: 2.051 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.535e-05/0.4092, allocations: 25.7 kB / 0.5621 GB, free: 2.02 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.66e-05/0.4093, allocations: 80.14 kB / 0.5622 GB, free: 1.938 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.562e-05/0.4093, allocations: 4 kB / 0.5622 GB, free: 1.934 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.412e-05/0.4093, allocations: 21.64 kB / 0.5622 GB, free: 1.906 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001452/0.4095, allocations: 310.8 kB / 0.5625 GB, free: 1.594 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.484e-05/0.4095, allocations: 29.7 kB / 0.5625 GB, free: 1.559 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.647e-05/0.4095, allocations: 29.7 kB / 0.5625 GB, free: 1.523 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.305e-05/0.4096, allocations: 72.27 kB / 0.5626 GB, free: 1.438 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.228e-06/0.4096, allocations: 3.938 kB / 0.5626 GB, free: 1.434 MB / 398.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001041/0.4097, allocations: 93.09 kB / 0.5627 GB, free: 1.324 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.191e-05/0.4098, allocations: 33.7 kB / 0.5627 GB, free: 1.285 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.99e-06/0.4098, allocations: 0 / 0.5627 GB, free: 1.285 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.942e-05/0.4098, allocations: 3.984 kB / 0.5627 GB, free: 1.281 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.662e-05/0.4098, allocations: 0 / 0.5627 GB, free: 1.281 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.196e-06/0.4098, allocations: 3.984 kB / 0.5627 GB, free: 1.277 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.825e-05/0.4098, allocations: 3.953 kB / 0.5628 GB, free: 1.273 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.889e-06/0.4098, allocations: 4 kB / 0.5628 GB, free: 1.27 MB / 398.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.0001229/0.41, allocations: 143.5 kB / 0.5629 GB, free: 1.113 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.266e-05/0.41, allocations: 4 kB / 0.5629 GB, free: 1.109 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.041e-05/0.41, allocations: 3.156 kB / 0.5629 GB, free: 1.102 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.122e-06/0.41, allocations: 0 / 0.5629 GB, free: 1.102 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.237e-06/0.41, allocations: 0 / 0.5629 GB, free: 1.102 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.366e-06/0.41, allocations: 0 / 0.5629 GB, free: 1.102 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003116/0.4103, allocations: 301 kB / 0.5632 GB, free: 0.7461 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-06/0.4103, allocations: 0 / 0.5632 GB, free: 0.7461 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.306e-06/0.4103, allocations: 0 / 0.5632 GB, free: 0.7461 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.382e-06/0.4103, allocations: 0 / 0.5632 GB, free: 0.7461 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.578e-06/0.4103, allocations: 7.969 kB / 0.5632 GB, free: 0.7383 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.12e-07/0.4103, allocations: 4 kB / 0.5632 GB, free: 0.7344 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.31e-07/0.4103, allocations: 0 / 0.5632 GB, free: 0.7344 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001802/0.4105, allocations: 202.8 kB / 0.5634 GB, free: 0.5078 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.997e-06/0.4105, allocations: 0 / 0.5634 GB, free: 0.5078 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.241e-05/0.4105, allocations: 0 / 0.5634 GB, free: 0.5078 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.395e-05/0.4106, allocations: 4 kB / 0.5634 GB, free: 0.5039 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.031e-05/0.4106, allocations: 0 / 0.5634 GB, free: 0.5039 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.849e-06/0.4106, allocations: 4 kB / 0.5634 GB, free: 0.5 MB / 398.1 MB Notification: Performance of sorting global known variables: time 5.21e-05/0.4106, allocations: 75.28 kB / 0.5635 GB, free: 436 kB / 398.1 MB Notification: Performance of sort global known variables: time 5e-08/0.4106, allocations: 0 / 0.5635 GB, free: 436 kB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004463/0.4111, allocations: 143.6 kB / 0.5636 GB, free: 292 kB / 398.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.001212/0.4123, allocations: 0.9616 MB / 0.5645 GB, free: 15.29 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001522/0.4125, allocations: 126.8 kB / 0.5647 GB, free: 15.14 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.693e-06/0.4125, allocations: 0 / 0.5647 GB, free: 15.14 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 7.314e-05/0.4125, allocations: 85.11 kB / 0.5647 GB, free: 15.04 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001926/0.4127, allocations: 0 / 0.5647 GB, free: 15.04 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001256/0.414, allocations: 1.34 MB / 0.5661 GB, free: 13.58 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.391e-05/0.414, allocations: 55.36 kB / 0.5661 GB, free: 13.5 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 1.044e-05/0.414, allocations: 0 / 0.5661 GB, free: 13.5 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.265e-05/0.4141, allocations: 11.62 kB / 0.5661 GB, free: 13.49 MB / 414.1 MB Notification: Performance of SimCode: time 4.1e-07/0.4141, allocations: 0 / 0.5661 GB, free: 13.49 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03388/0.4479, allocations: 5.102 MB / 0.5711 GB, free: 8.523 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.33/11.77, allocations: 0 / 0.5711 GB, free: 8.523 MB / 414.1 MB " [Timeout remaining time 648] (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: 14.989589287899435]