Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_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 trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/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_trunk_ModelicaTest.Math.Random.TestSpecial") translateModel(ModelicaTest.Math.Random.TestSpecial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.Random.TestSpecial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000963/0.0009633, allocations: 98.22 kB / 16.99 MB, free: 5.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001044/0.001044, allocations: 206.3 kB / 17.9 MB, free: 5.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.451/1.451, allocations: 227.2 MB / 245.9 MB, free: 10.36 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2327/0.2327, allocations: 45.92 MB / 344 MB, free: 12.14 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002956/0.0002958, allocations: 8 kB / 417.9 MB, free: 20.89 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1446/0.1449, allocations: 63.46 MB / 481.4 MB, free: 5.426 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestSpecial): time 0.0006688/0.1456, allocations: 222.9 kB / 481.6 MB, free: 5.207 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002559/0.1482, allocations: 1.934 MB / 483.5 MB, free: 3.254 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.761e-05/0.1482, allocations: 0 / 483.5 MB, free: 3.254 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.198e-05/0.1483, allocations: 4 kB / 483.5 MB, free: 3.25 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.248e-06/0.1483, allocations: 0 / 483.5 MB, free: 3.25 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/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.001184/0.1495, allocations: 390.7 kB / 483.9 MB, free: 2.871 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.093e-05/0.1495, allocations: 0 / 483.9 MB, free: 2.871 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.78e-05/0.1495, allocations: 0 / 483.9 MB, free: 2.871 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.871e-05/0.1496, allocations: 11.88 kB / 483.9 MB, free: 2.859 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.854e-05/0.1496, allocations: 0 / 483.9 MB, free: 2.859 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.294e-06/0.1496, allocations: 0 / 483.9 MB, free: 2.859 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009025/0.1505, allocations: 0.6475 MB / 484.6 MB, free: 2.211 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.052e-06/0.1505, allocations: 3.938 kB / 484.6 MB, free: 2.207 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.957e-05/0.1506, allocations: 25.7 kB / 484.6 MB, free: 2.176 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003572/0.1509, allocations: 247.6 kB / 484.9 MB, free: 1.934 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.575e-06/0.1509, allocations: 0 / 484.9 MB, free: 1.934 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.994e-06/0.1509, allocations: 0 / 484.9 MB, free: 1.934 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.308e-06/0.1509, allocations: 0 / 484.9 MB, free: 1.934 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.0004091/0.1514, allocations: 409 kB / 485.2 MB, free: 1.48 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.134e-05/0.1514, allocations: 12.03 kB / 485.3 MB, free: 1.469 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.962e-05/0.1514, allocations: 0 / 485.3 MB, free: 1.469 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.947e-05/0.1515, allocations: 163 kB / 485.4 MB, free: 1.27 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.607e-05/0.1516, allocations: 7.938 kB / 485.4 MB, free: 1.262 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.939e-06/0.1516, allocations: 0 / 485.4 MB, free: 1.262 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.926e-05/0.1517, allocations: 41.69 kB / 485.5 MB, free: 1.215 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.913e-06/0.1517, allocations: 0 / 485.5 MB, free: 1.215 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.226e-06/0.1517, allocations: 0 / 485.5 MB, free: 1.215 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.422e-06/0.1517, allocations: 0 / 485.5 MB, free: 1.215 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.487e-05/0.1517, allocations: 0 / 485.5 MB, free: 1.215 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001498/0.1519, allocations: 149.6 kB / 485.6 MB, free: 1.02 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.892e-05/0.152, allocations: 22.52 kB / 485.6 MB, free: 0.9883 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.284e-06/0.152, allocations: 0 / 485.6 MB, free: 0.9883 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.647e-05/0.152, allocations: 68.34 kB / 485.7 MB, free: 0.9062 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.022e-06/0.152, allocations: 0 / 485.7 MB, free: 0.9062 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001816/0.1522, allocations: 59.41 kB / 485.8 MB, free: 0.8359 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.011e-05/0.1523, allocations: 77.11 kB / 485.8 MB, free: 0.7422 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.759e-05/0.1523, allocations: 89.86 kB / 485.9 MB, free: 0.6445 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.416e-05/0.1524, allocations: 25.7 kB / 486 MB, free: 0.6133 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.171e-05/0.1524, allocations: 88.25 kB / 486 MB, free: 0.5234 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.037e-05/0.1524, allocations: 0 / 486 MB, free: 0.5234 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.094e-06/0.1524, allocations: 0 / 486 MB, free: 0.5234 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001265/0.1526, allocations: 322.8 kB / 486.4 MB, free: 204 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.032e-05/0.1526, allocations: 0 / 486.4 MB, free: 204 kB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.208e-06/0.1526, allocations: 3.938 kB / 486.4 MB, free: 200 kB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.75e-05/0.1526, allocations: 29.7 kB / 486.4 MB, free: 164 kB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/0.1526, allocations: 0 / 486.4 MB, free: 164 kB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.9e-05/0.1527, allocations: 63.42 kB / 486.4 MB, free: 88 kB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.731e-05/0.1528, allocations: 37.69 kB / 486.5 MB, free: 44 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.09e-06/0.1528, allocations: 0 / 486.5 MB, free: 44 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.352e-05/0.1528, allocations: 0 / 486.5 MB, free: 44 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.112e-06/0.1528, allocations: 3.938 kB / 486.5 MB, free: 40 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.055e-05/0.1528, allocations: 3.984 kB / 486.5 MB, free: 36 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.524e-05/0.1528, allocations: 3.938 kB / 486.5 MB, free: 32 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.627e-06/0.1528, allocations: 4 kB / 486.5 MB, free: 28 kB / 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.0001091/0.153, allocations: 135.5 kB / 486.6 MB, free: 15.88 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.845e-06/0.153, allocations: 7.984 kB / 486.6 MB, free: 15.87 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.373e-05/0.153, allocations: 7.125 kB / 486.6 MB, free: 15.87 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.82e-07/0.153, allocations: 0 / 486.6 MB, free: 15.87 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.187e-06/0.153, allocations: 0 / 486.6 MB, free: 15.87 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.108e-06/0.153, allocations: 0 / 486.6 MB, free: 15.87 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001058/0.1531, allocations: 145.7 kB / 486.8 MB, free: 15.68 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.156e-06/0.1531, allocations: 0 / 486.8 MB, free: 15.68 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.71e-07/0.1531, allocations: 3.938 kB / 486.8 MB, free: 15.67 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.629e-06/0.1532, allocations: 7.953 kB / 486.8 MB, free: 15.66 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.975e-06/0.1532, allocations: 0 / 486.8 MB, free: 15.66 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.062e-06/0.1532, allocations: 0 / 486.8 MB, free: 15.66 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.61e-07/0.1532, allocations: 4 kB / 486.8 MB, free: 15.66 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.802e-05/0.1533, allocations: 94.73 kB / 486.9 MB, free: 15.54 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.663e-05/0.1533, allocations: 77.39 kB / 487 MB, free: 15.45 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.425e-05/0.1533, allocations: 3.953 kB / 487 MB, free: 15.45 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.025e-06/0.1534, allocations: 0 / 487 MB, free: 15.45 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.978e-05/0.1534, allocations: 11.97 kB / 487 MB, free: 15.43 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.565e-06/0.1534, allocations: 0 / 487 MB, free: 15.43 MB / 366.1 MB Notification: Performance of sorting global known variables: time 3.262e-05/0.1534, allocations: 79.31 kB / 487.1 MB, free: 15.36 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1534, allocations: 0 / 487.1 MB, free: 15.36 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003796/0.1538, allocations: 131.9 kB / 487.2 MB, free: 15.23 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 (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.0007879/0.1546, allocations: 313.1 kB / 487.5 MB, free: 14.91 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001057/0.1547, allocations: 63.34 kB / 487.6 MB, free: 14.84 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.1547, allocations: 0 / 487.6 MB, free: 14.84 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 3.729e-05/0.1548, allocations: 59.39 kB / 487.6 MB, free: 14.77 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.467e-05/0.1549, allocations: 0 / 487.6 MB, free: 14.77 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001857/0.1551, allocations: 74.77 kB / 487.7 MB, free: 14.67 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002939/0.1554, allocations: 0.6732 MB / 488.4 MB, free: 13.97 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 1.031e-05/0.1554, allocations: 8 kB / 488.4 MB, free: 13.96 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.218e-05/0.1554, allocations: 7.438 kB / 488.4 MB, free: 13.95 MB / 366.1 MB Notification: Performance of SimCode: time 2.11e-07/0.1554, allocations: 0 / 488.4 MB, free: 13.95 MB / 366.1 MB Notification: Performance of Templates: time 0.007178/0.1626, allocations: 3.561 MB / 491.9 MB, free: 10.39 MB / 366.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Math.Random.TestSpecial.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Math.Random.TestSpecial.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Math.Random.TestSpecial.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Math.Random.TestSpecial.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Math.Random.TestSpecial.sim & ./ModelicaTest_trunk_ModelicaTest.Math.Random.TestSpecial -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Math.Random.TestSpecial.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.Math.Random.TestSpecial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches