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.001352/0.001352, allocations: 84.94 kB / 20.68 MB, free: 1.023 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.0014/0.0014, allocations: 163.7 kB / 23.95 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.473/1.473, allocations: 177.1 MB / 204.3 MB, free: 9.184 MB / 190.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.2283/0.2283, allocations: 34.28 MB / 294.9 MB, free: 14.58 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: translateModel(ModelicaTest.Math.Random.TestSpecial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestSpecial") translateModel(ModelicaTest.Math.Random.TestSpecial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestSpecial") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.763e-06/1.763e-06, allocations: 0 / 442.7 MB, free: 5.41 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.359e-05/3.536e-05, allocations: 2.281 kB / 442.7 MB, free: 5.406 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestSpecial): time 0.001485/0.001521, allocations: 0.5166 MB / 443.2 MB, free: 4.891 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.003038/0.004558, allocations: 1.922 MB / 445.1 MB, free: 2.945 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.383e-05/0.004572, allocations: 0 / 445.1 MB, free: 2.945 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 1.575e-05/0.004588, allocations: 0 / 445.1 MB, free: 2.945 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 5.37e-06/0.004593, allocations: 0 / 445.1 MB, free: 2.945 MB / 366.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.001412/0.006005, allocations: 0.5054 MB / 445.6 MB, free: 2.441 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 4.443e-05/0.006049, allocations: 3.938 kB / 445.6 MB, free: 2.438 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.494e-05/0.006084, allocations: 0 / 445.6 MB, free: 2.438 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.044e-05/0.006114, allocations: 11.97 kB / 445.6 MB, free: 2.426 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.75e-05/0.006132, allocations: 0 / 445.6 MB, free: 2.426 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 7.294e-06/0.006139, allocations: 0 / 445.6 MB, free: 2.426 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001088/0.007228, allocations: 0.6704 MB / 446.3 MB, free: 1.754 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 6.432e-06/0.007234, allocations: 0 / 446.3 MB, free: 1.754 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 1.882e-05/0.007253, allocations: 7.984 kB / 446.3 MB, free: 1.746 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007388/0.007992, allocations: 486.8 kB / 446.8 MB, free: 1.27 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.765e-06/0.007995, allocations: 0 / 446.8 MB, free: 1.27 MB / 366.1 MB Notification: Performance of FrontEnd: time 9.82e-07/0.007995, allocations: 0 / 446.8 MB, free: 1.27 MB / 366.1 MB Notification: Performance of Transformations before backend: time 4.057e-06/0.008, allocations: 0 / 446.8 MB, free: 1.27 MB / 366.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.0004506/0.00845, allocations: 335.5 kB / 447.1 MB, free: 0.9062 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.242e-05/0.008483, allocations: 11.97 kB / 447.1 MB, free: 0.8945 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.773e-05/0.00851, allocations: 8.938 kB / 447.1 MB, free: 0.8867 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.234e-05/0.008593, allocations: 109.8 kB / 447.2 MB, free: 0.7539 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.135e-05/0.008604, allocations: 384 / 447.2 MB, free: 0.7539 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.101e-05/0.008615, allocations: 384 / 447.2 MB, free: 0.7539 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001007/0.008716, allocations: 63.89 kB / 447.3 MB, free: 0.6797 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.635e-06/0.008723, allocations: 192 / 447.3 MB, free: 0.6797 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.943e-06/0.00873, allocations: 4.312 kB / 447.3 MB, free: 0.6758 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.75e-06/0.008736, allocations: 3.938 kB / 447.3 MB, free: 0.6719 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.354e-05/0.00877, allocations: 29.7 kB / 447.3 MB, free: 0.6367 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001159/0.008886, allocations: 93.33 kB / 447.4 MB, free: 0.5156 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.981e-05/0.008955, allocations: 48.31 kB / 447.5 MB, free: 464 kB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.049e-05/0.008986, allocations: 34.56 kB / 447.5 MB, free: 420 kB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.009e-05/0.008996, allocations: 3.984 kB / 447.5 MB, free: 416 kB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.977e-05/0.009046, allocations: 60.33 kB / 447.6 MB, free: 340 kB / 366.1 MB Notification: Performance of pre-optimization done (n=1): time 1.002e-06/0.009047, allocations: 0 / 447.6 MB, free: 340 kB / 366.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001972/0.009244, allocations: 114.8 kB / 447.7 MB, free: 200 kB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.703e-05/0.009301, allocations: 89.03 kB / 447.8 MB, free: 92 kB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.186/0.1953, allocations: 89.86 kB / 447.9 MB, free: 19.43 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.394e-05/0.1953, allocations: 25.7 kB / 447.9 MB, free: 19.4 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.27e-05/0.1953, allocations: 80.8 kB / 448 MB, free: 19.32 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.19e-05/0.1953, allocations: 4.812 kB / 448 MB, free: 19.32 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.473e-05/0.1954, allocations: 12.34 kB / 448 MB, free: 19.3 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 4.345e-05/0.1954, allocations: 311.4 kB / 448.3 MB, free: 18.99 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.933e-05/0.1954, allocations: 26.8 kB / 448.3 MB, free: 18.96 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.69e-05/0.1955, allocations: 30.58 kB / 448.3 MB, free: 18.93 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.189e-05/0.1955, allocations: 61.92 kB / 448.4 MB, free: 18.86 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.786e-06/0.1955, allocations: 0 / 448.4 MB, free: 18.86 MB / 366.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.698e-05/0.1956, allocations: 93.42 kB / 448.5 MB, free: 18.77 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.916e-05/0.1956, allocations: 31.67 kB / 448.5 MB, free: 18.73 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.029e-06/0.1956, allocations: 0 / 448.5 MB, free: 18.73 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.534e-05/0.1956, allocations: 4.406 kB / 448.5 MB, free: 18.73 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.062e-06/0.1956, allocations: 1.375 kB / 448.5 MB, free: 18.73 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.091e-06/0.1957, allocations: 4.219 kB / 448.5 MB, free: 18.73 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.763e-05/0.1957, allocations: 2.766 kB / 448.5 MB, free: 18.73 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.091e-06/0.1957, allocations: 0 / 448.5 MB, free: 18.73 MB / 366.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: 1 (result) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 0 * 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 5.296e-05/0.1957, allocations: 139.2 kB / 448.7 MB, free: 18.59 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.06e-05/0.1957, allocations: 1.578 kB / 448.7 MB, free: 18.59 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.101e-05/0.1958, allocations: 6.875 kB / 448.7 MB, free: 18.59 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.134e-06/0.1958, allocations: 1.531 kB / 448.7 MB, free: 18.59 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.058e-06/0.1958, allocations: 3.75 kB / 448.7 MB, free: 18.59 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.146e-06/0.1958, allocations: 3.156 kB / 448.7 MB, free: 18.59 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.723e-05/0.1958, allocations: 102.7 kB / 448.8 MB, free: 18.46 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.92e-07/0.1958, allocations: 0 / 448.8 MB, free: 18.46 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.51e-07/0.1958, allocations: 0 / 448.8 MB, free: 18.46 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.144e-06/0.1958, allocations: 5.344 kB / 448.8 MB, free: 18.46 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.853e-06/0.1958, allocations: 0 / 448.8 MB, free: 18.46 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.863e-06/0.1958, allocations: 3.141 kB / 448.8 MB, free: 18.46 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.803e-06/0.1958, allocations: 3.938 kB / 448.8 MB, free: 18.46 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.117e-05/0.1959, allocations: 117 kB / 448.9 MB, free: 18.33 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.771e-06/0.1959, allocations: 1.812 kB / 448.9 MB, free: 18.33 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.247e-05/0.1959, allocations: 1.125 kB / 448.9 MB, free: 18.33 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.117e-05/0.1959, allocations: 3.25 kB / 448.9 MB, free: 18.33 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.614e-05/0.196, allocations: 9.422 kB / 448.9 MB, free: 18.33 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.186e-06/0.196, allocations: 1.125 kB / 448.9 MB, free: 18.33 MB / 366.1 MB Notification: Performance of sorting global known variables: time 1.135e-05/0.196, allocations: 76.31 kB / 449 MB, free: 18.25 MB / 366.1 MB Notification: Performance of sort global known variables: time 5e-08/0.196, allocations: 0 / 449 MB, free: 18.25 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004925/0.1965, allocations: 135 kB / 449.1 MB, free: 18.25 MB / 366.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: 1 (result) * Number of discrete states: 1 (result) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 0 * 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.0008345/0.1973, allocations: 341.5 kB / 449.5 MB, free: 18.16 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001106/0.1974, allocations: 116.8 kB / 449.6 MB, free: 18.03 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.1974, allocations: 0 / 449.6 MB, free: 18.03 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 2.609e-05/0.1974, allocations: 88.55 kB / 449.7 MB, free: 17.93 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001258/0.1976, allocations: 3.984 kB / 449.7 MB, free: 17.93 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001898/0.1977, allocations: 111.2 kB / 449.8 MB, free: 17.8 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.127e-05/0.1978, allocations: 54.92 kB / 449.8 MB, free: 17.73 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 4.699e-06/0.1978, allocations: 0 / 449.8 MB, free: 17.73 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.137e-05/0.1978, allocations: 10.88 kB / 449.9 MB, free: 17.73 MB / 366.1 MB Notification: Performance of SimCode: time 4.81e-07/0.1978, allocations: 0 / 449.9 MB, free: 17.73 MB / 366.1 MB Notification: Performance of Templates: time 0.009082/0.2069, allocations: 3.556 MB / 453.4 MB, free: 17.51 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestSpecial.makefile [Timeout 660] (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 & ./ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestSpecial -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestSpecial.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0_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_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: 5.106829568743706]