Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestSpecial.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.Math.Random.TestSpecial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestSpecial") translateModel(ModelicaTest.Math.Random.TestSpecial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestSpecial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001534/0.001534, allocations: 108.5 kB / 17.21 MB, free: 6.266 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001827/0.001827, allocations: 209.7 kB / 18.14 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.461/1.461, allocations: 227.4 MB / 246.3 MB, free: 10.79 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2336/0.2336, allocations: 46.11 MB / 343.7 MB, free: 11.77 MB / 286.1 MB Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002343/0.002343, allocations: 84.33 kB / 416.9 MB, free: 20.14 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1178/0.1202, allocations: 62.45 MB / 479.4 MB, free: 5.672 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestSpecial): time 0.001788/0.122, allocations: 0.5604 MB / 479.9 MB, free: 5.105 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003131/0.1251, allocations: 2.101 MB / 482 MB, free: 2.984 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.18e-05/0.1252, allocations: 0 / 482 MB, free: 2.984 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.432e-05/0.1252, allocations: 0 / 482 MB, free: 2.984 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.589e-06/0.1252, allocations: 3.938 kB / 482 MB, free: 2.98 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.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.001339/0.1266, allocations: 409.9 kB / 482.4 MB, free: 2.582 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.546e-05/0.1266, allocations: 0 / 482.4 MB, free: 2.582 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.33e-05/0.1267, allocations: 3.984 kB / 482.4 MB, free: 2.578 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.738e-05/0.1267, allocations: 4 kB / 482.4 MB, free: 2.574 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.94e-05/0.1267, allocations: 4 kB / 482.5 MB, free: 2.57 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.283e-06/0.1267, allocations: 3.938 kB / 482.5 MB, free: 2.566 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001176/0.1279, allocations: 0.6823 MB / 483.1 MB, free: 1.883 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.037e-06/0.1279, allocations: 4 kB / 483.1 MB, free: 1.879 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.777e-05/0.128, allocations: 4 kB / 483.1 MB, free: 1.875 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006738/0.1286, allocations: 399.4 kB / 483.5 MB, free: 1.484 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.479e-06/0.1287, allocations: 3.938 kB / 483.5 MB, free: 1.48 MB / 350.1 MB Notification: Performance of FrontEnd: time 9.12e-07/0.1287, allocations: 0 / 483.5 MB, free: 1.48 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.215e-06/0.1287, allocations: 0 / 483.5 MB, free: 1.48 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.0005743/0.1293, allocations: 413.3 kB / 483.9 MB, free: 1.023 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.883e-05/0.1293, allocations: 12.88 kB / 484 MB, free: 1.012 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.243e-05/0.1294, allocations: 0.9375 kB / 484 MB, free: 1.012 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001623/0.1295, allocations: 160.4 kB / 484.1 MB, free: 0.8164 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.327e-05/0.1296, allocations: 384 / 484.1 MB, free: 0.8164 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.753e-05/0.1296, allocations: 384 / 484.1 MB, free: 0.8164 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001244/0.1297, allocations: 37.95 kB / 484.2 MB, free: 0.7734 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.041e-05/0.1297, allocations: 0 / 484.2 MB, free: 0.7734 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.498e-06/0.1298, allocations: 0 / 484.2 MB, free: 0.7734 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.479e-06/0.1298, allocations: 4 kB / 484.2 MB, free: 0.7695 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.354e-05/0.1298, allocations: 8 kB / 484.2 MB, free: 0.7617 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001969/0.13, allocations: 145.7 kB / 484.3 MB, free: 0.5703 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.497e-05/0.1301, allocations: 14.58 kB / 484.3 MB, free: 0.5469 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.107e-05/0.1301, allocations: 8.953 kB / 484.3 MB, free: 0.5352 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.899e-06/0.1301, allocations: 0 / 484.3 MB, free: 0.5352 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.497e-05/0.1302, allocations: 68.2 kB / 484.4 MB, free: 464 kB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 3.396e-06/0.1302, allocations: 3.938 kB / 484.4 MB, free: 460 kB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002144/0.1304, allocations: 67.33 kB / 484.5 MB, free: 380 kB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.78e-05/0.1305, allocations: 77.11 kB / 484.5 MB, free: 284 kB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.506e-05/0.1306, allocations: 89.86 kB / 484.6 MB, free: 184 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.908e-05/0.1306, allocations: 29.7 kB / 484.7 MB, free: 148 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.387e-05/0.1306, allocations: 80.14 kB / 484.7 MB, free: 64 kB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.892e-05/0.1307, allocations: 0 / 484.7 MB, free: 64 kB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.499e-05/0.1307, allocations: 13.84 kB / 484.7 MB, free: 44 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001994/0.1309, allocations: 322.8 kB / 485.1 MB, free: 15.72 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.135e-05/0.1309, allocations: 3.938 kB / 485.1 MB, free: 15.71 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.541e-06/0.1309, allocations: 0 / 485.1 MB, free: 15.71 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.932e-05/0.131, allocations: 68.2 kB / 485.1 MB, free: 15.63 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.131, allocations: 0 / 485.1 MB, free: 15.63 MB / 366.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.999e-05/0.1311, allocations: 63.41 kB / 485.2 MB, free: 15.56 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.939e-05/0.1312, allocations: 37.62 kB / 485.2 MB, free: 15.52 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.047e-06/0.1312, allocations: 4.094 kB / 485.2 MB, free: 15.51 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.327e-05/0.1312, allocations: 0 / 485.2 MB, free: 15.51 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.02e-07/0.1312, allocations: 0 / 485.2 MB, free: 15.51 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.438e-06/0.1312, allocations: 4 kB / 485.2 MB, free: 15.51 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.621e-05/0.1312, allocations: 0 / 485.2 MB, free: 15.51 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.973e-06/0.1312, allocations: 0 / 485.2 MB, free: 15.51 MB / 366.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.000125/0.1314, allocations: 135.5 kB / 485.4 MB, free: 15.36 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.014e-05/0.1314, allocations: 3.938 kB / 485.4 MB, free: 15.36 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.688e-06/0.1314, allocations: 7.109 kB / 485.4 MB, free: 15.35 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.022e-06/0.1314, allocations: 4 kB / 485.4 MB, free: 15.35 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.977e-06/0.1314, allocations: 0 / 485.4 MB, free: 15.35 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.308e-06/0.1314, allocations: 3.984 kB / 485.4 MB, free: 15.34 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001093/0.1315, allocations: 145.7 kB / 485.5 MB, free: 15.15 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.62e-07/0.1315, allocations: 0 / 485.5 MB, free: 15.15 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.878e-06/0.1316, allocations: 0 / 485.5 MB, free: 15.15 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.075e-06/0.1316, allocations: 7.875 kB / 485.5 MB, free: 15.14 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.712e-06/0.1316, allocations: 0 / 485.5 MB, free: 15.14 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.31e-07/0.1316, allocations: 0 / 485.5 MB, free: 15.14 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.01e-07/0.1316, allocations: 0 / 485.5 MB, free: 15.14 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001125/0.1317, allocations: 98.83 kB / 485.6 MB, free: 15.02 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.406e-05/0.1317, allocations: 81.02 kB / 485.7 MB, free: 14.93 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.206e-05/0.1318, allocations: 7.938 kB / 485.7 MB, free: 14.92 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.135e-06/0.1318, allocations: 3.938 kB / 485.7 MB, free: 14.91 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.805e-05/0.1318, allocations: 3.984 kB / 485.7 MB, free: 14.91 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.675e-06/0.1318, allocations: 0 / 485.7 MB, free: 14.91 MB / 366.1 MB Notification: Performance of sorting global known variables: time 3.885e-05/0.1319, allocations: 75.28 kB / 485.8 MB, free: 14.84 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1319, allocations: 0 / 485.8 MB, free: 14.84 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004451/0.1323, allocations: 128 kB / 485.9 MB, free: 14.71 MB / 366.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.0009624/0.1333, allocations: 313.7 kB / 486.2 MB, free: 14.4 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001185/0.1334, allocations: 67.34 kB / 486.3 MB, free: 14.32 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.1334, allocations: 0 / 486.3 MB, free: 14.32 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 4.867e-05/0.1335, allocations: 59.39 kB / 486.4 MB, free: 14.25 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001332/0.1336, allocations: 0 / 486.4 MB, free: 14.25 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002112/0.1339, allocations: 82.7 kB / 486.4 MB, free: 14.14 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003167/0.1342, allocations: 0.6692 MB / 487.1 MB, free: 13.45 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 5.38e-06/0.1342, allocations: 0 / 487.1 MB, free: 13.45 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.075e-05/0.1342, allocations: 11.44 kB / 487.1 MB, free: 13.44 MB / 366.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1342, allocations: 4.125 kB / 487.1 MB, free: 13.44 MB / 366.1 MB Notification: Performance of Templates: time 0.009788/0.144, allocations: 3.506 MB / 490.6 MB, free: 9.934 MB / 366.1 MB make -j1 -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestSpecial.makefile (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestSpecial.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestSpecial.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestSpecial.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestSpecial.sim & ./ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestSpecial -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestSpecial.pipe 2>&1) diffSimulationResults("ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestSpecial_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Math/Random/TestSpecial/TestSpecial.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestSpecial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches