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.001866/0.001866, allocations: 70.11 kB / 21.24 MB, free: 0.5469 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.001549/0.001549, allocations: 157.8 kB / 24.5 MB, free: 3.719 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.456/1.456, allocations: 177.2 MB / 204.9 MB, free: 9.004 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.2166/0.2166, allocations: 34.28 MB / 295.5 MB, free: 14.57 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 0.002124/0.002124, allocations: 71.88 kB / 443.1 MB, free: 6.68 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3307/0.3328, allocations: 66.01 MB / 0.4972 GB, free: 29.84 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestSpecial): time 0.001696/0.3345, allocations: 498.6 kB / 0.4977 GB, free: 29.55 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.002525/0.3371, allocations: 1.935 MB / 0.4996 GB, free: 28.25 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.198e-05/0.3371, allocations: 4 kB / 0.4996 GB, free: 28.24 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 1.415e-05/0.3371, allocations: 3.125 kB / 0.4996 GB, free: 28.24 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 7.013e-06/0.3371, allocations: 0 / 0.4996 GB, free: 28.24 MB / 446.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.001483/0.3386, allocations: 0.4976 MB / 0.5001 GB, free: 28.05 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 4.961e-05/0.3386, allocations: 6.609 kB / 0.5001 GB, free: 28.05 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.912e-05/0.3387, allocations: 0 / 0.5001 GB, free: 28.05 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.588e-05/0.3387, allocations: 3.094 kB / 0.5001 GB, free: 28.05 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.796e-05/0.3387, allocations: 0 / 0.5001 GB, free: 28.05 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 6.763e-06/0.3387, allocations: 0 / 0.5001 GB, free: 28.05 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008603/0.3396, allocations: 0.6752 MB / 0.5007 GB, free: 27.86 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 1.044e-05/0.3396, allocations: 0 / 0.5007 GB, free: 27.86 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 2.583e-05/0.3396, allocations: 7.094 kB / 0.5008 GB, free: 27.86 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005637/0.3402, allocations: 386.2 kB / 0.5011 GB, free: 27.75 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.432e-06/0.3402, allocations: 4 kB / 0.5011 GB, free: 27.75 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.3402, allocations: 4 kB / 0.5011 GB, free: 27.74 MB / 446.1 MB Notification: Performance of Transformations before backend: time 7.795e-06/0.3402, allocations: 3.219 kB / 0.5011 GB, free: 27.74 MB / 446.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.0004926/0.3407, allocations: 330.7 kB / 0.5014 GB, free: 27.41 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.269e-05/0.3407, allocations: 9.562 kB / 0.5015 GB, free: 27.41 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.399e-05/0.3408, allocations: 0.9375 kB / 0.5015 GB, free: 27.41 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.331e-05/0.3409, allocations: 113.2 kB / 0.5016 GB, free: 27.29 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.674e-05/0.3409, allocations: 384 / 0.5016 GB, free: 27.29 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.012e-05/0.3409, allocations: 384 / 0.5016 GB, free: 27.29 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001053/0.341, allocations: 62.78 kB / 0.5016 GB, free: 27.21 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.067e-05/0.341, allocations: 0 / 0.5016 GB, free: 27.21 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.147e-05/0.341, allocations: 7.156 kB / 0.5016 GB, free: 27.21 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.077e-06/0.341, allocations: 0 / 0.5016 GB, free: 27.21 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.827e-05/0.3411, allocations: 25.7 kB / 0.5017 GB, free: 27.18 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.937e-05/0.3412, allocations: 100 kB / 0.5018 GB, free: 27.06 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.805e-05/0.3412, allocations: 47.59 kB / 0.5018 GB, free: 27 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.384e-05/0.3412, allocations: 34.5 kB / 0.5018 GB, free: 26.96 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.947e-06/0.3413, allocations: 0 / 0.5018 GB, free: 26.96 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.63e-05/0.3413, allocations: 59.42 kB / 0.5019 GB, free: 26.89 MB / 446.1 MB Notification: Performance of pre-optimization done (n=1): time 7.71e-07/0.3413, allocations: 0 / 0.5019 GB, free: 26.89 MB / 446.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002319/0.3415, allocations: 123.8 kB / 0.502 GB, free: 26.75 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.671e-05/0.3416, allocations: 81.23 kB / 0.5021 GB, free: 26.66 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.786e-05/0.3416, allocations: 93.81 kB / 0.5022 GB, free: 26.55 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 8.436e-06/0.3416, allocations: 25.7 kB / 0.5022 GB, free: 26.52 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.4e-05/0.3416, allocations: 80.14 kB / 0.5023 GB, free: 26.44 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.817e-05/0.3416, allocations: 0 / 0.5023 GB, free: 26.44 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.447e-05/0.3417, allocations: 16.23 kB / 0.5023 GB, free: 26.43 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 5.357e-05/0.3417, allocations: 314 kB / 0.5026 GB, free: 26.11 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.798e-05/0.3417, allocations: 29.7 kB / 0.5026 GB, free: 26.08 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.029e-05/0.3417, allocations: 29.64 kB / 0.5026 GB, free: 26.04 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.65e-05/0.3418, allocations: 62.39 kB / 0.5027 GB, free: 25.97 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.904e-06/0.3418, allocations: 4.062 kB / 0.5027 GB, free: 25.97 MB / 446.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.705e-05/0.3418, allocations: 90.58 kB / 0.5028 GB, free: 25.87 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.893e-05/0.3419, allocations: 31.8 kB / 0.5028 GB, free: 25.84 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.47e-06/0.3419, allocations: 3.938 kB / 0.5028 GB, free: 25.84 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.427e-05/0.3419, allocations: 3.938 kB / 0.5028 GB, free: 25.83 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.893e-06/0.3419, allocations: 3.062 kB / 0.5028 GB, free: 25.83 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.935e-06/0.3419, allocations: 7.453 kB / 0.5028 GB, free: 25.83 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.65e-05/0.3419, allocations: 3.938 kB / 0.5028 GB, free: 25.82 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.604e-06/0.3419, allocations: 0 / 0.5028 GB, free: 25.82 MB / 446.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 6.326e-05/0.342, allocations: 138.5 kB / 0.503 GB, free: 25.68 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.223e-06/0.342, allocations: 3.938 kB / 0.503 GB, free: 25.67 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.274e-05/0.342, allocations: 10.19 kB / 0.503 GB, free: 25.66 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.322e-06/0.342, allocations: 0 / 0.503 GB, free: 25.66 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.308e-06/0.342, allocations: 0 / 0.503 GB, free: 25.66 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.605e-06/0.342, allocations: 0 / 0.503 GB, free: 25.66 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.743e-05/0.3421, allocations: 99.78 kB / 0.5031 GB, free: 25.54 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.51e-07/0.3421, allocations: 0 / 0.5031 GB, free: 25.54 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.1e-07/0.3421, allocations: 0 / 0.5031 GB, free: 25.54 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.142e-06/0.3421, allocations: 0 / 0.5031 GB, free: 25.54 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.303e-06/0.3421, allocations: 0 / 0.5031 GB, free: 25.54 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.585e-06/0.3421, allocations: 11.94 kB / 0.5031 GB, free: 25.53 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.844e-06/0.3421, allocations: 3.031 kB / 0.5031 GB, free: 25.53 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.962e-05/0.3421, allocations: 116.2 kB / 0.5032 GB, free: 25.4 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.4e-06/0.3422, allocations: 4 kB / 0.5032 GB, free: 25.4 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.193e-05/0.3422, allocations: 0 / 0.5032 GB, free: 25.4 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.788e-06/0.3422, allocations: 6.906 kB / 0.5032 GB, free: 25.39 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.522e-05/0.3422, allocations: 7.453 kB / 0.5032 GB, free: 25.39 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.595e-06/0.3422, allocations: 0 / 0.5032 GB, free: 25.39 MB / 446.1 MB Notification: Performance of sorting global known variables: time 1.587e-05/0.3422, allocations: 75.28 kB / 0.5033 GB, free: 25.32 MB / 446.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3422, allocations: 3.938 kB / 0.5033 GB, free: 25.31 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0003966/0.3426, allocations: 132 kB / 0.5034 GB, free: 25.29 MB / 446.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.0006445/0.3433, allocations: 312 kB / 0.5037 GB, free: 25.13 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 8.353e-05/0.3433, allocations: 115.7 kB / 0.5038 GB, free: 25 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.693e-06/0.3433, allocations: 0 / 0.5038 GB, free: 25 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 2.272e-05/0.3434, allocations: 85.73 kB / 0.5039 GB, free: 24.91 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001171/0.3435, allocations: 0 / 0.5039 GB, free: 24.91 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001677/0.3436, allocations: 120.3 kB / 0.504 GB, free: 24.77 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.603e-05/0.3437, allocations: 56.42 kB / 0.5041 GB, free: 24.7 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 5.45e-06/0.3437, allocations: 3.422 kB / 0.5041 GB, free: 24.7 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.161e-05/0.3437, allocations: 8.5 kB / 0.5041 GB, free: 24.68 MB / 446.1 MB Notification: Performance of SimCode: time 4e-07/0.3437, allocations: 2.406 kB / 0.5041 GB, free: 24.68 MB / 446.1 MB Notification: Performance of Templates: time 0.006465/0.3502, allocations: 3.521 MB / 0.5075 GB, free: 24.41 MB / 446.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 -s ida -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/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: 5.006242424016818]