Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Math.Random.TestSpecial.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009065/0.0009065, allocations: 76.36 kB / 20.67 MB, free: 3.895 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.000845/0.000845, allocations: 156.9 kB / 23.95 MB, free: 0.6133 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.8773/0.8773, allocations: 177 MB / 204.1 MB, free: 5.73 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2416/0.2416, allocations: 34.24 MB / 294.8 MB, free: 0.6758 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Math.Random.TestSpecial,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Math_Random_TestSpecial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.Random.TestSpecial,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Math_Random_TestSpecial",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.633e-06/1.633e-06, allocations: 3.938 kB / 442.2 MB, free: 1.555 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.125e-05/2.288e-05, allocations: 5.094 kB / 442.2 MB, free: 1.551 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestSpecial): time 0.001256/0.001279, allocations: 0.4934 MB / 442.7 MB, free: 1.059 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.2007/0.202, allocations: 1.934 MB / 444.6 MB, free: 43.12 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.256e-05/0.202, allocations: 0 / 444.6 MB, free: 43.12 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 1.993e-05/0.2021, allocations: 0 / 444.6 MB, free: 43.12 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 6.552e-06/0.2021, allocations: 0 / 444.6 MB, free: 43.12 MB / 410.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/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.001061/0.2031, allocations: 0.5007 MB / 445.1 MB, free: 43.02 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 5.379e-05/0.2032, allocations: 4.312 kB / 445.1 MB, free: 43.02 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.432e-05/0.2032, allocations: 5.906 kB / 445.1 MB, free: 43.02 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.1e-05/0.2033, allocations: 0 / 445.1 MB, free: 43.02 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.522e-05/0.2033, allocations: 3 kB / 445.1 MB, free: 43.02 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 9.158e-06/0.2033, allocations: 0 / 445.1 MB, free: 43.02 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006014/0.2039, allocations: 0.6727 MB / 445.8 MB, free: 42.95 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 7.624e-06/0.2039, allocations: 0 / 445.8 MB, free: 42.95 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 2.015e-05/0.2039, allocations: 0 / 445.8 MB, free: 42.95 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003715/0.2043, allocations: 482.4 kB / 446.2 MB, free: 42.89 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.2043, allocations: 4.688 kB / 446.2 MB, free: 42.89 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.924e-06/0.2043, allocations: 0 / 446.2 MB, free: 42.89 MB / 410.7 MB Notification: Performance of Transformations before backend: time 5.059e-06/0.2043, allocations: 0 / 446.2 MB, free: 42.89 MB / 410.7 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.0003056/0.2046, allocations: 346 kB / 446.6 MB, free: 42.56 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.802e-05/0.2047, allocations: 12.69 kB / 446.6 MB, free: 42.55 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.436e-05/0.2047, allocations: 37.08 kB / 446.6 MB, free: 42.52 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.899e-05/0.2048, allocations: 0.9375 kB / 446.6 MB, free: 42.52 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 4.026e-05/0.2048, allocations: 105.1 kB / 446.7 MB, free: 42.39 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.13e-05/0.2048, allocations: 6.625 kB / 446.7 MB, free: 42.39 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.755e-06/0.2048, allocations: 384 / 446.7 MB, free: 42.39 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.215e-05/0.2049, allocations: 58.53 kB / 446.8 MB, free: 42.33 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.414e-06/0.2049, allocations: 192 / 446.8 MB, free: 42.33 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.257e-06/0.2049, allocations: 7.062 kB / 446.8 MB, free: 42.32 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.35e-06/0.2049, allocations: 4 kB / 446.8 MB, free: 42.32 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.561e-05/0.205, allocations: 28.77 kB / 446.8 MB, free: 42.29 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001644/0.2051, allocations: 202.1 kB / 447 MB, free: 42.06 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.964e-05/0.2052, allocations: 49.8 kB / 447.1 MB, free: 42 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.199e-05/0.2052, allocations: 36.56 kB / 447.1 MB, free: 41.96 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.005e-05/0.2052, allocations: 3.938 kB / 447.1 MB, free: 41.96 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.625e-05/0.2052, allocations: 59.14 kB / 447.2 MB, free: 41.89 MB / 410.7 MB Notification: Performance of pre-optimization done (n=2): time 8.72e-07/0.2052, allocations: 3.938 kB / 447.2 MB, free: 41.89 MB / 410.7 MB Notification: Performance of matching and sorting (n=2): time 0.0001785/0.2054, allocations: 130.9 kB / 447.3 MB, free: 41.75 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.535e-05/0.2054, allocations: 83.83 kB / 447.4 MB, free: 41.66 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.282e-05/0.2054, allocations: 89.86 kB / 447.5 MB, free: 41.56 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 5.27e-06/0.2054, allocations: 25.7 kB / 447.5 MB, free: 41.53 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.725e-06/0.2055, allocations: 83.38 kB / 447.6 MB, free: 41.45 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.241e-05/0.2055, allocations: 4.25 kB / 447.6 MB, free: 41.45 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.372e-05/0.2055, allocations: 16.5 kB / 447.6 MB, free: 41.43 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 3.503e-05/0.2055, allocations: 310.8 kB / 447.9 MB, free: 41.12 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.451e-05/0.2056, allocations: 28.52 kB / 447.9 MB, free: 41.09 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.082e-05/0.2056, allocations: 31.73 kB / 448 MB, free: 41.05 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.676e-05/0.2056, allocations: 70.05 kB / 448 MB, free: 40.98 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.733e-06/0.2056, allocations: 0 / 448 MB, free: 40.98 MB / 410.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 4.876e-05/0.2057, allocations: 102.8 kB / 448.1 MB, free: 40.88 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.902e-05/0.2057, allocations: 31.48 kB / 448.2 MB, free: 40.84 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.199e-06/0.2057, allocations: 0 / 448.2 MB, free: 40.84 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.202e-05/0.2057, allocations: 0 / 448.2 MB, free: 40.84 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.797e-05/0.2057, allocations: 5.375 kB / 448.2 MB, free: 40.84 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.789e-06/0.2057, allocations: 0 / 448.2 MB, free: 40.84 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.63e-05/0.2057, allocations: 3.938 kB / 448.2 MB, free: 40.84 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.393e-06/0.2057, allocations: 0 / 448.2 MB, free: 40.84 MB / 410.7 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 4.471e-05/0.2058, allocations: 141.2 kB / 448.3 MB, free: 40.7 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.128e-05/0.2058, allocations: 6.75 kB / 448.3 MB, free: 40.69 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.781e-05/0.2058, allocations: 3.719 kB / 448.3 MB, free: 40.69 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.543e-06/0.2058, allocations: 0 / 448.3 MB, free: 40.69 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.747e-06/0.2058, allocations: 0 / 448.3 MB, free: 40.69 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.695e-06/0.2058, allocations: 0 / 448.3 MB, free: 40.69 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001307/0.206, allocations: 308.2 kB / 448.6 MB, free: 40.36 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.31e-07/0.206, allocations: 0 / 448.6 MB, free: 40.36 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.166e-06/0.206, allocations: 0.8438 kB / 448.6 MB, free: 40.36 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.082e-06/0.206, allocations: 0 / 448.6 MB, free: 40.36 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.272e-06/0.206, allocations: 2.812 kB / 448.6 MB, free: 40.36 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.81e-07/0.206, allocations: 4.031 kB / 448.6 MB, free: 40.36 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.61e-07/0.206, allocations: 0 / 448.6 MB, free: 40.36 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.432e-05/0.206, allocations: 191.4 kB / 448.8 MB, free: 40.16 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.569e-06/0.206, allocations: 6.25 kB / 448.8 MB, free: 40.16 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.029e-05/0.206, allocations: 3.938 kB / 448.8 MB, free: 40.16 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.52e-05/0.2061, allocations: 3.938 kB / 448.8 MB, free: 40.16 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.628e-05/0.2061, allocations: 7.094 kB / 448.8 MB, free: 40.16 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.036e-06/0.2061, allocations: 0 / 448.8 MB, free: 40.16 MB / 410.7 MB Notification: Performance of sorting global known variables: time 8.436e-06/0.2061, allocations: 79.22 kB / 448.9 MB, free: 40.08 MB / 410.7 MB Notification: Performance of sort global known variables: time 5.1e-08/0.2061, allocations: 0 / 448.9 MB, free: 40.08 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0002656/0.2064, allocations: 135.8 kB / 449.1 MB, free: 40.05 MB / 410.7 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.0006949/0.2071, allocations: 0.9914 MB / 450 MB, free: 39.26 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.000109/0.2072, allocations: 121.8 kB / 450.2 MB, free: 39.13 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.693e-06/0.2072, allocations: 0 / 450.2 MB, free: 39.13 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 1.594e-05/0.2072, allocations: 86.8 kB / 450.3 MB, free: 39.04 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001361/0.2073, allocations: 2.844 kB / 450.3 MB, free: 39.04 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005231/0.2078, allocations: 1.334 MB / 451.6 MB, free: 37.69 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.102e-05/0.2079, allocations: 57.59 kB / 451.6 MB, free: 37.62 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 1.148e-05/0.2079, allocations: 0 / 451.6 MB, free: 37.62 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.282e-05/0.2079, allocations: 15.41 kB / 451.7 MB, free: 37.61 MB / 410.7 MB Notification: Performance of SimCode: time 7.01e-07/0.2079, allocations: 0 / 451.7 MB, free: 37.61 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01932/0.2272, allocations: 5.248 MB / 456.9 MB, free: 36.48 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.833/7.06, allocations: 7.797 kB / 456.9 MB, free: 36.47 MB / 410.7 MB " [Timeout remaining time 653] (rm -f ModelicaTest_trunk_ModelicaTest.Math.Random.TestSpecial.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Math.Random.TestSpecial.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Math.Random.TestSpecial.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Math.Random.TestSpecial.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Math.Random.TestSpecial_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Math_Random_TestSpecial_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Math_Random_TestSpecial.fmu > ModelicaTest_trunk_ModelicaTest.Math.Random.TestSpecial.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Math.Random.TestSpecial_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Math/Random/TestSpecial/TestSpecial.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_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: 9.016471778973937]