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.00132/0.001319, allocations: 104.2 kB / 17.63 MB, free: 5.523 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.001472/0.001472, allocations: 191.9 kB / 18.56 MB, free: 4.605 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.34/1.34, allocations: 222.9 MB / 242.2 MB, free: 15.21 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.207/0.207, allocations: 44.18 MB / 336.6 MB, free: 2.75 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001296/0.001296, allocations: 67.83 kB / 408.4 MB, free: 27.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1193/0.1206, allocations: 60.82 MB / 469.2 MB, free: 14.37 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestSpecial): time 0.001856/0.1225, allocations: 0.4918 MB / 469.7 MB, free: 13.88 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002712/0.1252, allocations: 1.991 MB / 471.7 MB, free: 11.86 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.984e-05/0.1253, allocations: 4 kB / 471.7 MB, free: 11.86 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.321e-05/0.1253, allocations: 0 / 471.7 MB, free: 11.86 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.42e-06/0.1253, allocations: 0 / 471.7 MB, free: 11.86 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.001521/0.1268, allocations: 0.494 MB / 472.2 MB, free: 11.37 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.719e-05/0.1269, allocations: 4 kB / 472.2 MB, free: 11.36 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.336e-05/0.1269, allocations: 4 kB / 472.2 MB, free: 11.36 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.353e-05/0.127, allocations: 0 / 472.2 MB, free: 11.36 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.526e-05/0.127, allocations: 0 / 472.2 MB, free: 11.36 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.071e-06/0.127, allocations: 0 / 472.2 MB, free: 11.36 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001035/0.128, allocations: 0.6239 MB / 472.9 MB, free: 10.73 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.963e-06/0.128, allocations: 3.938 kB / 472.9 MB, free: 10.73 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 1.841e-05/0.1281, allocations: 0 / 472.9 MB, free: 10.73 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006145/0.1287, allocations: 375.3 kB / 473.2 MB, free: 10.36 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.174e-06/0.1287, allocations: 4 kB / 473.2 MB, free: 10.36 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.803e-06/0.1287, allocations: 4 kB / 473.2 MB, free: 10.36 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.334e-06/0.1287, allocations: 0 / 473.2 MB, free: 10.36 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.0004389/0.1292, allocations: 401.3 kB / 473.6 MB, free: 9.91 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.446e-05/0.1292, allocations: 12.03 kB / 473.6 MB, free: 9.898 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.043e-05/0.1293, allocations: 4.938 kB / 473.6 MB, free: 9.895 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.9e-05/0.1294, allocations: 164.4 kB / 473.8 MB, free: 9.695 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.312e-05/0.1294, allocations: 4.359 kB / 473.8 MB, free: 9.691 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.063e-05/0.1294, allocations: 384 / 473.8 MB, free: 9.691 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.137e-05/0.1295, allocations: 37.95 kB / 473.8 MB, free: 9.648 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.661e-06/0.1295, allocations: 7.938 kB / 473.9 MB, free: 9.641 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.495e-06/0.1295, allocations: 0 / 473.9 MB, free: 9.641 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.308e-06/0.1295, allocations: 0 / 473.9 MB, free: 9.641 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.974e-05/0.1295, allocations: 4 kB / 473.9 MB, free: 9.637 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001271/0.1297, allocations: 146 kB / 474 MB, free: 9.445 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.252e-05/0.1297, allocations: 18.58 kB / 474 MB, free: 9.418 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.402e-05/0.1297, allocations: 8.953 kB / 474 MB, free: 9.406 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.984e-06/0.1298, allocations: 0 / 474 MB, free: 9.406 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.232e-05/0.1298, allocations: 72.12 kB / 474.1 MB, free: 9.32 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.042e-06/0.1298, allocations: 0 / 474.1 MB, free: 9.32 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001712/0.13, allocations: 63.39 kB / 474.2 MB, free: 9.246 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.66e-05/0.1301, allocations: 77.11 kB / 474.2 MB, free: 9.152 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.306e-05/0.1301, allocations: 97.86 kB / 474.3 MB, free: 9.047 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.113e-05/0.1301, allocations: 25.7 kB / 474.4 MB, free: 9.016 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.197e-05/0.1302, allocations: 80.14 kB / 474.4 MB, free: 8.934 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.7e-05/0.1302, allocations: 8.062 kB / 474.4 MB, free: 8.926 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.557e-05/0.1302, allocations: 9.719 kB / 474.5 MB, free: 8.91 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001108/0.1303, allocations: 314.8 kB / 474.8 MB, free: 8.594 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.968e-06/0.1303, allocations: 0 / 474.8 MB, free: 8.594 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.7e-06/0.1303, allocations: 0 / 474.8 MB, free: 8.594 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.705e-05/0.1304, allocations: 72.19 kB / 474.8 MB, free: 8.508 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.1304, allocations: 0 / 474.8 MB, free: 8.508 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.755e-05/0.1305, allocations: 59.41 kB / 474.9 MB, free: 8.438 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.769e-05/0.1306, allocations: 37.73 kB / 474.9 MB, free: 8.395 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.119e-06/0.1306, allocations: 0 / 474.9 MB, free: 8.395 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.216e-05/0.1306, allocations: 0 / 474.9 MB, free: 8.395 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.603e-06/0.1306, allocations: 4 kB / 474.9 MB, free: 8.391 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.534e-06/0.1306, allocations: 3.984 kB / 474.9 MB, free: 8.387 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.965e-05/0.1307, allocations: 0 / 474.9 MB, free: 8.387 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.925e-06/0.1307, allocations: 3.938 kB / 474.9 MB, free: 8.383 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.679e-05/0.1308, allocations: 135.5 kB / 475.1 MB, free: 8.234 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.031e-05/0.1308, allocations: 3.938 kB / 475.1 MB, free: 8.23 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.264e-05/0.1308, allocations: 11.08 kB / 475.1 MB, free: 8.219 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.953e-06/0.1308, allocations: 0 / 475.1 MB, free: 8.219 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.097e-06/0.1308, allocations: 0 / 475.1 MB, free: 8.219 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.817e-06/0.1308, allocations: 0 / 475.1 MB, free: 8.219 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001207/0.131, allocations: 157.6 kB / 475.2 MB, free: 8.016 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.765e-06/0.131, allocations: 0 / 475.2 MB, free: 8.016 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.31e-07/0.131, allocations: 3.938 kB / 475.2 MB, free: 8.012 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.601e-06/0.131, allocations: 7.938 kB / 475.3 MB, free: 8.004 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.623e-06/0.131, allocations: 0 / 475.3 MB, free: 8.004 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.203e-06/0.131, allocations: 0 / 475.3 MB, free: 8.004 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.131, allocations: 0 / 475.3 MB, free: 8.004 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001093/0.1311, allocations: 98.73 kB / 475.3 MB, free: 7.883 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.833e-05/0.1312, allocations: 77.11 kB / 475.4 MB, free: 7.789 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.825e-05/0.1312, allocations: 7.938 kB / 475.4 MB, free: 7.781 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.027e-05/0.1312, allocations: 0 / 475.4 MB, free: 7.781 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.797e-05/0.1312, allocations: 0 / 475.4 MB, free: 7.781 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.665e-06/0.1313, allocations: 0 / 475.4 MB, free: 7.781 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.444e-05/0.1313, allocations: 79.31 kB / 475.5 MB, free: 7.703 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1313, allocations: 4.031 kB / 475.5 MB, free: 7.699 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004978/0.1318, allocations: 124 kB / 475.6 MB, free: 7.578 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.0008443/0.1327, allocations: 300 kB / 475.9 MB, free: 7.285 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001176/0.1328, allocations: 63.33 kB / 476 MB, free: 7.211 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/0.1328, allocations: 0 / 476 MB, free: 7.211 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.492e-05/0.1328, allocations: 55.41 kB / 476 MB, free: 7.145 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001233/0.133, allocations: 0 / 476 MB, free: 7.145 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001778/0.1331, allocations: 80.94 kB / 476.1 MB, free: 7.039 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002301/0.1334, allocations: 0.6806 MB / 476.8 MB, free: 6.332 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.38e-06/0.1334, allocations: 8.062 kB / 476.8 MB, free: 6.324 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.594e-05/0.1334, allocations: 7.438 kB / 476.8 MB, free: 6.316 MB / 350.1 MB Notification: Performance of SimCode: time 2.11e-07/0.1334, allocations: 0 / 476.8 MB, free: 6.316 MB / 350.1 MB Notification: Performance of Templates: time 0.00733/0.1408, allocations: 3.373 MB / 480.2 MB, free: 2.945 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 -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/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_4.0.0_ModelicaTest.Math.Random.TestSpecial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches