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.0008717/0.0008723, allocations: 97.47 kB / 17 MB, free: 6.418 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.001179/0.001179, allocations: 189.2 kB / 17.89 MB, free: 5.945 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.461/1.461, allocations: 223.3 MB / 241.9 MB, free: 252 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2383/0.2383, allocations: 44.26 MB / 337.3 MB, free: 2.773 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003299/0.0003299, allocations: 19.92 kB / 409.7 MB, free: 27.66 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1375/0.1378, allocations: 61.92 MB / 471.6 MB, free: 13.71 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestSpecial): time 0.0007125/0.1386, allocations: 226.9 kB / 471.8 MB, free: 13.48 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00283/0.1414, allocations: 1.894 MB / 473.7 MB, free: 11.57 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.204e-05/0.1415, allocations: 0 / 473.7 MB, free: 11.57 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.248e-05/0.1415, allocations: 0 / 473.7 MB, free: 11.57 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 7.394e-06/0.1415, allocations: 0 / 473.7 MB, free: 11.57 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.001263/0.1428, allocations: 397.9 kB / 474.1 MB, free: 11.18 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.55e-05/0.1428, allocations: 4 kB / 474.1 MB, free: 11.18 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.603e-05/0.1429, allocations: 11.98 kB / 474.1 MB, free: 11.17 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.717e-05/0.1429, allocations: 0 / 474.1 MB, free: 11.17 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.869e-05/0.1429, allocations: 0 / 474.1 MB, free: 11.17 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.424e-06/0.1429, allocations: 0 / 474.1 MB, free: 11.17 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001056/0.144, allocations: 0.659 MB / 474.8 MB, free: 10.51 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.307e-06/0.144, allocations: 0 / 474.8 MB, free: 10.51 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.942e-05/0.1441, allocations: 29.64 kB / 474.8 MB, free: 10.47 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003653/0.1444, allocations: 255.5 kB / 475.1 MB, free: 10.22 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.262e-06/0.1444, allocations: 7.938 kB / 475.1 MB, free: 10.21 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.963e-06/0.1444, allocations: 0 / 475.1 MB, free: 10.21 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.809e-06/0.1445, allocations: 0 / 475.1 MB, free: 10.21 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.0004466/0.1449, allocations: 393.1 kB / 475.4 MB, free: 9.777 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.118e-05/0.145, allocations: 12.03 kB / 475.5 MB, free: 9.766 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.544e-05/0.145, allocations: 4 kB / 475.5 MB, free: 9.762 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000106/0.1451, allocations: 159.1 kB / 475.6 MB, free: 9.566 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.342e-05/0.1451, allocations: 0 / 475.6 MB, free: 9.566 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.6e-05/0.1451, allocations: 0 / 475.6 MB, free: 9.566 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.795e-05/0.1453, allocations: 37.66 kB / 475.7 MB, free: 9.523 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.664e-06/0.1453, allocations: 0 / 475.7 MB, free: 9.523 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.496e-06/0.1453, allocations: 0 / 475.7 MB, free: 9.523 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.629e-06/0.1453, allocations: 0 / 475.7 MB, free: 9.523 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.15e-05/0.1453, allocations: 7.938 kB / 475.7 MB, free: 9.516 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001403/0.1455, allocations: 145.7 kB / 475.8 MB, free: 9.324 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.552e-05/0.1455, allocations: 18.58 kB / 475.8 MB, free: 9.297 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.772e-05/0.1455, allocations: 8.953 kB / 475.8 MB, free: 9.285 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.254e-06/0.1456, allocations: 4 kB / 475.8 MB, free: 9.281 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.062e-05/0.1456, allocations: 64.22 kB / 475.9 MB, free: 9.203 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.122e-06/0.1456, allocations: 0 / 475.9 MB, free: 9.203 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002089/0.1458, allocations: 67.33 kB / 476 MB, free: 9.125 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.207e-05/0.1459, allocations: 77.11 kB / 476 MB, free: 9.031 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.382e-05/0.146, allocations: 93.86 kB / 476.1 MB, free: 8.93 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.796e-05/0.146, allocations: 37.58 kB / 476.2 MB, free: 8.887 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.9e-05/0.146, allocations: 84.27 kB / 476.2 MB, free: 8.801 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.492e-05/0.1461, allocations: 0 / 476.2 MB, free: 8.801 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.114e-06/0.1461, allocations: 0 / 476.2 MB, free: 8.801 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001442/0.1462, allocations: 310.8 kB / 476.6 MB, free: 8.488 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.486e-06/0.1462, allocations: 0 / 476.6 MB, free: 8.488 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.823e-06/0.1463, allocations: 4 kB / 476.6 MB, free: 8.484 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.131e-05/0.1463, allocations: 29.69 kB / 476.6 MB, free: 8.449 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.472e-06/0.1463, allocations: 0 / 476.6 MB, free: 8.449 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.835e-05/0.1464, allocations: 63.47 kB / 476.6 MB, free: 8.375 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.374e-05/0.1464, allocations: 37.67 kB / 476.7 MB, free: 8.332 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.599e-06/0.1464, allocations: 0 / 476.7 MB, free: 8.332 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.174e-05/0.1464, allocations: 3.953 kB / 476.7 MB, free: 8.328 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.42e-07/0.1464, allocations: 4 kB / 476.7 MB, free: 8.324 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.155e-06/0.1465, allocations: 3.984 kB / 476.7 MB, free: 8.32 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.679e-05/0.1465, allocations: 0 / 476.7 MB, free: 8.32 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.984e-06/0.1465, allocations: 0 / 476.7 MB, free: 8.32 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 0.0001013/0.1466, allocations: 136.1 kB / 476.8 MB, free: 8.172 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.492e-06/0.1466, allocations: 0 / 476.8 MB, free: 8.172 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.512e-05/0.1466, allocations: 11.08 kB / 476.8 MB, free: 8.16 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.585e-06/0.1466, allocations: 3.953 kB / 476.8 MB, free: 8.156 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.388e-06/0.1467, allocations: 0 / 476.8 MB, free: 8.156 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.536e-06/0.1467, allocations: 0 / 476.8 MB, free: 8.156 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001081/0.1468, allocations: 149.7 kB / 477 MB, free: 7.961 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.01e-07/0.1468, allocations: 0 / 477 MB, free: 7.961 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.21e-07/0.1468, allocations: 0 / 477 MB, free: 7.961 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.152e-06/0.1468, allocations: 0 / 477 MB, free: 7.961 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.675e-06/0.1468, allocations: 0 / 477 MB, free: 7.961 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.31e-07/0.1468, allocations: 0 / 477 MB, free: 7.961 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.795e-06/0.1468, allocations: 3.953 kB / 477 MB, free: 7.957 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.708e-05/0.1469, allocations: 102.7 kB / 477.1 MB, free: 7.832 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.397e-05/0.147, allocations: 77.11 kB / 477.2 MB, free: 7.738 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.41e-05/0.147, allocations: 4 kB / 477.2 MB, free: 7.734 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.057e-05/0.147, allocations: 4 kB / 477.2 MB, free: 7.73 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.571e-05/0.147, allocations: 0 / 477.2 MB, free: 7.73 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.67e-06/0.147, allocations: 3.953 kB / 477.2 MB, free: 7.727 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.96e-05/0.1471, allocations: 83.25 kB / 477.3 MB, free: 7.645 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1471, allocations: 0 / 477.3 MB, free: 7.645 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004156/0.1475, allocations: 124 kB / 477.4 MB, free: 7.523 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.0008041/0.1483, allocations: 305.1 kB / 477.7 MB, free: 7.223 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 9.51e-05/0.1484, allocations: 67.39 kB / 477.7 MB, free: 7.145 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.484e-06/0.1484, allocations: 0 / 477.7 MB, free: 7.145 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 4.137e-05/0.1485, allocations: 55.41 kB / 477.8 MB, free: 7.078 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001295/0.1486, allocations: 3.938 kB / 477.8 MB, free: 7.074 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002013/0.1488, allocations: 74.95 kB / 477.9 MB, free: 6.973 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000279/0.1491, allocations: 0.6731 MB / 478.5 MB, free: 6.273 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.212e-06/0.1491, allocations: 4.125 kB / 478.6 MB, free: 6.27 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.117e-05/0.1491, allocations: 7.438 kB / 478.6 MB, free: 6.262 MB / 350.1 MB Notification: Performance of SimCode: time 1.733e-06/0.1491, allocations: 4 kB / 478.6 MB, free: 6.258 MB / 350.1 MB Notification: Performance of Templates: time 0.007134/0.1563, allocations: 3.381 MB / 481.9 MB, free: 2.883 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","/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) Reference file matches