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.001292/0.001292, allocations: 107.1 kB / 18.39 MB, free: 4.629 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.001281/0.001281, allocations: 184.1 kB / 19.33 MB, free: 3.699 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.432/1.432, allocations: 222.9 MB / 243 MB, free: 15.08 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.2209/0.2209, allocations: 44.18 MB / 337.4 MB, free: 2.691 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001258/0.001258, allocations: 60.06 kB / 409.9 MB, free: 26.53 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1322/0.1335, allocations: 60.83 MB / 470.7 MB, free: 13.65 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestSpecial): time 0.002091/0.1357, allocations: 0.4949 MB / 471.2 MB, free: 13.16 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002969/0.1387, allocations: 1.995 MB / 473.2 MB, free: 11.14 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.283e-05/0.1387, allocations: 0 / 473.2 MB, free: 11.14 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.269e-05/0.1387, allocations: 7.938 kB / 473.2 MB, free: 11.13 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.22e-06/0.1388, allocations: 0 / 473.2 MB, free: 11.13 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.00151/0.1403, allocations: 493.1 kB / 473.7 MB, free: 10.65 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 7.083e-05/0.1403, allocations: 0 / 473.7 MB, free: 10.65 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.999e-05/0.1404, allocations: 4 kB / 473.7 MB, free: 10.65 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.241e-05/0.1404, allocations: 0 / 473.7 MB, free: 10.65 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.579e-05/0.1405, allocations: 11.98 kB / 473.7 MB, free: 10.64 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.07e-05/0.1405, allocations: 0 / 473.7 MB, free: 10.64 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001127/0.1416, allocations: 0.6201 MB / 474.3 MB, free: 10.02 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.295e-06/0.1417, allocations: 0 / 474.3 MB, free: 10.02 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.234e-05/0.1417, allocations: 3.984 kB / 474.3 MB, free: 10.01 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006096/0.1423, allocations: 379.3 kB / 474.7 MB, free: 9.641 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.128e-06/0.1423, allocations: 0 / 474.7 MB, free: 9.641 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.823e-06/0.1423, allocations: 0 / 474.7 MB, free: 9.641 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.185e-06/0.1423, allocations: 0 / 474.7 MB, free: 9.641 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.0004362/0.1428, allocations: 401.3 kB / 475.1 MB, free: 9.195 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.538e-05/0.1428, allocations: 12.03 kB / 475.1 MB, free: 9.184 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.387e-05/0.1429, allocations: 4.922 kB / 475.1 MB, free: 9.18 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001228/0.143, allocations: 160.4 kB / 475.3 MB, free: 8.984 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.432e-05/0.143, allocations: 8.312 kB / 475.3 MB, free: 8.977 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.342e-05/0.143, allocations: 384 / 475.3 MB, free: 8.977 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001442/0.1432, allocations: 34.02 kB / 475.3 MB, free: 8.938 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.075e-06/0.1432, allocations: 0 / 475.3 MB, free: 8.938 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.305e-05/0.1432, allocations: 0 / 475.3 MB, free: 8.938 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.185e-06/0.1432, allocations: 0 / 475.3 MB, free: 8.938 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.566e-05/0.1433, allocations: 3.938 kB / 475.3 MB, free: 8.934 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001811/0.1434, allocations: 153.7 kB / 475.4 MB, free: 8.734 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.382e-05/0.1435, allocations: 22.52 kB / 475.5 MB, free: 8.703 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.46e-05/0.1436, allocations: 16.88 kB / 475.5 MB, free: 8.684 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.081e-05/0.1436, allocations: 0 / 475.5 MB, free: 8.684 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.128e-05/0.1437, allocations: 64.2 kB / 475.6 MB, free: 8.605 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 8.51e-07/0.1437, allocations: 0 / 475.6 MB, free: 8.605 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002438/0.1439, allocations: 63.39 kB / 475.6 MB, free: 8.531 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.425e-05/0.144, allocations: 81.11 kB / 475.7 MB, free: 8.434 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.229e-05/0.1441, allocations: 89.98 kB / 475.8 MB, free: 8.336 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.689e-05/0.1441, allocations: 29.7 kB / 475.8 MB, free: 8.301 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.697e-05/0.1442, allocations: 84.14 kB / 475.9 MB, free: 8.215 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.934e-05/0.1442, allocations: 3.938 kB / 475.9 MB, free: 8.211 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.947e-05/0.1442, allocations: 9.719 kB / 475.9 MB, free: 8.195 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001354/0.1444, allocations: 314.8 kB / 476.2 MB, free: 7.879 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.352e-05/0.1444, allocations: 4 kB / 476.2 MB, free: 7.875 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.727e-06/0.1444, allocations: 3.984 kB / 476.2 MB, free: 7.871 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.672e-05/0.1445, allocations: 68.33 kB / 476.3 MB, free: 7.789 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.923e-06/0.1445, allocations: 0 / 476.3 MB, free: 7.789 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.687e-05/0.1446, allocations: 59.41 kB / 476.3 MB, free: 7.719 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.542e-05/0.1446, allocations: 33.64 kB / 476.4 MB, free: 7.68 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.205e-06/0.1446, allocations: 3.984 kB / 476.4 MB, free: 7.676 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.411e-05/0.1446, allocations: 0 / 476.4 MB, free: 7.676 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.352e-06/0.1446, allocations: 0 / 476.4 MB, free: 7.676 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.909e-06/0.1447, allocations: 0 / 476.4 MB, free: 7.676 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.804e-05/0.1447, allocations: 4 kB / 476.4 MB, free: 7.672 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.444e-06/0.1447, allocations: 3.938 kB / 476.4 MB, free: 7.668 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.312e-05/0.1448, allocations: 139.6 kB / 476.5 MB, free: 7.516 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.047e-06/0.1448, allocations: 7.938 kB / 476.5 MB, free: 7.508 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.231e-05/0.1448, allocations: 7.078 kB / 476.5 MB, free: 7.5 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.552e-06/0.1448, allocations: 0 / 476.5 MB, free: 7.5 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.098e-06/0.1448, allocations: 0 / 476.5 MB, free: 7.5 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.494e-06/0.1449, allocations: 0 / 476.5 MB, free: 7.5 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.587e-05/0.145, allocations: 145.7 kB / 476.7 MB, free: 7.309 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.51e-07/0.145, allocations: 4 kB / 476.7 MB, free: 7.305 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.805e-06/0.145, allocations: 0 / 476.7 MB, free: 7.305 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.897e-06/0.145, allocations: 11.88 kB / 476.7 MB, free: 7.293 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.522e-06/0.145, allocations: 0 / 476.7 MB, free: 7.293 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.62e-07/0.145, allocations: 0 / 476.7 MB, free: 7.293 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.72e-07/0.145, allocations: 0 / 476.7 MB, free: 7.293 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001177/0.1451, allocations: 94.73 kB / 476.8 MB, free: 7.176 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.002e-05/0.1452, allocations: 77.11 kB / 476.9 MB, free: 7.082 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.43e-05/0.1452, allocations: 3.938 kB / 476.9 MB, free: 7.078 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.416e-06/0.1452, allocations: 4 kB / 476.9 MB, free: 7.074 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.755e-05/0.1452, allocations: 7.969 kB / 476.9 MB, free: 7.066 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.248e-06/0.1452, allocations: 7.922 kB / 476.9 MB, free: 7.059 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.79e-05/0.1453, allocations: 79.31 kB / 477 MB, free: 6.98 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1453, allocations: 0 / 477 MB, free: 6.98 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003761/0.1457, allocations: 120 kB / 477.1 MB, free: 6.863 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 (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.0007506/0.1464, allocations: 304.4 kB / 477.4 MB, free: 6.562 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001053/0.1466, allocations: 63.39 kB / 477.4 MB, free: 6.488 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.1466, allocations: 0 / 477.4 MB, free: 6.488 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.276e-05/0.1466, allocations: 55.41 kB / 477.5 MB, free: 6.422 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001291/0.1467, allocations: 4 kB / 477.5 MB, free: 6.418 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002675/0.147, allocations: 85.05 kB / 477.6 MB, free: 6.309 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003933/0.1474, allocations: 0.669 MB / 478.3 MB, free: 5.613 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.78e-06/0.1474, allocations: 4 kB / 478.3 MB, free: 5.609 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.465e-05/0.1475, allocations: 7.438 kB / 478.3 MB, free: 5.602 MB / 350.1 MB Notification: Performance of SimCode: time 1.643e-06/0.1475, allocations: 3.938 kB / 478.3 MB, free: 5.598 MB / 350.1 MB Notification: Performance of Templates: time 0.006993/0.1545, allocations: 3.373 MB / 481.6 MB, free: 2.23 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 -s cvode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/Random/TestSpecial/TestSpecial.csv","/var/lib/jenkins1/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