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.001309/0.001309, allocations: 112.2 kB / 21.22 MB, free: 0.75 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.001497/0.001497, allocations: 206.1 kB / 24.52 MB, free: 4.156 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.48/1.48, allocations: 230.6 MB / 258.3 MB, free: 8.035 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.2329/0.2329, allocations: 44.91 MB / 359.6 MB, free: 6.312 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.Random.TestSpecial,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Math_Random_TestSpecial",fmuType="cs",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.002054/0.002054, allocations: 63.91 kB / 0.4938 GB, free: 10.75 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.38/0.3821, allocations: 65.47 MB / 0.5578 GB, free: 7.559 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestSpecial): time 0.001805/0.3839, allocations: 0.5036 MB / 0.5583 GB, free: 7.176 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003355/0.3872, allocations: 2.061 MB / 0.5603 GB, free: 5.215 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.634e-05/0.3873, allocations: 0 / 0.5603 GB, free: 5.215 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.909e-05/0.3873, allocations: 0 / 0.5603 GB, free: 5.215 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.131e-06/0.3873, allocations: 0 / 0.5603 GB, free: 5.215 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.00156/0.3888, allocations: 0.4986 MB / 0.5608 GB, free: 4.719 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.738e-05/0.3889, allocations: 7.984 kB / 0.5608 GB, free: 4.711 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.999e-05/0.3889, allocations: 0 / 0.5608 GB, free: 4.711 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.446e-05/0.389, allocations: 0 / 0.5608 GB, free: 4.711 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.235e-05/0.389, allocations: 7.938 kB / 0.5608 GB, free: 4.703 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.412e-06/0.389, allocations: 0 / 0.5608 GB, free: 4.703 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001156/0.3901, allocations: 0.7388 MB / 0.5615 GB, free: 3.965 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.864e-06/0.3902, allocations: 0 / 0.5615 GB, free: 3.965 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.057e-05/0.3902, allocations: 7.922 kB / 0.5615 GB, free: 3.957 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005673/0.3907, allocations: 383.1 kB / 0.5619 GB, free: 3.582 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.371e-06/0.3908, allocations: 4 kB / 0.5619 GB, free: 3.578 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.382e-06/0.3908, allocations: 4 kB / 0.5619 GB, free: 3.574 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.047e-05/0.3908, allocations: 0 / 0.5619 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.0004799/0.3912, allocations: 339.4 kB / 0.5622 GB, free: 3.207 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.24e-05/0.3913, allocations: 12.03 kB / 0.5622 GB, free: 3.195 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.854e-05/0.3913, allocations: 4.188 kB / 0.5622 GB, free: 3.191 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.714e-05/0.3914, allocations: 38.7 kB / 0.5623 GB, free: 3.145 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.663e-05/0.3914, allocations: 0.9375 kB / 0.5623 GB, free: 3.145 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.559e-05/0.3915, allocations: 106.5 kB / 0.5624 GB, free: 3.016 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.012e-05/0.3915, allocations: 4.375 kB / 0.5624 GB, free: 3.012 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.136e-05/0.3915, allocations: 4.375 kB / 0.5624 GB, free: 3.008 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001196/0.3916, allocations: 41.56 kB / 0.5624 GB, free: 2.961 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.616e-06/0.3916, allocations: 0 / 0.5624 GB, free: 2.961 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.985e-06/0.3916, allocations: 0 / 0.5624 GB, free: 2.961 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.528e-06/0.3916, allocations: 0 / 0.5624 GB, free: 2.961 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.302e-05/0.3917, allocations: 4 kB / 0.5624 GB, free: 2.957 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002495/0.3919, allocations: 200 kB / 0.5626 GB, free: 2.719 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.56e-05/0.392, allocations: 34.5 kB / 0.5626 GB, free: 2.676 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.43e-05/0.392, allocations: 8.922 kB / 0.5627 GB, free: 2.664 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.156e-06/0.392, allocations: 0 / 0.5627 GB, free: 2.664 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.926e-05/0.3921, allocations: 56.27 kB / 0.5627 GB, free: 2.594 MB / 398.1 MB Notification: Performance of pre-optimization done (n=2): time 8.52e-07/0.3921, allocations: 0 / 0.5627 GB, free: 2.594 MB / 398.1 MB Notification: Performance of matching and sorting (n=2): time 0.0001989/0.3923, allocations: 71.39 kB / 0.5628 GB, free: 2.512 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.58e-05/0.3923, allocations: 77.23 kB / 0.5629 GB, free: 2.418 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.433e-05/0.3924, allocations: 93.86 kB / 0.5629 GB, free: 2.316 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.633e-05/0.3924, allocations: 33.64 kB / 0.563 GB, free: 2.277 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.481e-05/0.3924, allocations: 80.14 kB / 0.5631 GB, free: 2.195 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.584e-05/0.3925, allocations: 7.984 kB / 0.5631 GB, free: 2.188 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.937e-05/0.3925, allocations: 13.72 kB / 0.5631 GB, free: 2.168 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001491/0.3926, allocations: 314.8 kB / 0.5634 GB, free: 1.852 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.224e-05/0.3927, allocations: 3.938 kB / 0.5634 GB, free: 1.848 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.727e-06/0.3927, allocations: 4 kB / 0.5634 GB, free: 1.844 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.264e-05/0.3927, allocations: 72.27 kB / 0.5634 GB, free: 1.758 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.453e-06/0.3927, allocations: 0 / 0.5634 GB, free: 1.758 MB / 398.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 8.329e-05/0.3928, allocations: 71.39 kB / 0.5635 GB, free: 1.676 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.819e-05/0.3928, allocations: 29.7 kB / 0.5635 GB, free: 1.641 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.208e-06/0.3929, allocations: 0 / 0.5635 GB, free: 1.641 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.392e-05/0.3929, allocations: 0 / 0.5635 GB, free: 1.641 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.489e-05/0.3929, allocations: 0 / 0.5635 GB, free: 1.641 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.571e-06/0.3929, allocations: 0 / 0.5635 GB, free: 1.641 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.796e-05/0.3929, allocations: 11.89 kB / 0.5636 GB, free: 1.629 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.711e-06/0.3929, allocations: 7.969 kB / 0.5636 GB, free: 1.621 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 9.738e-05/0.393, allocations: 139.5 kB / 0.5637 GB, free: 1.469 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.334e-05/0.393, allocations: 3.984 kB / 0.5637 GB, free: 1.465 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.296e-05/0.3931, allocations: 7.156 kB / 0.5637 GB, free: 1.453 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.052e-06/0.3931, allocations: 0 / 0.5637 GB, free: 1.453 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.068e-06/0.3931, allocations: 0 / 0.5637 GB, free: 1.453 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.677e-06/0.3931, allocations: 3.984 kB / 0.5637 GB, free: 1.449 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002604/0.3933, allocations: 267.4 kB / 0.564 GB, free: 1.133 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.143e-06/0.3933, allocations: 4.031 kB / 0.564 GB, free: 1.129 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.376e-06/0.3933, allocations: 0 / 0.564 GB, free: 1.129 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.352e-06/0.3933, allocations: 0 / 0.564 GB, free: 1.129 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.015e-05/0.3933, allocations: 8 kB / 0.564 GB, free: 1.121 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.12e-07/0.3933, allocations: 0 / 0.564 GB, free: 1.121 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.198e-06/0.3933, allocations: 3.984 kB / 0.564 GB, free: 1.117 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001332/0.3935, allocations: 165.1 kB / 0.5641 GB, free: 0.9336 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.766e-06/0.3935, allocations: 7.984 kB / 0.5641 GB, free: 0.9258 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.362e-05/0.3935, allocations: 8.031 kB / 0.5642 GB, free: 0.918 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.885e-05/0.3935, allocations: 0 / 0.5642 GB, free: 0.918 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.706e-05/0.3936, allocations: 0 / 0.5642 GB, free: 0.918 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.09e-06/0.3936, allocations: 4 kB / 0.5642 GB, free: 0.9141 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.508e-05/0.3936, allocations: 83.16 kB / 0.5642 GB, free: 0.832 MB / 398.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3936, allocations: 0 / 0.5642 GB, free: 0.832 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004336/0.394, allocations: 131.6 kB / 0.5644 GB, free: 0.7031 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.001146/0.3952, allocations: 0.9088 MB / 0.5652 GB, free: 15.77 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001153/0.3953, allocations: 67.39 kB / 0.5653 GB, free: 15.69 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.3953, allocations: 0 / 0.5653 GB, free: 15.69 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 4.122e-05/0.3953, allocations: 55.41 kB / 0.5654 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.0002022/0.3955, allocations: 11.94 kB / 0.5654 GB, free: 15.61 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001097/0.3966, allocations: 1.203 MB / 0.5666 GB, free: 14.32 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003107/0.3969, allocations: 0.6768 MB / 0.5672 GB, free: 13.62 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 1.096e-05/0.397, allocations: 0 / 0.5672 GB, free: 13.62 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.1e-05/0.397, allocations: 11.5 kB / 0.5672 GB, free: 13.61 MB / 414.1 MB Notification: Performance of SimCode: time 3e-07/0.397, allocations: 4 kB / 0.5672 GB, free: 13.61 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.025/0.422, allocations: 4.691 MB / 0.5718 GB, free: 9.059 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.03/11.46, allocations: 3.984 kB / 0.5718 GB, free: 9.055 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestSpecial_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Math_Random_TestSpecial_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 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.mat","/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.463066088035703]