Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Math.Random.TestSpecial.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(ModelicaTest.Math.Random.TestSpecial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Math.Random.TestSpecial") translateModel(ModelicaTest.Math.Random.TestSpecial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Math.Random.TestSpecial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001408/0.001409, allocations: 177.1 kB / 16.41 MB, free: 5.727 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.613/1.613, allocations: 205.4 MB / 222.5 MB, free: 9.113 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007565/0.0007565, allocations: 95.83 kB / 270.9 MB, free: 8.352 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3176/0.3176, allocations: 43.56 MB / 362.7 MB, free: 51.84 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003764/0.0003765, allocations: 8 kB / 431.4 MB, free: 5.93 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1171/0.1175, allocations: 58.86 MB / 490.2 MB, free: 10.98 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestSpecial): time 0.0006571/0.1183, allocations: 244.3 kB / 490.5 MB, free: 10.75 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.002755/0.121, allocations: 1.931 MB / 492.4 MB, free: 8.793 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.391e-05/0.1211, allocations: 0 / 492.4 MB, free: 8.793 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 1.127e-05/0.1211, allocations: 0 / 492.4 MB, free: 8.793 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 7.083e-06/0.1211, allocations: 0 / 492.4 MB, free: 8.793 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001396/0.1225, allocations: 399.1 kB / 492.8 MB, free: 8.402 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 3.168e-05/0.1226, allocations: 4 kB / 492.8 MB, free: 8.398 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.138e-05/0.1226, allocations: 4 kB / 492.8 MB, free: 8.395 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.607e-05/0.1226, allocations: 0 / 492.8 MB, free: 8.395 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 1.681e-05/0.1226, allocations: 0 / 492.8 MB, free: 8.395 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 6.662e-06/0.1227, allocations: 0 / 492.8 MB, free: 8.395 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001139/0.1238, allocations: 0.6629 MB / 493.5 MB, free: 7.73 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 7.674e-06/0.1238, allocations: 0 / 493.5 MB, free: 7.73 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 4.062e-05/0.1239, allocations: 29.64 kB / 493.5 MB, free: 7.695 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005081/0.1244, allocations: 239.6 kB / 493.7 MB, free: 7.461 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.269e-06/0.1244, allocations: 0 / 493.7 MB, free: 7.461 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.064e-06/0.1244, allocations: 4 kB / 493.7 MB, free: 7.457 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.23e-06/0.1244, allocations: 0 / 493.7 MB, free: 7.457 MB / 378.7 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.0005206/0.1249, allocations: 408.7 kB / 494.1 MB, free: 7.008 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.785e-05/0.125, allocations: 8.031 kB / 494.1 MB, free: 7 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.539e-05/0.125, allocations: 3.953 kB / 494.1 MB, free: 6.996 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.556e-05/0.1251, allocations: 159.1 kB / 494.3 MB, free: 6.801 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.835e-05/0.1252, allocations: 3.938 kB / 494.3 MB, free: 6.797 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.137e-06/0.1252, allocations: 7.938 kB / 494.3 MB, free: 6.789 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.743e-05/0.1253, allocations: 33.69 kB / 494.3 MB, free: 6.75 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.632e-06/0.1253, allocations: 4 kB / 494.3 MB, free: 6.746 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.395e-06/0.1253, allocations: 0 / 494.3 MB, free: 6.746 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.804e-06/0.1253, allocations: 4 kB / 494.4 MB, free: 6.742 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.619e-05/0.1253, allocations: 7.938 kB / 494.4 MB, free: 6.734 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000134/0.1255, allocations: 145.7 kB / 494.5 MB, free: 6.543 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.311e-05/0.1255, allocations: 22.55 kB / 494.5 MB, free: 6.512 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.452e-05/0.1256, allocations: 8.797 kB / 494.5 MB, free: 6.5 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.239e-05/0.1256, allocations: 7.984 kB / 494.5 MB, free: 6.492 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.792e-05/0.1256, allocations: 56.27 kB / 494.6 MB, free: 6.422 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 1.062e-06/0.1256, allocations: 64 / 494.6 MB, free: 6.422 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001823/0.1258, allocations: 67.31 kB / 494.7 MB, free: 6.344 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.763e-05/0.1259, allocations: 81.11 kB / 494.7 MB, free: 6.246 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.79e-05/0.1259, allocations: 89.86 kB / 494.8 MB, free: 6.148 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.97e-05/0.126, allocations: 29.69 kB / 494.9 MB, free: 6.113 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.972e-05/0.126, allocations: 84.12 kB / 494.9 MB, free: 6.027 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.71e-05/0.126, allocations: 4.125 kB / 494.9 MB, free: 6.023 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.164e-06/0.126, allocations: 0 / 494.9 MB, free: 6.023 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001286/0.1262, allocations: 314.8 kB / 495.2 MB, free: 5.707 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.025e-05/0.1262, allocations: 7.938 kB / 495.3 MB, free: 5.699 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.761e-06/0.1262, allocations: 0 / 495.3 MB, free: 5.699 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.252e-05/0.1262, allocations: 25.7 kB / 495.3 MB, free: 5.668 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.1262, allocations: 0 / 495.3 MB, free: 5.668 MB / 378.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.503e-05/0.1263, allocations: 67.39 kB / 495.3 MB, free: 5.59 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.547e-05/0.1264, allocations: 37.8 kB / 495.4 MB, free: 5.547 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.779e-06/0.1264, allocations: 0 / 495.4 MB, free: 5.547 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.253e-05/0.1264, allocations: 0 / 495.4 MB, free: 5.547 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.42e-07/0.1264, allocations: 0 / 495.4 MB, free: 5.547 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.632e-06/0.1264, allocations: 0 / 495.4 MB, free: 5.547 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.742e-05/0.1264, allocations: 0 / 495.4 MB, free: 5.547 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.862e-06/0.1264, allocations: 0 / 495.4 MB, free: 5.547 MB / 378.7 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 9.371e-05/0.1265, allocations: 143.5 kB / 495.5 MB, free: 5.391 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.955e-06/0.1266, allocations: 0 / 495.5 MB, free: 5.391 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.184e-05/0.1266, allocations: 7.109 kB / 495.5 MB, free: 5.383 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.976e-06/0.1266, allocations: 4 kB / 495.5 MB, free: 5.379 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.016e-06/0.1266, allocations: 11.94 kB / 495.5 MB, free: 5.367 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.984e-06/0.1266, allocations: 3.938 kB / 495.6 MB, free: 5.363 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.457e-05/0.1267, allocations: 149.6 kB / 495.7 MB, free: 5.168 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.82e-07/0.1267, allocations: 0 / 495.7 MB, free: 5.168 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.61e-07/0.1267, allocations: 0 / 495.7 MB, free: 5.168 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.824e-06/0.1267, allocations: 0 / 495.7 MB, free: 5.168 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.015e-05/0.1267, allocations: 4 kB / 495.7 MB, free: 5.164 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.142e-06/0.1267, allocations: 0 / 495.7 MB, free: 5.164 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.415e-06/0.1267, allocations: 3.984 kB / 495.7 MB, free: 5.16 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.169e-05/0.1268, allocations: 94.8 kB / 495.8 MB, free: 5.043 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.319e-05/0.1269, allocations: 77.11 kB / 495.9 MB, free: 4.949 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.266e-05/0.1269, allocations: 3.984 kB / 495.9 MB, free: 4.945 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.849e-06/0.1269, allocations: 0 / 495.9 MB, free: 4.945 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.509e-05/0.1269, allocations: 0 / 495.9 MB, free: 4.945 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.218e-06/0.1269, allocations: 7.938 kB / 495.9 MB, free: 4.938 MB / 378.7 MB Notification: Performance of sorting global known variables: time 3.237e-05/0.127, allocations: 75.28 kB / 496 MB, free: 4.863 MB / 378.7 MB Notification: Performance of sort global known variables: time 9e-08/0.127, allocations: 4.031 kB / 496 MB, free: 4.859 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004711/0.1275, allocations: 116 kB / 496.1 MB, free: 4.746 MB / 378.7 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.0008624/0.1283, allocations: 306.5 kB / 496.4 MB, free: 4.445 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 8.305e-05/0.1284, allocations: 59.41 kB / 496.4 MB, free: 4.375 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.683e-06/0.1284, allocations: 0 / 496.4 MB, free: 4.375 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 3.071e-05/0.1285, allocations: 55.41 kB / 496.5 MB, free: 4.309 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001344/0.1286, allocations: 7.891 kB / 496.5 MB, free: 4.301 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001835/0.1288, allocations: 112.4 kB / 496.6 MB, free: 4.16 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002291/0.129, allocations: 0.6692 MB / 497.3 MB, free: 3.465 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.212e-05/0.1291, allocations: 11.44 kB / 497.3 MB, free: 3.457 MB / 378.7 MB Notification: Performance of SimCode: time 2.3e-07/0.1291, allocations: 4.125 kB / 497.3 MB, free: 3.453 MB / 378.7 MB Notification: Performance of Templates: time 0.007497/0.1366, allocations: 3.284 MB / 0.4888 GB, free: 168 kB / 378.7 MB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Math.Random.TestSpecial.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Math.Random.TestSpecial.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Math.Random.TestSpecial.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Math.Random.TestSpecial.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Math.Random.TestSpecial.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Math.Random.TestSpecial --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Math.Random.TestSpecial.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Math.Random.TestSpecial_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Math/Random/TestSpecial/TestSpecial.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Math.Random.TestSpecial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches