Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestSpecial.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001238/0.001238, allocations: 106.2 kB / 19.81 MB, free: 2.516 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001481/0.001481, allocations: 196.6 kB / 22.98 MB, free: 5.617 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.508/1.508, allocations: 225.6 MB / 251.6 MB, free: 13.35 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2633/0.2633, allocations: 44.91 MB / 351.6 MB, free: 12.23 MB / 286.1 MB " [Timeout remaining time 179] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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.0.0_ModelicaTest.Math.Random.TestSpecial") translateModel(ModelicaTest.Math.Random.TestSpecial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestSpecial") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001937/0.001937, allocations: 63.91 kB / 495.2 MB, free: 1.867 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4559/0.4578, allocations: 64.25 MB / 0.5464 GB, free: 13.21 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestSpecial): time 0.001807/0.4597, allocations: 0.5078 MB / 0.5469 GB, free: 12.82 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003562/0.4632, allocations: 2.021 MB / 0.5488 GB, free: 11.23 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.804e-05/0.4632, allocations: 3.938 kB / 0.5488 GB, free: 11.23 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 2.432e-05/0.4633, allocations: 3.938 kB / 0.5489 GB, free: 11.22 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.903e-06/0.4633, allocations: 0 / 0.5489 GB, free: 11.22 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.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.001806/0.4651, allocations: 496.1 kB / 0.5493 GB, free: 10.95 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 6.463e-05/0.4651, allocations: 1.938 kB / 0.5493 GB, free: 10.95 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.098e-05/0.4652, allocations: 9.031 kB / 0.5493 GB, free: 10.94 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.837e-05/0.4652, allocations: 1.062 kB / 0.5493 GB, free: 10.94 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.359e-05/0.4652, allocations: 5.172 kB / 0.5493 GB, free: 10.93 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 8.706e-06/0.4652, allocations: 0 / 0.5493 GB, free: 10.93 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001232/0.4665, allocations: 0.6496 MB / 0.55 GB, free: 10.57 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.096e-05/0.4665, allocations: 3.984 kB / 0.55 GB, free: 10.57 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.363e-05/0.4665, allocations: 5.125 kB / 0.55 GB, free: 10.56 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006539/0.4672, allocations: 381.2 kB / 0.5503 GB, free: 10.33 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.64e-06/0.4672, allocations: 1.125 kB / 0.5504 GB, free: 10.33 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.893e-06/0.4672, allocations: 3.938 kB / 0.5504 GB, free: 10.33 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.903e-06/0.4672, allocations: 0 / 0.5504 GB, free: 10.33 MB / 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.000629/0.4678, allocations: 413.5 kB / 0.5507 GB, free: 9.895 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.807e-05/0.4679, allocations: 9.438 kB / 0.5508 GB, free: 9.895 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.061e-05/0.4679, allocations: 0.9375 kB / 0.5508 GB, free: 9.895 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001455/0.468, allocations: 165.5 kB / 0.5509 GB, free: 9.695 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.512e-05/0.4681, allocations: 384 / 0.5509 GB, free: 9.695 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.195e-05/0.4681, allocations: 1.656 kB / 0.5509 GB, free: 9.695 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001157/0.4682, allocations: 32.3 kB / 0.5509 GB, free: 9.66 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.327e-06/0.4682, allocations: 0 / 0.5509 GB, free: 9.66 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.253e-05/0.4682, allocations: 5.141 kB / 0.551 GB, free: 9.656 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.751e-06/0.4682, allocations: 0 / 0.551 GB, free: 9.656 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.067e-05/0.4682, allocations: 1.188 kB / 0.551 GB, free: 9.656 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002456/0.4685, allocations: 150.8 kB / 0.5511 GB, free: 9.461 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.867e-05/0.4685, allocations: 20.83 kB / 0.5511 GB, free: 9.434 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.767e-05/0.4686, allocations: 5.953 kB / 0.5511 GB, free: 9.426 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.352e-06/0.4686, allocations: 0 / 0.5511 GB, free: 9.426 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.069e-05/0.4686, allocations: 62.48 kB / 0.5512 GB, free: 9.352 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 9.01e-07/0.4686, allocations: 0 / 0.5512 GB, free: 9.352 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002422/0.4689, allocations: 71.27 kB / 0.5513 GB, free: 9.277 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.881e-05/0.4689, allocations: 81.23 kB / 0.5513 GB, free: 9.18 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.092e-05/0.469, allocations: 91.3 kB / 0.5514 GB, free: 9.082 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.16e-05/0.469, allocations: 25.7 kB / 0.5514 GB, free: 9.051 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.55e-05/0.4691, allocations: 80.14 kB / 0.5515 GB, free: 8.969 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.352e-05/0.4691, allocations: 1.125 kB / 0.5515 GB, free: 8.969 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.591e-05/0.4691, allocations: 15.73 kB / 0.5515 GB, free: 8.949 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001513/0.4693, allocations: 315.9 kB / 0.5518 GB, free: 8.633 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.276e-05/0.4693, allocations: 4 kB / 0.5518 GB, free: 8.629 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.574e-06/0.4693, allocations: 9.344 kB / 0.5518 GB, free: 8.621 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.563e-05/0.4694, allocations: 59.92 kB / 0.5519 GB, free: 8.551 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.904e-06/0.4694, allocations: 0 / 0.5519 GB, free: 8.551 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.312e-05/0.4695, allocations: 67.45 kB / 0.552 GB, free: 8.48 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.537e-05/0.4695, allocations: 34.42 kB / 0.552 GB, free: 8.445 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.923e-06/0.4695, allocations: 1.375 kB / 0.552 GB, free: 8.445 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.863e-05/0.4695, allocations: 0 / 0.552 GB, free: 8.445 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.91e-07/0.4695, allocations: 0 / 0.552 GB, free: 8.445 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.312e-06/0.4695, allocations: 1.188 kB / 0.552 GB, free: 8.445 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.615e-05/0.4695, allocations: 4.094 kB / 0.552 GB, free: 8.441 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.927e-06/0.4696, allocations: 5.406 kB / 0.552 GB, free: 8.438 MB / 398.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 0.0001157/0.4697, allocations: 138.6 kB / 0.5521 GB, free: 8.289 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.494e-05/0.4697, allocations: 8.922 kB / 0.5522 GB, free: 8.281 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.012e-05/0.4697, allocations: 11.06 kB / 0.5522 GB, free: 8.27 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.573e-06/0.4697, allocations: 0 / 0.5522 GB, free: 8.27 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.899e-06/0.4697, allocations: 1.062 kB / 0.5522 GB, free: 8.27 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.066e-06/0.4697, allocations: 0 / 0.5522 GB, free: 8.27 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001302/0.4698, allocations: 146.8 kB / 0.5523 GB, free: 8.078 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.052e-06/0.4698, allocations: 4.906 kB / 0.5523 GB, free: 8.074 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.22e-07/0.4698, allocations: 0 / 0.5523 GB, free: 8.074 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.136e-06/0.4698, allocations: 4.969 kB / 0.5523 GB, free: 8.07 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.156e-05/0.4699, allocations: 5.016 kB / 0.5523 GB, free: 8.066 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.236e-06/0.4699, allocations: 3.984 kB / 0.5523 GB, free: 8.062 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.4699, allocations: 0 / 0.5523 GB, free: 8.062 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001279/0.47, allocations: 90.12 kB / 0.5524 GB, free: 7.961 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.049e-05/0.47, allocations: 78.27 kB / 0.5525 GB, free: 7.867 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.103e-05/0.4701, allocations: 13.11 kB / 0.5525 GB, free: 7.855 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.556e-06/0.4701, allocations: 0 / 0.5525 GB, free: 7.855 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.374e-05/0.4701, allocations: 1.156 kB / 0.5525 GB, free: 7.855 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.941e-06/0.4701, allocations: 5.047 kB / 0.5525 GB, free: 7.852 MB / 398.1 MB Notification: Performance of sorting global known variables: time 4.049e-05/0.4701, allocations: 75.28 kB / 0.5526 GB, free: 7.777 MB / 398.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.4701, allocations: 0 / 0.5526 GB, free: 7.777 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004582/0.4706, allocations: 124.7 kB / 0.5527 GB, free: 7.746 MB / 398.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.0009139/0.4715, allocations: 316.2 kB / 0.553 GB, free: 7.559 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001272/0.4716, allocations: 57.16 kB / 0.553 GB, free: 7.496 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.4716, allocations: 0 / 0.553 GB, free: 7.496 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 5.209e-05/0.4717, allocations: 62.78 kB / 0.5531 GB, free: 7.426 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001686/0.4719, allocations: 5.062 kB / 0.5531 GB, free: 7.422 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002596/0.4721, allocations: 83.03 kB / 0.5532 GB, free: 7.328 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004205/0.4725, allocations: 0.6727 MB / 0.5539 GB, free: 6.629 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 6.903e-06/0.4725, allocations: 1.594 kB / 0.5539 GB, free: 6.629 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.884e-05/0.4726, allocations: 8.906 kB / 0.5539 GB, free: 6.621 MB / 398.1 MB Notification: Performance of SimCode: time 8.11e-07/0.4726, allocations: 0 / 0.5539 GB, free: 6.621 MB / 398.1 MB Notification: Performance of Templates: time 0.008599/0.4812, allocations: 3.395 MB / 0.5572 GB, free: 4.328 MB / 398.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestSpecial.makefile [Timeout 660] (rm -f ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestSpecial.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestSpecial.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestSpecial.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestSpecial.sim & ./ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestSpecial -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestSpecial.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestSpecial_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/Random/TestSpecial/TestSpecial.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.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.605306229554117]