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.0008204/0.0008205, allocations: 93.22 kB / 17.35 MB, free: 6.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001002/0.001002, allocations: 201.9 kB / 18.28 MB, free: 5.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.396/1.396, allocations: 227.7 MB / 246.8 MB, free: 11.31 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2287/0.2287, allocations: 46.18 MB / 345.2 MB, free: 11.38 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003187/0.0003187, allocations: 8 kB / 419.5 MB, free: 19.74 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.141/0.1413, allocations: 63.56 MB / 483.1 MB, free: 4.164 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestSpecial): time 0.0005838/0.1419, allocations: 226.9 kB / 483.3 MB, free: 3.941 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002826/0.1448, allocations: 2.089 MB / 485.4 MB, free: 1.832 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.586e-06/0.1448, allocations: 0 / 485.4 MB, free: 1.832 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.055e-05/0.1448, allocations: 4 kB / 485.4 MB, free: 1.828 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.067e-06/0.1448, allocations: 0 / 485.4 MB, free: 1.828 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.001129/0.146, allocations: 410.3 kB / 485.8 MB, free: 1.43 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.334e-05/0.146, allocations: 4 kB / 485.8 MB, free: 1.426 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.705e-05/0.1461, allocations: 0 / 485.8 MB, free: 1.426 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.507e-05/0.1461, allocations: 0 / 485.8 MB, free: 1.426 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.451e-05/0.1461, allocations: 0 / 485.8 MB, free: 1.426 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.153e-06/0.1461, allocations: 0 / 485.8 MB, free: 1.426 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009538/0.1471, allocations: 0.6862 MB / 486.5 MB, free: 0.7383 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.993e-06/0.1471, allocations: 0 / 486.5 MB, free: 0.7383 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.265e-05/0.1471, allocations: 29.64 kB / 486.5 MB, free: 0.7031 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005004/0.1476, allocations: 403.5 kB / 486.9 MB, free: 316 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.417e-06/0.1476, allocations: 0 / 486.9 MB, free: 316 kB / 350.1 MB Notification: Performance of FrontEnd: time 3.516e-06/0.1477, allocations: 0 / 486.9 MB, free: 316 kB / 350.1 MB Notification: Performance of Transformations before backend: time 3.126e-06/0.1477, allocations: 7.938 kB / 486.9 MB, free: 308 kB / 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.0004105/0.1481, allocations: 405.2 kB / 487.3 MB, free: 15.85 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.765e-05/0.1481, allocations: 12.88 kB / 487.3 MB, free: 15.84 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.281e-05/0.1482, allocations: 0.9375 kB / 487.3 MB, free: 15.84 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.458e-05/0.1483, allocations: 160.4 kB / 487.5 MB, free: 15.64 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.318e-05/0.1483, allocations: 4.375 kB / 487.5 MB, free: 15.64 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.616e-06/0.1483, allocations: 384 / 487.5 MB, free: 15.64 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.252e-05/0.1484, allocations: 38 kB / 487.5 MB, free: 15.6 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.164e-06/0.1484, allocations: 0 / 487.5 MB, free: 15.6 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.288e-06/0.1484, allocations: 0 / 487.5 MB, free: 15.6 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.138e-06/0.1484, allocations: 0 / 487.5 MB, free: 15.6 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.692e-05/0.1484, allocations: 4 kB / 487.5 MB, free: 15.59 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001319/0.1486, allocations: 145.7 kB / 487.7 MB, free: 15.4 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.131e-05/0.1486, allocations: 26.55 kB / 487.7 MB, free: 15.37 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.482e-05/0.1486, allocations: 8.844 kB / 487.7 MB, free: 15.36 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.498e-06/0.1487, allocations: 0 / 487.7 MB, free: 15.36 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.097e-05/0.1487, allocations: 64.2 kB / 487.8 MB, free: 15.28 MB / 366.1 MB Notification: Performance of pre-optimization done (n=1): time 7.52e-07/0.1487, allocations: 0 / 487.8 MB, free: 15.28 MB / 366.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001602/0.1489, allocations: 71.39 kB / 487.8 MB, free: 15.2 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.824e-05/0.1489, allocations: 77.11 kB / 487.9 MB, free: 15.1 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.771e-05/0.149, allocations: 102 kB / 488 MB, free: 14.99 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.146e-05/0.149, allocations: 25.7 kB / 488 MB, free: 14.96 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.643e-05/0.149, allocations: 80.14 kB / 488.1 MB, free: 14.88 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.791e-05/0.149, allocations: 0 / 488.1 MB, free: 14.88 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.521e-05/0.1491, allocations: 9.719 kB / 488.1 MB, free: 14.86 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 8.79e-05/0.1492, allocations: 310.8 kB / 488.4 MB, free: 14.55 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.007e-05/0.1492, allocations: 4 kB / 488.4 MB, free: 14.55 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.348e-06/0.1492, allocations: 0 / 488.4 MB, free: 14.55 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.498e-05/0.1492, allocations: 68.33 kB / 488.5 MB, free: 14.46 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.986e-06/0.1493, allocations: 0 / 488.5 MB, free: 14.46 MB / 366.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.363e-05/0.1493, allocations: 75.2 kB / 488.6 MB, free: 14.38 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.001e-05/0.1494, allocations: 33.64 kB / 488.6 MB, free: 14.34 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.737e-06/0.1494, allocations: 0 / 488.6 MB, free: 14.34 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.768e-06/0.1494, allocations: 0 / 488.6 MB, free: 14.34 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.02e-07/0.1494, allocations: 0 / 488.6 MB, free: 14.34 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.389e-06/0.1494, allocations: 0 / 488.6 MB, free: 14.34 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.427e-05/0.1494, allocations: 0 / 488.6 MB, free: 14.34 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.021e-06/0.1494, allocations: 4 kB / 488.6 MB, free: 14.34 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 7.996e-05/0.1495, allocations: 143.6 kB / 488.7 MB, free: 14.18 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.003e-05/0.1495, allocations: 7.938 kB / 488.7 MB, free: 14.17 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.175e-06/0.1495, allocations: 3.125 kB / 488.7 MB, free: 14.17 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.72e-07/0.1495, allocations: 0 / 488.7 MB, free: 14.17 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.797e-06/0.1496, allocations: 0 / 488.7 MB, free: 14.17 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.216e-06/0.1496, allocations: 0 / 488.7 MB, free: 14.17 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.01e-05/0.1496, allocations: 141.7 kB / 488.9 MB, free: 13.98 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.41e-07/0.1497, allocations: 0 / 488.9 MB, free: 13.98 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.643e-06/0.1497, allocations: 7.984 kB / 488.9 MB, free: 13.98 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.424e-06/0.1497, allocations: 7.938 kB / 488.9 MB, free: 13.97 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.172e-06/0.1497, allocations: 0 / 488.9 MB, free: 13.97 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.32e-07/0.1497, allocations: 0 / 488.9 MB, free: 13.97 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.61e-07/0.1497, allocations: 0 / 488.9 MB, free: 13.97 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.518e-05/0.1498, allocations: 94.77 kB / 489 MB, free: 13.85 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.988e-05/0.1498, allocations: 85 kB / 489.1 MB, free: 13.75 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.214e-05/0.1498, allocations: 3.938 kB / 489.1 MB, free: 13.75 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.125e-06/0.1499, allocations: 0 / 489.1 MB, free: 13.75 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.049e-05/0.1499, allocations: 8.031 kB / 489.1 MB, free: 13.74 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.605e-06/0.1499, allocations: 0 / 489.1 MB, free: 13.74 MB / 366.1 MB Notification: Performance of sorting global known variables: time 2.516e-05/0.1499, allocations: 75.28 kB / 489.2 MB, free: 13.66 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1499, allocations: 0 / 489.2 MB, free: 13.66 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003603/0.1503, allocations: 132 kB / 489.3 MB, free: 13.54 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.0007682/0.1511, allocations: 312.9 kB / 489.6 MB, free: 13.22 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 8.642e-05/0.1512, allocations: 63.39 kB / 489.7 MB, free: 13.15 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.1512, allocations: 0 / 489.7 MB, free: 13.15 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 2.708e-05/0.1512, allocations: 55.41 kB / 489.7 MB, free: 13.08 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001161/0.1513, allocations: 0 / 489.7 MB, free: 13.08 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000158/0.1515, allocations: 82.83 kB / 489.8 MB, free: 12.97 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002009/0.1517, allocations: 0.6731 MB / 490.5 MB, free: 12.27 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 5.41e-06/0.1517, allocations: 0 / 490.5 MB, free: 12.27 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.183e-06/0.1517, allocations: 11.44 kB / 490.5 MB, free: 12.27 MB / 366.1 MB Notification: Performance of SimCode: time 2.1e-07/0.1517, allocations: 0 / 490.5 MB, free: 12.27 MB / 366.1 MB Notification: Performance of Templates: time 0.006649/0.1584, allocations: 3.495 MB / 494 MB, free: 8.773 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Math.Random.TestSpecial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches