Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.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.001715/0.001715, allocations: 107.1 kB / 20.44 MB, free: 1.344 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.002172/0.002172, allocations: 211.6 kB / 23.73 MB, free: 4.523 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.506/1.506, allocations: 230.6 MB / 257.5 MB, free: 7.77 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2262/0.2262, allocations: 46.96 MB / 360.9 MB, free: 4.031 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.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_1_0_ModelicaTest_Math_Random_TestSpecial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.Random.TestSpecial,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Math_Random_TestSpecial",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001932/0.001932, allocations: 63.89 kB / 0.4961 GB, free: 7.723 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3237/0.3256, allocations: 66.03 MB / 0.5606 GB, free: 4.234 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestSpecial): time 0.001611/0.3273, allocations: 0.5038 MB / 0.5611 GB, free: 3.73 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002888/0.3301, allocations: 1.926 MB / 0.563 GB, free: 1.785 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.668e-05/0.3302, allocations: 4 kB / 0.563 GB, free: 1.781 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.115e-05/0.3302, allocations: 0 / 0.563 GB, free: 1.781 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.71e-06/0.3302, allocations: 0 / 0.563 GB, free: 1.781 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.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.001429/0.3316, allocations: 0.5064 MB / 0.5635 GB, free: 1.277 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.054e-05/0.3316, allocations: 0 / 0.5635 GB, free: 1.277 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.296e-05/0.3317, allocations: 0 / 0.5635 GB, free: 1.277 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.169e-05/0.3317, allocations: 4 kB / 0.5635 GB, free: 1.273 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.699e-05/0.3317, allocations: 0 / 0.5635 GB, free: 1.273 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.031e-06/0.3317, allocations: 0 / 0.5635 GB, free: 1.273 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001029/0.3328, allocations: 0.7192 MB / 0.5642 GB, free: 0.5547 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.414e-06/0.3328, allocations: 0 / 0.5642 GB, free: 0.5547 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.13e-05/0.3328, allocations: 7.984 kB / 0.5642 GB, free: 0.5469 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005366/0.3333, allocations: 383.1 kB / 0.5645 GB, free: 176 kB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.869e-06/0.3333, allocations: 0 / 0.5645 GB, free: 176 kB / 398.1 MB Notification: Performance of FrontEnd: time 2.335e-06/0.3333, allocations: 0 / 0.5645 GB, free: 176 kB / 398.1 MB Notification: Performance of Transformations before backend: time 5.591e-06/0.3333, allocations: 4 kB / 0.5645 GB, free: 172 kB / 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.0005019/0.3338, allocations: 339.4 kB / 0.5649 GB, free: 15.8 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.448e-05/0.3339, allocations: 8.031 kB / 0.5649 GB, free: 15.79 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.851e-05/0.3339, allocations: 34.7 kB / 0.5649 GB, free: 15.75 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.645e-05/0.334, allocations: 4.938 kB / 0.5649 GB, free: 15.75 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.27e-05/0.3341, allocations: 110.4 kB / 0.565 GB, free: 15.61 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.245e-05/0.3341, allocations: 384 / 0.565 GB, free: 15.61 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.424e-06/0.3341, allocations: 384 / 0.565 GB, free: 15.61 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001137/0.3342, allocations: 63.52 kB / 0.5651 GB, free: 15.54 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.487e-06/0.3342, allocations: 4 kB / 0.5651 GB, free: 15.54 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.492e-06/0.3342, allocations: 4 kB / 0.5651 GB, free: 15.53 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.426e-06/0.3342, allocations: 0 / 0.5651 GB, free: 15.53 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.022e-05/0.3342, allocations: 29.7 kB / 0.5651 GB, free: 15.5 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000248/0.3345, allocations: 203.9 kB / 0.5653 GB, free: 15.25 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.282e-05/0.3346, allocations: 52.31 kB / 0.5654 GB, free: 15.19 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.032e-05/0.3346, allocations: 38.61 kB / 0.5654 GB, free: 15.14 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.152e-05/0.3346, allocations: 0 / 0.5654 GB, free: 15.14 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.192e-05/0.3347, allocations: 60.27 kB / 0.5654 GB, free: 15.07 MB / 414.1 MB Notification: Performance of pre-optimization done (n=2): time 1.002e-06/0.3347, allocations: 0 / 0.5654 GB, free: 15.07 MB / 414.1 MB Notification: Performance of matching and sorting (n=2): time 0.000242/0.3349, allocations: 134.7 kB / 0.5656 GB, free: 14.91 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.599e-05/0.335, allocations: 77.11 kB / 0.5656 GB, free: 14.82 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.357e-05/0.335, allocations: 93.8 kB / 0.5657 GB, free: 14.71 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.434e-05/0.335, allocations: 25.7 kB / 0.5658 GB, free: 14.68 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.626e-05/0.3351, allocations: 80.14 kB / 0.5658 GB, free: 14.6 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.214e-05/0.3351, allocations: 3.984 kB / 0.5658 GB, free: 14.6 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.835e-05/0.3351, allocations: 17.72 kB / 0.5659 GB, free: 14.57 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001363/0.3353, allocations: 318.8 kB / 0.5662 GB, free: 14.25 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.572e-05/0.3353, allocations: 25.7 kB / 0.5662 GB, free: 14.22 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.451e-05/0.3353, allocations: 37.69 kB / 0.5662 GB, free: 14.18 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.542e-05/0.3354, allocations: 68.45 kB / 0.5663 GB, free: 14.1 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.277e-06/0.3354, allocations: 3.938 kB / 0.5663 GB, free: 14.09 MB / 414.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001014/0.3355, allocations: 105 kB / 0.5664 GB, free: 13.97 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.041e-05/0.3355, allocations: 29.7 kB / 0.5664 GB, free: 13.94 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.787e-06/0.3355, allocations: 0 / 0.5664 GB, free: 13.94 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.212e-05/0.3355, allocations: 0 / 0.5664 GB, free: 13.94 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.286e-05/0.3355, allocations: 0 / 0.5664 GB, free: 13.94 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.883e-06/0.3355, allocations: 4 kB / 0.5664 GB, free: 13.93 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.625e-05/0.3355, allocations: 3.953 kB / 0.5664 GB, free: 13.93 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.24e-06/0.3355, allocations: 0 / 0.5664 GB, free: 13.93 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 9.744e-05/0.3356, allocations: 143.5 kB / 0.5666 GB, free: 13.77 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.159e-05/0.3357, allocations: 0 / 0.5666 GB, free: 13.77 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.816e-05/0.3357, allocations: 7.141 kB / 0.5666 GB, free: 13.76 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.182e-06/0.3357, allocations: 0 / 0.5666 GB, free: 13.76 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.547e-06/0.3357, allocations: 0 / 0.5666 GB, free: 13.76 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.274e-06/0.3357, allocations: 0 / 0.5666 GB, free: 13.76 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002661/0.336, allocations: 301 kB / 0.5669 GB, free: 13.41 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.152e-06/0.336, allocations: 0 / 0.5669 GB, free: 13.41 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.647e-06/0.336, allocations: 4 kB / 0.5669 GB, free: 13.4 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.383e-06/0.336, allocations: 0 / 0.5669 GB, free: 13.4 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.911e-06/0.336, allocations: 4.031 kB / 0.5669 GB, free: 13.4 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.012e-06/0.336, allocations: 0 / 0.5669 GB, free: 13.4 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.01e-07/0.336, allocations: 0 / 0.5669 GB, free: 13.4 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000146/0.3361, allocations: 194.9 kB / 0.5671 GB, free: 13.18 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.148e-06/0.3361, allocations: 4 kB / 0.5671 GB, free: 13.18 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.569e-05/0.3361, allocations: 7.984 kB / 0.5671 GB, free: 13.17 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.793e-05/0.3362, allocations: 0 / 0.5671 GB, free: 13.17 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.282e-05/0.3362, allocations: 0 / 0.5671 GB, free: 13.17 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.625e-06/0.3362, allocations: 0 / 0.5671 GB, free: 13.17 MB / 414.1 MB Notification: Performance of sorting global known variables: time 3.904e-05/0.3362, allocations: 79.28 kB / 0.5671 GB, free: 13.09 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3362, allocations: 0 / 0.5671 GB, free: 13.09 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0004172/0.3367, allocations: 143.5 kB / 0.5673 GB, free: 12.95 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.00115/0.3378, allocations: 0.9752 MB / 0.5682 GB, free: 11.93 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001441/0.3379, allocations: 118.8 kB / 0.5683 GB, free: 11.79 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.338, allocations: 0 / 0.5683 GB, free: 11.79 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 6.044e-05/0.338, allocations: 89.03 kB / 0.5684 GB, free: 11.69 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001924/0.3382, allocations: 4 kB / 0.5684 GB, free: 11.68 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001062/0.3393, allocations: 1.332 MB / 0.5697 GB, free: 10.23 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.084e-05/0.3393, allocations: 59.34 kB / 0.5698 GB, free: 10.16 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 9.548e-06/0.3393, allocations: 0 / 0.5698 GB, free: 10.16 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.194e-05/0.3393, allocations: 15.62 kB / 0.5698 GB, free: 10.14 MB / 414.1 MB Notification: Performance of SimCode: time 2.61e-07/0.3393, allocations: 0 / 0.5698 GB, free: 10.14 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03113/0.3705, allocations: 5.117 MB / 0.5748 GB, free: 5.16 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.92/11.29, allocations: 0 / 0.5748 GB, free: 5.16 MB / 414.1 MB " [Timeout remaining time 649] (rm -f ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestSpecial.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestSpecial.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestSpecial.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestSpecial.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.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_1_0_ModelicaTest_Math_Random_TestSpecial.fmu > ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestSpecial.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestSpecial_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Math/Random/TestSpecial/TestSpecial.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.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.274621079995995]