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.001878/0.001878, allocations: 111.1 kB / 20.44 MB, free: 1.199 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.001486/0.001486, allocations: 208.2 kB / 23.72 MB, free: 4.41 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.508/1.508, allocations: 230.6 MB / 257.5 MB, free: 7.812 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.2677/0.2677, allocations: 46.97 MB / 360.9 MB, free: 4.059 MB / 286.1 MB " [Timeout remaining time 179] 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.002086/0.002086, allocations: 67.89 kB / 0.4961 GB, free: 7.758 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3994/0.4015, allocations: 66.04 MB / 0.5606 GB, free: 4.25 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestSpecial): time 0.001907/0.4034, allocations: 0.4893 MB / 0.5611 GB, free: 3.758 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003227/0.4066, allocations: 1.937 MB / 0.563 GB, free: 1.801 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.642e-05/0.4067, allocations: 4 kB / 0.563 GB, free: 1.797 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.24e-05/0.4067, allocations: 0 / 0.563 GB, free: 1.797 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 7.214e-06/0.4067, allocations: 0 / 0.563 GB, free: 1.797 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.001547/0.4082, allocations: 0.4984 MB / 0.5634 GB, free: 1.301 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.05e-05/0.4083, allocations: 0 / 0.5634 GB, free: 1.301 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.878e-05/0.4083, allocations: 3.984 kB / 0.5635 GB, free: 1.297 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.963e-05/0.4083, allocations: 7.984 kB / 0.5635 GB, free: 1.289 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.891e-05/0.4084, allocations: 0 / 0.5635 GB, free: 1.289 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.354e-06/0.4084, allocations: 0 / 0.5635 GB, free: 1.289 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001172/0.4095, allocations: 0.6724 MB / 0.5641 GB, free: 0.6172 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.156e-05/0.4096, allocations: 0 / 0.5641 GB, free: 0.6172 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.367e-05/0.4096, allocations: 3.938 kB / 0.5641 GB, free: 0.6133 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005821/0.4102, allocations: 387.1 kB / 0.5645 GB, free: 240 kB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.997e-06/0.4102, allocations: 0 / 0.5645 GB, free: 240 kB / 398.1 MB Notification: Performance of FrontEnd: time 2.074e-06/0.4102, allocations: 4 kB / 0.5645 GB, free: 236 kB / 398.1 MB Notification: Performance of Transformations before backend: time 5.37e-06/0.4102, allocations: 0 / 0.5645 GB, free: 236 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.0004547/0.4106, allocations: 339.4 kB / 0.5648 GB, free: 15.86 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.099e-05/0.4107, allocations: 8.031 kB / 0.5648 GB, free: 15.86 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.89e-05/0.4107, allocations: 34.7 kB / 0.5649 GB, free: 15.81 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.61e-05/0.4108, allocations: 4.938 kB / 0.5649 GB, free: 15.81 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.158e-05/0.4108, allocations: 106.5 kB / 0.565 GB, free: 15.68 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.098e-05/0.4108, allocations: 384 / 0.565 GB, free: 15.68 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.656e-05/0.4109, allocations: 12.31 kB / 0.565 GB, free: 15.67 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001221/0.411, allocations: 63.52 kB / 0.565 GB, free: 15.59 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.958e-06/0.411, allocations: 4 kB / 0.565 GB, free: 15.59 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.783e-06/0.411, allocations: 0 / 0.565 GB, free: 15.59 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.319e-06/0.411, allocations: 0 / 0.565 GB, free: 15.59 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.676e-05/0.411, allocations: 25.7 kB / 0.5651 GB, free: 15.56 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002465/0.4113, allocations: 208 kB / 0.5653 GB, free: 15.31 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.658e-05/0.4114, allocations: 48.22 kB / 0.5653 GB, free: 15.25 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.876e-05/0.4114, allocations: 38.62 kB / 0.5653 GB, free: 15.2 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.167e-06/0.4114, allocations: 0 / 0.5653 GB, free: 15.2 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.117e-05/0.4115, allocations: 60.25 kB / 0.5654 GB, free: 15.13 MB / 414.1 MB Notification: Performance of pre-optimization done (n=2): time 9.71e-07/0.4115, allocations: 0 / 0.5654 GB, free: 15.13 MB / 414.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002384/0.4117, allocations: 126.8 kB / 0.5655 GB, free: 14.98 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.065e-05/0.4118, allocations: 81.09 kB / 0.5656 GB, free: 14.88 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.584e-05/0.4118, allocations: 93.8 kB / 0.5657 GB, free: 14.78 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.53e-05/0.4118, allocations: 29.64 kB / 0.5657 GB, free: 14.75 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.46e-05/0.4119, allocations: 80.14 kB / 0.5658 GB, free: 14.66 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.608e-05/0.4119, allocations: 8 kB / 0.5658 GB, free: 14.66 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.829e-05/0.4119, allocations: 9.719 kB / 0.5658 GB, free: 14.64 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001499/0.4121, allocations: 314.8 kB / 0.5661 GB, free: 14.32 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.623e-05/0.4121, allocations: 25.7 kB / 0.5661 GB, free: 14.29 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.641e-05/0.4121, allocations: 37.81 kB / 0.5662 GB, free: 14.25 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.618e-05/0.4122, allocations: 64.33 kB / 0.5662 GB, free: 14.17 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.707e-06/0.4122, allocations: 7.875 kB / 0.5662 GB, free: 14.16 MB / 414.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.000102/0.4123, allocations: 93.11 kB / 0.5663 GB, free: 14.05 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.935e-05/0.4123, allocations: 33.69 kB / 0.5664 GB, free: 14.02 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.759e-06/0.4123, allocations: 0 / 0.5664 GB, free: 14.02 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.464e-05/0.4123, allocations: 0 / 0.5664 GB, free: 14.02 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.862e-05/0.4124, allocations: 3.938 kB / 0.5664 GB, free: 14.01 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.841e-06/0.4124, allocations: 4 kB / 0.5664 GB, free: 14.01 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.19e-05/0.4124, allocations: 3.953 kB / 0.5664 GB, free: 14 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.752e-06/0.4124, allocations: 4.031 kB / 0.5664 GB, free: 14 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.0001224/0.4125, allocations: 143.5 kB / 0.5665 GB, free: 13.84 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.095e-05/0.4125, allocations: 0 / 0.5665 GB, free: 13.84 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.164e-05/0.4126, allocations: 3.156 kB / 0.5665 GB, free: 13.84 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.747e-06/0.4126, allocations: 3.984 kB / 0.5665 GB, free: 13.83 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.424e-06/0.4126, allocations: 4 kB / 0.5665 GB, free: 13.83 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.789e-06/0.4126, allocations: 4 kB / 0.5665 GB, free: 13.82 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003059/0.4129, allocations: 293.1 kB / 0.5668 GB, free: 13.48 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.747e-06/0.4129, allocations: 4 kB / 0.5668 GB, free: 13.47 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.408e-06/0.4129, allocations: 0 / 0.5668 GB, free: 13.47 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.873e-06/0.4129, allocations: 4.031 kB / 0.5668 GB, free: 13.47 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.087e-06/0.4129, allocations: 7.922 kB / 0.5668 GB, free: 13.46 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.323e-06/0.4129, allocations: 0 / 0.5668 GB, free: 13.46 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.91e-07/0.4129, allocations: 0 / 0.5668 GB, free: 13.46 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001687/0.4131, allocations: 198.9 kB / 0.567 GB, free: 13.24 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.15e-06/0.4131, allocations: 0 / 0.567 GB, free: 13.24 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.486e-05/0.4131, allocations: 4 kB / 0.567 GB, free: 13.23 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.334e-05/0.4131, allocations: 3.984 kB / 0.567 GB, free: 13.23 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.152e-05/0.4132, allocations: 0 / 0.567 GB, free: 13.23 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.775e-06/0.4132, allocations: 0 / 0.567 GB, free: 13.23 MB / 414.1 MB Notification: Performance of sorting global known variables: time 4.192e-05/0.4132, allocations: 83.31 kB / 0.5671 GB, free: 13.15 MB / 414.1 MB Notification: Performance of sort global known variables: time 6e-08/0.4132, allocations: 0 / 0.5671 GB, free: 13.15 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0005122/0.4137, allocations: 139.5 kB / 0.5672 GB, free: 13.01 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.001259/0.415, allocations: 0.9602 MB / 0.5682 GB, free: 12.01 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001801/0.4152, allocations: 118.8 kB / 0.5683 GB, free: 11.87 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.845e-06/0.4152, allocations: 0 / 0.5683 GB, free: 11.87 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 6.314e-05/0.4152, allocations: 85.09 kB / 0.5684 GB, free: 11.77 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002044/0.4154, allocations: 7.984 kB / 0.5684 GB, free: 11.76 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001234/0.4167, allocations: 1.329 MB / 0.5697 GB, free: 10.32 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.788e-05/0.4167, allocations: 59.53 kB / 0.5697 GB, free: 10.24 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 1.228e-05/0.4167, allocations: 4 kB / 0.5697 GB, free: 10.23 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.345e-05/0.4168, allocations: 11.44 kB / 0.5697 GB, free: 10.22 MB / 414.1 MB Notification: Performance of SimCode: time 4.61e-07/0.4168, allocations: 7.875 kB / 0.5698 GB, free: 10.21 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0333/0.4501, allocations: 5.095 MB / 0.5747 GB, free: 5.254 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.32/11.77, allocations: 8 kB / 0.5747 GB, free: 5.246 MB / 414.1 MB " [Timeout remaining time 648] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestSpecial_res.mat --tempDir=temp_ModelicaTest_4_1_0_ModelicaTest_Math_Random_TestSpecial_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 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.mat","/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.817359870765358]