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.001753/0.001753, allocations: 105.1 kB / 21.22 MB, free: 0.5078 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.002304/0.002304, allocations: 214.9 kB / 24.51 MB, free: 3.688 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.417/1.417, allocations: 230.6 MB / 258.3 MB, free: 7.805 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.2192/0.2192, allocations: 46.96 MB / 361.7 MB, free: 4.145 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.Random.TestSpecial,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Math_Random_TestSpecial",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001948/0.001948, allocations: 63.91 kB / 0.4969 GB, free: 7.754 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3166/0.3185, allocations: 66.03 MB / 0.5613 GB, free: 4.262 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestSpecial): time 0.001815/0.3203, allocations: 0.5009 MB / 0.5618 GB, free: 3.758 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002906/0.3232, allocations: 1.926 MB / 0.5637 GB, free: 1.812 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.47e-05/0.3233, allocations: 0 / 0.5637 GB, free: 1.812 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.626e-05/0.3233, allocations: 0 / 0.5637 GB, free: 1.812 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.581e-06/0.3233, allocations: 0 / 0.5637 GB, free: 1.812 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.001451/0.3247, allocations: 0.5021 MB / 0.5642 GB, free: 1.312 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.506e-05/0.3248, allocations: 4 kB / 0.5642 GB, free: 1.309 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.673e-05/0.3248, allocations: 0 / 0.5642 GB, free: 1.309 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.609e-05/0.3248, allocations: 4 kB / 0.5642 GB, free: 1.305 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.815e-05/0.3249, allocations: 3.984 kB / 0.5642 GB, free: 1.301 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.965e-06/0.3249, allocations: 4 kB / 0.5642 GB, free: 1.297 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001072/0.3259, allocations: 0.7115 MB / 0.5649 GB, free: 0.5859 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 6.713e-06/0.3259, allocations: 0 / 0.5649 GB, free: 0.5859 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.093e-05/0.326, allocations: 8 kB / 0.5649 GB, free: 0.5781 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005572/0.3265, allocations: 387.1 kB / 0.5653 GB, free: 204 kB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.527e-06/0.3265, allocations: 0 / 0.5653 GB, free: 204 kB / 398.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.3265, allocations: 0 / 0.5653 GB, free: 204 kB / 398.1 MB Notification: Performance of Transformations before backend: time 5.09e-06/0.3265, allocations: 0 / 0.5653 GB, free: 204 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.0004194/0.3269, allocations: 335.4 kB / 0.5656 GB, free: 15.84 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.324e-05/0.327, allocations: 12.03 kB / 0.5656 GB, free: 15.82 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.242e-05/0.327, allocations: 4.188 kB / 0.5656 GB, free: 15.82 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.459e-05/0.327, allocations: 34.7 kB / 0.5657 GB, free: 15.78 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.287e-05/0.3271, allocations: 4.938 kB / 0.5657 GB, free: 15.77 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.845e-05/0.3271, allocations: 118.4 kB / 0.5658 GB, free: 15.63 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.631e-06/0.3272, allocations: 384 / 0.5658 GB, free: 15.63 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.548e-06/0.3272, allocations: 384 / 0.5658 GB, free: 15.63 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.864e-05/0.3273, allocations: 59.34 kB / 0.5658 GB, free: 15.56 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.364e-06/0.3273, allocations: 0 / 0.5658 GB, free: 15.56 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.837e-06/0.3273, allocations: 4 kB / 0.5658 GB, free: 15.56 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.59e-06/0.3273, allocations: 3.984 kB / 0.5658 GB, free: 15.55 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.219e-05/0.3273, allocations: 29.7 kB / 0.5659 GB, free: 15.52 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002283/0.3275, allocations: 204 kB / 0.5661 GB, free: 15.28 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.173e-05/0.3276, allocations: 56.25 kB / 0.5661 GB, free: 15.21 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.761e-05/0.3277, allocations: 38.61 kB / 0.5662 GB, free: 15.16 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.981e-06/0.3277, allocations: 0 / 0.5662 GB, free: 15.16 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.012e-05/0.3277, allocations: 56.27 kB / 0.5662 GB, free: 15.09 MB / 414.1 MB Notification: Performance of pre-optimization done (n=2): time 9.72e-07/0.3277, allocations: 0 / 0.5662 GB, free: 15.09 MB / 414.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002212/0.328, allocations: 130.7 kB / 0.5663 GB, free: 14.94 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.026e-05/0.328, allocations: 81.11 kB / 0.5664 GB, free: 14.84 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.155e-05/0.3281, allocations: 97.98 kB / 0.5665 GB, free: 14.73 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.603e-05/0.3281, allocations: 25.7 kB / 0.5665 GB, free: 14.7 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.105e-05/0.3281, allocations: 80.14 kB / 0.5666 GB, free: 14.62 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.312e-05/0.3281, allocations: 0 / 0.5666 GB, free: 14.62 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.007e-05/0.3281, allocations: 17.66 kB / 0.5666 GB, free: 14.6 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001512/0.3283, allocations: 314.8 kB / 0.5669 GB, free: 14.28 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.978e-05/0.3283, allocations: 33.69 kB / 0.567 GB, free: 14.24 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.065e-05/0.3283, allocations: 29.7 kB / 0.567 GB, free: 14.21 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.848e-05/0.3284, allocations: 68.2 kB / 0.567 GB, free: 14.12 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.322e-06/0.3284, allocations: 0 / 0.567 GB, free: 14.12 MB / 414.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001037/0.3285, allocations: 101.1 kB / 0.5671 GB, free: 14.01 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.098e-05/0.3285, allocations: 29.7 kB / 0.5672 GB, free: 13.97 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.256e-06/0.3285, allocations: 0 / 0.5672 GB, free: 13.97 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.407e-05/0.3286, allocations: 0 / 0.5672 GB, free: 13.97 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.318e-05/0.3286, allocations: 0 / 0.5672 GB, free: 13.97 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.948e-06/0.3286, allocations: 0 / 0.5672 GB, free: 13.97 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.057e-05/0.3286, allocations: 15.95 kB / 0.5672 GB, free: 13.96 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.65e-06/0.3286, allocations: 0 / 0.5672 GB, free: 13.96 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.0001002/0.3287, allocations: 143.5 kB / 0.5673 GB, free: 13.8 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.17e-05/0.3287, allocations: 0 / 0.5673 GB, free: 13.8 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.562e-05/0.3287, allocations: 7.188 kB / 0.5673 GB, free: 13.79 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.142e-06/0.3287, allocations: 0 / 0.5673 GB, free: 13.79 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.066e-06/0.3287, allocations: 0 / 0.5673 GB, free: 13.79 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.304e-06/0.3287, allocations: 0 / 0.5673 GB, free: 13.79 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002707/0.329, allocations: 301 kB / 0.5676 GB, free: 13.43 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.31e-07/0.329, allocations: 0 / 0.5676 GB, free: 13.43 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.7e-06/0.329, allocations: 4 kB / 0.5676 GB, free: 13.43 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.273e-06/0.329, allocations: 0 / 0.5676 GB, free: 13.43 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.741e-06/0.329, allocations: 0 / 0.5676 GB, free: 13.43 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.12e-07/0.329, allocations: 0 / 0.5676 GB, free: 13.43 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.906e-06/0.329, allocations: 3.984 kB / 0.5676 GB, free: 13.43 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001624/0.3292, allocations: 198.9 kB / 0.5678 GB, free: 13.2 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.031e-06/0.3292, allocations: 3.984 kB / 0.5678 GB, free: 13.2 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.326e-05/0.3292, allocations: 4 kB / 0.5678 GB, free: 13.2 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.277e-05/0.3293, allocations: 0 / 0.5678 GB, free: 13.2 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.66e-05/0.3293, allocations: 4 kB / 0.5678 GB, free: 13.19 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.815e-06/0.3293, allocations: 0 / 0.5678 GB, free: 13.19 MB / 414.1 MB Notification: Performance of sorting global known variables: time 4.058e-05/0.3293, allocations: 79.22 kB / 0.5679 GB, free: 13.11 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3293, allocations: 4 kB / 0.5679 GB, free: 13.11 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.000422/0.3297, allocations: 127.6 kB / 0.568 GB, free: 12.98 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.001133/0.3309, allocations: 0.9753 MB / 0.569 GB, free: 11.97 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001432/0.331, allocations: 110.8 kB / 0.5691 GB, free: 11.84 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.331, allocations: 4.094 kB / 0.5691 GB, free: 11.83 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 5.934e-05/0.3311, allocations: 93.03 kB / 0.5692 GB, free: 11.72 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001857/0.3313, allocations: 2.188 kB / 0.5692 GB, free: 11.72 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001126/0.3324, allocations: 1.34 MB / 0.5705 GB, free: 10.27 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.755e-05/0.3324, allocations: 59.34 kB / 0.5705 GB, free: 10.19 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 9.648e-06/0.3324, allocations: 0 / 0.5705 GB, free: 10.19 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.766e-05/0.3325, allocations: 11.44 kB / 0.5706 GB, free: 10.18 MB / 414.1 MB Notification: Performance of SimCode: time 2.6e-07/0.3325, allocations: 0 / 0.5706 GB, free: 10.18 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02449/0.357, allocations: 4.773 MB / 0.5752 GB, free: 5.551 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.03/11.39, allocations: 7.656 kB / 0.5752 GB, free: 5.547 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.219041388947517]