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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) 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=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestSpecial") translateModel(ModelicaTest.Math.Random.TestSpecial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestSpecial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009965/0.0009968, allocations: 94.09 kB / 16.99 MB, free: 5.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008446/0.0008448, allocations: 181.3 kB / 17.88 MB, free: 5.609 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.398/1.398, allocations: 223.2 MB / 241.8 MB, free: 14.64 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2248/0.2248, allocations: 44.21 MB / 337.1 MB, free: 2.664 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003356/0.0003356, allocations: 8 kB / 409.5 MB, free: 27.68 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1303/0.1307, allocations: 61.92 MB / 471.5 MB, free: 13.72 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestSpecial): time 0.0006366/0.1314, allocations: 226.9 kB / 471.7 MB, free: 13.5 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002419/0.1338, allocations: 1.894 MB / 473.6 MB, free: 11.58 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.745e-05/0.1338, allocations: 0 / 473.6 MB, free: 11.58 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.052e-05/0.1339, allocations: 0 / 473.6 MB, free: 11.58 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.481e-06/0.1339, allocations: 4 kB / 473.6 MB, free: 11.58 MB / 350.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.001157/0.135, allocations: 378.6 kB / 473.9 MB, free: 11.21 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.955e-05/0.1351, allocations: 7.984 kB / 473.9 MB, free: 11.2 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.83e-05/0.1352, allocations: 3.984 kB / 474 MB, free: 11.2 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.891e-05/0.1352, allocations: 4 kB / 474 MB, free: 11.2 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.981e-05/0.1352, allocations: 3.938 kB / 474 MB, free: 11.19 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.762e-06/0.1352, allocations: 0 / 474 MB, free: 11.19 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008423/0.1361, allocations: 0.6319 MB / 474.6 MB, free: 10.56 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.532e-06/0.1361, allocations: 4 kB / 474.6 MB, free: 10.55 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.667e-05/0.1361, allocations: 25.7 kB / 474.6 MB, free: 10.52 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003424/0.1365, allocations: 243.6 kB / 474.9 MB, free: 10.29 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.816e-06/0.1365, allocations: 3.938 kB / 474.9 MB, free: 10.28 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.342e-06/0.1365, allocations: 3.938 kB / 474.9 MB, free: 10.28 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.062e-06/0.1365, allocations: 4 kB / 474.9 MB, free: 10.27 MB / 350.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.0003835/0.1369, allocations: 401 kB / 475.3 MB, free: 9.828 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.734e-05/0.1369, allocations: 12.03 kB / 475.3 MB, free: 9.816 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.005e-05/0.137, allocations: 0 / 475.3 MB, free: 9.816 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.865e-05/0.1371, allocations: 159.1 kB / 475.4 MB, free: 9.621 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.013e-05/0.1371, allocations: 0 / 475.4 MB, free: 9.621 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.075e-05/0.1371, allocations: 0 / 475.4 MB, free: 9.621 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.806e-05/0.1372, allocations: 37.64 kB / 475.5 MB, free: 9.578 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.193e-06/0.1372, allocations: 0 / 475.5 MB, free: 9.578 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.185e-06/0.1372, allocations: 4 kB / 475.5 MB, free: 9.574 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.057e-06/0.1372, allocations: 0 / 475.5 MB, free: 9.574 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.721e-05/0.1372, allocations: 4 kB / 475.5 MB, free: 9.57 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000122/0.1374, allocations: 145.7 kB / 475.6 MB, free: 9.379 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.395e-05/0.1374, allocations: 18.52 kB / 475.6 MB, free: 9.352 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.436e-06/0.1374, allocations: 0 / 475.6 MB, free: 9.352 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.041e-05/0.1375, allocations: 64.34 kB / 475.7 MB, free: 9.273 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.192e-06/0.1375, allocations: 4 kB / 475.7 MB, free: 9.27 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001638/0.1376, allocations: 67.36 kB / 475.8 MB, free: 9.191 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.371e-05/0.1377, allocations: 81.05 kB / 475.8 MB, free: 9.094 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.719e-05/0.1377, allocations: 89.86 kB / 475.9 MB, free: 8.996 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.259e-05/0.1378, allocations: 25.7 kB / 476 MB, free: 8.965 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.425e-05/0.1378, allocations: 84.08 kB / 476 MB, free: 8.879 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.895e-05/0.1378, allocations: 0 / 476 MB, free: 8.879 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.214e-06/0.1378, allocations: 4 kB / 476 MB, free: 8.875 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.734e-05/0.1379, allocations: 319 kB / 476.4 MB, free: 8.555 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.795e-06/0.1379, allocations: 0 / 476.4 MB, free: 8.555 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.208e-06/0.1379, allocations: 0 / 476.4 MB, free: 8.555 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.435e-05/0.138, allocations: 29.7 kB / 476.4 MB, free: 8.52 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.138, allocations: 0 / 476.4 MB, free: 8.52 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.38e-05/0.1381, allocations: 63.41 kB / 476.4 MB, free: 8.445 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.155e-05/0.1381, allocations: 33.69 kB / 476.5 MB, free: 8.406 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.499e-06/0.1381, allocations: 0 / 476.5 MB, free: 8.406 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.58e-05/0.1381, allocations: 3.953 kB / 476.5 MB, free: 8.402 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.42e-07/0.1381, allocations: 4.094 kB / 476.5 MB, free: 8.398 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.929e-06/0.1381, allocations: 0 / 476.5 MB, free: 8.398 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.524e-05/0.1382, allocations: 0 / 476.5 MB, free: 8.398 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.406e-06/0.1382, allocations: 4 kB / 476.5 MB, free: 8.395 MB / 350.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.7e-05/0.1383, allocations: 136 kB / 476.6 MB, free: 8.246 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.794e-06/0.1383, allocations: 4 kB / 476.6 MB, free: 8.242 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.056e-05/0.1383, allocations: 7.078 kB / 476.6 MB, free: 8.234 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.482e-06/0.1383, allocations: 0 / 476.6 MB, free: 8.234 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.37e-06/0.1383, allocations: 7.891 kB / 476.6 MB, free: 8.227 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.188e-06/0.1383, allocations: 7.984 kB / 476.7 MB, free: 8.219 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.378e-05/0.1384, allocations: 149.7 kB / 476.8 MB, free: 8.023 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.82e-07/0.1384, allocations: 0 / 476.8 MB, free: 8.023 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.693e-06/0.1384, allocations: 4 kB / 476.8 MB, free: 8.02 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.494e-06/0.1384, allocations: 3.984 kB / 476.8 MB, free: 8.016 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.911e-06/0.1384, allocations: 0 / 476.8 MB, free: 8.016 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.71e-07/0.1384, allocations: 0 / 476.8 MB, free: 8.016 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.61e-07/0.1384, allocations: 0 / 476.8 MB, free: 8.016 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.79e-05/0.1385, allocations: 102.7 kB / 476.9 MB, free: 7.891 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.875e-05/0.1386, allocations: 77.11 kB / 477 MB, free: 7.797 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.119e-05/0.1386, allocations: 0 / 477 MB, free: 7.797 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.395e-06/0.1386, allocations: 0 / 477 MB, free: 7.797 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.776e-05/0.1386, allocations: 7.984 kB / 477 MB, free: 7.789 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.625e-06/0.1386, allocations: 3.938 kB / 477 MB, free: 7.785 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.771e-05/0.1387, allocations: 79.23 kB / 477.1 MB, free: 7.707 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1387, allocations: 3.938 kB / 477.1 MB, free: 7.703 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003614/0.139, allocations: 120 kB / 477.2 MB, free: 7.586 MB / 350.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007068/0.1397, allocations: 307.9 kB / 477.5 MB, free: 7.285 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 8.1e-05/0.1398, allocations: 55.41 kB / 477.5 MB, free: 7.219 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.723e-06/0.1398, allocations: 4.062 kB / 477.5 MB, free: 7.215 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 2.284e-05/0.1399, allocations: 55.41 kB / 477.6 MB, free: 7.148 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 7.688e-05/0.14, allocations: 4 kB / 477.6 MB, free: 7.145 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001555/0.1401, allocations: 75 kB / 477.7 MB, free: 7.043 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001948/0.1403, allocations: 0.6731 MB / 478.4 MB, free: 6.344 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.581e-06/0.1403, allocations: 0 / 478.4 MB, free: 6.344 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.896e-06/0.1403, allocations: 7.438 kB / 478.4 MB, free: 6.336 MB / 350.1 MB Notification: Performance of SimCode: time 2e-07/0.1403, allocations: 0 / 478.4 MB, free: 6.336 MB / 350.1 MB Notification: Performance of Templates: time 0.006412/0.1468, allocations: 3.435 MB / 481.8 MB, free: 2.902 MB / 350.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestSpecial.makefile (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) 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","../files/ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestSpecial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches