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.001448/0.001448, allocations: 107.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.00177/0.00177, 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.443/1.443, allocations: 227.4 MB / 246.3 MB, free: 9.055 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.11 MB / 343.6 MB, free: 11.58 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001459/0.00146, allocations: 75.56 kB / 416.8 MB, free: 20.16 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1247/0.1262, allocations: 62.44 MB / 479.3 MB, free: 5.715 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestSpecial): time 0.001962/0.1282, allocations: 0.5759 MB / 479.9 MB, free: 5.133 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0033/0.1315, allocations: 2.101 MB / 482 MB, free: 3.012 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.325e-05/0.1316, allocations: 0 / 482 MB, free: 3.012 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 2.176e-05/0.1316, allocations: 4 kB / 482 MB, free: 3.008 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.62e-06/0.1316, allocations: 0 / 482 MB, free: 3.008 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.00121/0.1329, allocations: 414.6 kB / 482.4 MB, free: 2.605 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.645e-05/0.1329, allocations: 0 / 482.4 MB, free: 2.605 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.338e-05/0.133, allocations: 4 kB / 482.4 MB, free: 2.602 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.451e-05/0.133, allocations: 0 / 482.4 MB, free: 2.602 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.668e-05/0.133, allocations: 0 / 482.4 MB, free: 2.602 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.855e-06/0.133, allocations: 0 / 482.4 MB, free: 2.602 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001056/0.1341, allocations: 0.6901 MB / 483.1 MB, free: 1.91 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.438e-06/0.1341, allocations: 0 / 483.1 MB, free: 1.91 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.546e-05/0.1341, allocations: 0 / 483.1 MB, free: 1.91 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006221/0.1348, allocations: 403.5 kB / 483.5 MB, free: 1.516 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/0.1348, allocations: 0 / 483.5 MB, free: 1.516 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.946e-06/0.1348, allocations: 0 / 483.5 MB, free: 1.516 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.749e-06/0.1348, allocations: 3.938 kB / 483.5 MB, free: 1.512 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.0005366/0.1353, allocations: 413.2 kB / 483.9 MB, free: 1.055 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.008e-05/0.1354, allocations: 8.875 kB / 483.9 MB, free: 1.047 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.706e-05/0.1354, allocations: 0.9375 kB / 483.9 MB, free: 1.047 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.431e-05/0.1355, allocations: 160.4 kB / 484 MB, free: 0.8516 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.181e-05/0.1355, allocations: 384 / 484 MB, free: 0.8516 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.848e-06/0.1355, allocations: 4.375 kB / 484 MB, free: 0.8477 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.659e-05/0.1356, allocations: 38 kB / 484.1 MB, free: 0.8047 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.544e-06/0.1357, allocations: 0 / 484.1 MB, free: 0.8047 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.856e-06/0.1357, allocations: 0 / 484.1 MB, free: 0.8047 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.478e-06/0.1357, allocations: 4 kB / 484.1 MB, free: 0.8008 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.84e-05/0.1357, allocations: 0 / 484.1 MB, free: 0.8008 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001318/0.1358, allocations: 145.7 kB / 484.2 MB, free: 0.6094 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.495e-05/0.1359, allocations: 26.53 kB / 484.2 MB, free: 0.5742 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.604e-05/0.1359, allocations: 8.859 kB / 484.3 MB, free: 0.5625 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.689e-06/0.1359, allocations: 3.938 kB / 484.3 MB, free: 0.5586 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.561e-05/0.136, allocations: 60.2 kB / 484.3 MB, free: 496 kB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 9.92e-07/0.136, allocations: 4.062 kB / 484.3 MB, free: 492 kB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.000167/0.1362, allocations: 59.41 kB / 484.4 MB, free: 420 kB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.984e-05/0.1362, allocations: 89.03 kB / 484.5 MB, free: 312 kB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.175e-05/0.1363, allocations: 93.8 kB / 484.6 MB, free: 208 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.153e-05/0.1363, allocations: 25.7 kB / 484.6 MB, free: 176 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.563e-05/0.1363, allocations: 84.27 kB / 484.7 MB, free: 88 kB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.809e-05/0.1364, allocations: 0 / 484.7 MB, free: 88 kB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.973e-05/0.1364, allocations: 13.72 kB / 484.7 MB, free: 68 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002265/0.1366, allocations: 314.8 kB / 485 MB, free: 15.75 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.103e-05/0.1366, allocations: 0 / 485 MB, free: 15.75 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.839e-06/0.1367, allocations: 0 / 485 MB, free: 15.75 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.54e-05/0.1367, allocations: 60.27 kB / 485 MB, free: 15.68 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.668e-06/0.1367, allocations: 8.062 kB / 485.1 MB, free: 15.67 MB / 366.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.756e-05/0.1368, allocations: 63.39 kB / 485.1 MB, free: 15.59 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001231/0.1369, allocations: 41.58 kB / 485.2 MB, free: 15.55 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.478e-06/0.1369, allocations: 0 / 485.2 MB, free: 15.55 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.495e-05/0.137, allocations: 0 / 485.2 MB, free: 15.55 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.184e-06/0.137, allocations: 3.984 kB / 485.2 MB, free: 15.54 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.209e-06/0.137, allocations: 0 / 485.2 MB, free: 15.54 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.75e-05/0.137, allocations: 0 / 485.2 MB, free: 15.54 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.364e-06/0.137, allocations: 0 / 485.2 MB, free: 15.54 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 8.301e-05/0.1371, allocations: 147.6 kB / 485.3 MB, free: 15.38 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.827e-06/0.1371, allocations: 3.938 kB / 485.3 MB, free: 15.38 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.456e-06/0.1371, allocations: 3.125 kB / 485.3 MB, free: 15.38 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.132e-06/0.1371, allocations: 0 / 485.3 MB, free: 15.38 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.189e-06/0.1371, allocations: 0 / 485.3 MB, free: 15.38 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.755e-06/0.1371, allocations: 4 kB / 485.3 MB, free: 15.38 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.424e-05/0.1372, allocations: 145.7 kB / 485.5 MB, free: 15.18 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.22e-07/0.1373, allocations: 0 / 485.5 MB, free: 15.18 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.7e-07/0.1373, allocations: 0 / 485.5 MB, free: 15.18 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.745e-06/0.1373, allocations: 3.938 kB / 485.5 MB, free: 15.18 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.153e-06/0.1373, allocations: 0 / 485.5 MB, free: 15.18 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.11e-07/0.1373, allocations: 8 kB / 485.5 MB, free: 15.17 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.01e-07/0.1373, allocations: 0 / 485.5 MB, free: 15.17 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001811/0.1375, allocations: 90.77 kB / 485.6 MB, free: 15.06 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.815e-05/0.1375, allocations: 85.02 kB / 485.6 MB, free: 14.96 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.361e-05/0.1375, allocations: 3.938 kB / 485.6 MB, free: 14.95 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.486e-06/0.1376, allocations: 0 / 485.6 MB, free: 14.95 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.449e-05/0.1376, allocations: 3.984 kB / 485.7 MB, free: 14.95 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.12e-06/0.1376, allocations: 11.97 kB / 485.7 MB, free: 14.94 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001561/0.1378, allocations: 83.22 kB / 485.7 MB, free: 14.86 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1378, allocations: 0 / 485.7 MB, free: 14.86 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003898/0.1382, allocations: 124 kB / 485.9 MB, free: 14.73 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.0007785/0.1389, allocations: 303.3 kB / 486.2 MB, free: 14.43 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 9.581e-05/0.139, allocations: 63.41 kB / 486.2 MB, free: 14.36 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.384e-06/0.1391, allocations: 0 / 486.2 MB, free: 14.36 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 2.824e-05/0.1391, allocations: 55.41 kB / 486.3 MB, free: 14.29 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001252/0.1392, allocations: 3.984 kB / 486.3 MB, free: 14.29 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001931/0.1394, allocations: 94.75 kB / 486.4 MB, free: 14.17 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002256/0.1397, allocations: 0.6692 MB / 487 MB, free: 13.47 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 5.981e-06/0.1397, allocations: 0 / 487 MB, free: 13.47 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.238e-06/0.1397, allocations: 11.44 kB / 487.1 MB, free: 13.46 MB / 366.1 MB Notification: Performance of SimCode: time 2.1e-07/0.1397, allocations: 0 / 487.1 MB, free: 13.46 MB / 366.1 MB Notification: Performance of Templates: time 0.007077/0.1468, allocations: 3.497 MB / 490.6 MB, free: 9.969 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