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.00174/0.00174, allocations: 109.4 kB / 20.43 MB, free: 1.473 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.002141/0.002141, allocations: 209.8 kB / 23.74 MB, free: 4.691 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.448/1.448, allocations: 230.6 MB / 257.5 MB, free: 8.016 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.2189/0.2189, allocations: 44.91 MB / 358.8 MB, free: 6.309 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.001991/0.001991, allocations: 69.77 kB / 0.4931 GB, free: 10.74 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3463/0.3482, allocations: 65.47 MB / 0.557 GB, free: 7.547 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestSpecial): time 0.001826/0.3501, allocations: 0.5042 MB / 0.5575 GB, free: 7.164 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003499/0.3536, allocations: 2.055 MB / 0.5595 GB, free: 5.219 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.354e-05/0.3536, allocations: 0 / 0.5595 GB, free: 5.219 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.575e-05/0.3536, allocations: 0 / 0.5595 GB, free: 5.219 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.392e-06/0.3536, allocations: 0 / 0.5595 GB, free: 5.219 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.002032/0.3556, allocations: 0.5024 MB / 0.56 GB, free: 4.719 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.509e-05/0.3557, allocations: 0 / 0.56 GB, free: 4.719 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.262e-05/0.3557, allocations: 4 kB / 0.56 GB, free: 4.715 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.946e-05/0.3558, allocations: 3.984 kB / 0.56 GB, free: 4.711 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.064e-05/0.3558, allocations: 7.938 kB / 0.56 GB, free: 4.703 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.113e-06/0.3558, allocations: 0 / 0.56 GB, free: 4.703 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001163/0.357, allocations: 0.731 MB / 0.5607 GB, free: 3.973 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 9.237e-06/0.357, allocations: 3.938 kB / 0.5607 GB, free: 3.969 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.723e-05/0.357, allocations: 4 kB / 0.5607 GB, free: 3.965 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000588/0.3576, allocations: 399 kB / 0.5611 GB, free: 3.574 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/0.3576, allocations: 0 / 0.5611 GB, free: 3.574 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.694e-06/0.3576, allocations: 0 / 0.5611 GB, free: 3.574 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.392e-06/0.3576, allocations: 0 / 0.5611 GB, free: 3.574 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.0005426/0.3581, allocations: 339.4 kB / 0.5615 GB, free: 3.207 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.681e-05/0.3582, allocations: 8.031 kB / 0.5615 GB, free: 3.199 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.537e-05/0.3583, allocations: 38.7 kB / 0.5615 GB, free: 3.152 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.2e-05/0.3583, allocations: 0.9375 kB / 0.5615 GB, free: 3.152 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001195/0.3584, allocations: 110.5 kB / 0.5616 GB, free: 3.02 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.846e-06/0.3584, allocations: 4.375 kB / 0.5616 GB, free: 3.016 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.43e-05/0.3584, allocations: 384 / 0.5616 GB, free: 3.016 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001324/0.3586, allocations: 41.81 kB / 0.5616 GB, free: 2.969 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.395e-05/0.3586, allocations: 3.984 kB / 0.5617 GB, free: 2.965 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.034e-05/0.3586, allocations: 0 / 0.5617 GB, free: 2.965 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.711e-06/0.3586, allocations: 0 / 0.5617 GB, free: 2.965 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.536e-05/0.3586, allocations: 7.938 kB / 0.5617 GB, free: 2.957 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002881/0.3589, allocations: 204 kB / 0.5619 GB, free: 2.715 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.622e-05/0.359, allocations: 26.61 kB / 0.5619 GB, free: 2.68 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.496e-05/0.359, allocations: 8.922 kB / 0.5619 GB, free: 2.668 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.086e-06/0.359, allocations: 0 / 0.5619 GB, free: 2.668 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.951e-05/0.3591, allocations: 60.25 kB / 0.5619 GB, free: 2.594 MB / 398.1 MB Notification: Performance of pre-optimization done (n=2): time 9.92e-07/0.3591, allocations: 0 / 0.5619 GB, free: 2.594 MB / 398.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002328/0.3593, allocations: 71.34 kB / 0.562 GB, free: 2.512 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.521e-05/0.3594, allocations: 85.23 kB / 0.5621 GB, free: 2.41 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.622e-05/0.3595, allocations: 93.8 kB / 0.5622 GB, free: 2.309 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.104e-05/0.3595, allocations: 25.7 kB / 0.5622 GB, free: 2.277 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.562e-05/0.3595, allocations: 84.12 kB / 0.5623 GB, free: 2.191 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.916e-05/0.3595, allocations: 4 kB / 0.5623 GB, free: 2.188 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.399e-05/0.3596, allocations: 13.72 kB / 0.5623 GB, free: 2.168 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001618/0.3597, allocations: 310.8 kB / 0.5626 GB, free: 1.855 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.463e-05/0.3598, allocations: 4 kB / 0.5626 GB, free: 1.852 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.241e-06/0.3598, allocations: 4 kB / 0.5626 GB, free: 1.848 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.865e-05/0.3598, allocations: 68.2 kB / 0.5627 GB, free: 1.766 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.807e-06/0.3598, allocations: 3.938 kB / 0.5627 GB, free: 1.762 MB / 398.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 8.716e-05/0.3599, allocations: 71.39 kB / 0.5627 GB, free: 1.68 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.553e-05/0.36, allocations: 29.7 kB / 0.5628 GB, free: 1.645 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.28e-06/0.36, allocations: 0 / 0.5628 GB, free: 1.645 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.077e-05/0.36, allocations: 4 kB / 0.5628 GB, free: 1.641 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.443e-05/0.36, allocations: 0 / 0.5628 GB, free: 1.641 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.959e-06/0.36, allocations: 4.094 kB / 0.5628 GB, free: 1.637 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.71e-05/0.36, allocations: 7.891 kB / 0.5628 GB, free: 1.629 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.646e-06/0.36, allocations: 3.984 kB / 0.5628 GB, free: 1.625 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.0001011/0.3601, allocations: 139.5 kB / 0.5629 GB, free: 1.473 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.11e-05/0.3602, allocations: 0 / 0.5629 GB, free: 1.473 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.03e-05/0.3602, allocations: 7.156 kB / 0.5629 GB, free: 1.461 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.92e-07/0.3602, allocations: 0 / 0.5629 GB, free: 1.461 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.667e-06/0.3602, allocations: 0 / 0.5629 GB, free: 1.461 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.354e-06/0.3602, allocations: 4 kB / 0.5629 GB, free: 1.457 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002675/0.3605, allocations: 279.3 kB / 0.5632 GB, free: 1.129 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.92e-07/0.3605, allocations: 0 / 0.5632 GB, free: 1.129 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.176e-06/0.3605, allocations: 0 / 0.5632 GB, free: 1.129 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.262e-06/0.3605, allocations: 4 kB / 0.5632 GB, free: 1.125 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.871e-06/0.3605, allocations: 0 / 0.5632 GB, free: 1.125 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.81e-07/0.3605, allocations: 0 / 0.5632 GB, free: 1.125 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.91e-07/0.3605, allocations: 0 / 0.5632 GB, free: 1.125 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001372/0.3606, allocations: 177.2 kB / 0.5634 GB, free: 0.9297 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.298e-06/0.3606, allocations: 0 / 0.5634 GB, free: 0.9297 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.667e-05/0.3606, allocations: 4 kB / 0.5634 GB, free: 0.9258 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.229e-05/0.3607, allocations: 4 kB / 0.5634 GB, free: 0.9219 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.5e-05/0.3607, allocations: 4 kB / 0.5634 GB, free: 0.918 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.705e-06/0.3607, allocations: 3.938 kB / 0.5634 GB, free: 0.9141 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.146e-05/0.3607, allocations: 75.28 kB / 0.5635 GB, free: 0.8398 MB / 398.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3607, allocations: 0 / 0.5635 GB, free: 0.8398 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004123/0.3611, allocations: 135.5 kB / 0.5636 GB, free: 0.707 MB / 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.001165/0.3623, allocations: 0.9113 MB / 0.5645 GB, free: 15.77 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001393/0.3624, allocations: 63.34 kB / 0.5645 GB, free: 15.69 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.3624, allocations: 0 / 0.5645 GB, free: 15.69 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 4.464e-05/0.3625, allocations: 59.39 kB / 0.5646 GB, free: 15.62 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000197/0.3627, allocations: 14.44 kB / 0.5646 GB, free: 15.61 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001112/0.3638, allocations: 1.203 MB / 0.5658 GB, free: 14.32 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003857/0.3642, allocations: 0.6729 MB / 0.5664 GB, free: 13.62 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 1.126e-05/0.3642, allocations: 4.062 kB / 0.5664 GB, free: 13.62 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.027e-05/0.3642, allocations: 7.438 kB / 0.5665 GB, free: 13.61 MB / 414.1 MB Notification: Performance of SimCode: time 3.21e-07/0.3642, allocations: 0 / 0.5665 GB, free: 13.61 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03274/0.397, allocations: 4.671 MB / 0.571 GB, free: 9.078 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.18/11.58, allocations: 3.984 kB / 0.571 GB, free: 9.074 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.51808141299989]