Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_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 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 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 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_3.2.3_ModelicaTest.Math.Random.TestSpecial") translateModel(ModelicaTest.Math.Random.TestSpecial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_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.001611/0.001611, allocations: 99.42 kB / 16.93 MB, free: 5.812 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.001848/0.001848, allocations: 187.3 kB / 17.86 MB, free: 5.176 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.456/1.456, allocations: 205.1 MB / 223.7 MB, free: 12.31 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2355/0.2355, allocations: 43.52 MB / 314.6 MB, free: 0.5234 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001554/0.001554, allocations: 73 kB / 383.4 MB, free: 56.75 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1079/0.1095, allocations: 57.79 MB / 441.2 MB, free: 6.906 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestSpecial): time 0.001718/0.1112, allocations: 0.5026 MB / 441.7 MB, free: 6.398 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002129/0.1134, allocations: 2.026 MB / 443.7 MB, free: 4.352 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.76e-05/0.1134, allocations: 0 / 443.7 MB, free: 4.352 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 1.726e-05/0.1134, allocations: 0 / 443.7 MB, free: 4.352 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 5.56e-06/0.1135, allocations: 0 / 443.7 MB, free: 4.352 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001216/0.1147, allocations: 0.4908 MB / 444.2 MB, free: 3.863 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 4.515e-05/0.1147, allocations: 0 / 444.2 MB, free: 3.863 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.848e-05/0.1148, allocations: 0 / 444.2 MB, free: 3.863 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.587e-05/0.1148, allocations: 7.938 kB / 444.2 MB, free: 3.855 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.792e-05/0.1148, allocations: 3.984 kB / 444.2 MB, free: 3.852 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.743e-06/0.1148, allocations: 0 / 444.2 MB, free: 3.852 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008189/0.1157, allocations: 0.6204 MB / 444.8 MB, free: 3.23 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.504e-06/0.1157, allocations: 0 / 444.8 MB, free: 3.23 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 2.571e-05/0.1157, allocations: 3.984 kB / 444.8 MB, free: 3.227 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004333/0.1162, allocations: 387.2 kB / 445.2 MB, free: 2.848 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.677e-06/0.1162, allocations: 0 / 445.2 MB, free: 2.848 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.372e-06/0.1162, allocations: 4 kB / 445.2 MB, free: 2.844 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.115e-05/0.1162, allocations: 0 / 445.2 MB, free: 2.844 MB / 318.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.0003843/0.1166, allocations: 405.2 kB / 445.6 MB, free: 2.395 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.247e-05/0.1166, allocations: 15.89 kB / 445.6 MB, free: 2.379 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.571e-05/0.1167, allocations: 4.844 kB / 445.6 MB, free: 2.375 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.039e-05/0.1168, allocations: 164.4 kB / 445.8 MB, free: 2.176 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.442e-05/0.1168, allocations: 384 / 445.8 MB, free: 2.176 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.255e-05/0.1168, allocations: 4.312 kB / 445.8 MB, free: 2.172 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.34e-05/0.1169, allocations: 38.02 kB / 445.8 MB, free: 2.129 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.484e-06/0.1169, allocations: 0 / 445.8 MB, free: 2.129 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.148e-06/0.1169, allocations: 0 / 445.8 MB, free: 2.129 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.05e-06/0.1169, allocations: 0 / 445.8 MB, free: 2.129 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.938e-05/0.1169, allocations: 3.938 kB / 445.8 MB, free: 2.125 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.951e-05/0.1171, allocations: 149.7 kB / 446 MB, free: 1.93 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.795e-05/0.1171, allocations: 18.56 kB / 446 MB, free: 1.902 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.408e-05/0.1171, allocations: 8.953 kB / 446 MB, free: 1.891 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.045e-06/0.1171, allocations: 4 kB / 446 MB, free: 1.887 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.406e-05/0.1172, allocations: 60.2 kB / 446.1 MB, free: 1.812 MB / 318.1 MB Notification: Performance of pre-optimization done (n=1): time 1.173e-06/0.1172, allocations: 0 / 446.1 MB, free: 1.812 MB / 318.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001627/0.1173, allocations: 71.33 kB / 446.1 MB, free: 1.73 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.833e-05/0.1174, allocations: 77.11 kB / 446.2 MB, free: 1.637 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.081e-05/0.1174, allocations: 89.86 kB / 446.3 MB, free: 1.539 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.774e-05/0.1174, allocations: 25.7 kB / 446.3 MB, free: 1.508 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.434e-05/0.1175, allocations: 84.27 kB / 446.4 MB, free: 1.422 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.399e-05/0.1175, allocations: 4 kB / 446.4 MB, free: 1.418 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.241e-05/0.1175, allocations: 13.66 kB / 446.4 MB, free: 1.398 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.865e-05/0.1176, allocations: 314.8 kB / 446.7 MB, free: 1.082 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.598e-06/0.1176, allocations: 4 kB / 446.7 MB, free: 1.078 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.049e-06/0.1176, allocations: 0 / 446.7 MB, free: 1.078 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.342e-05/0.1176, allocations: 64.25 kB / 446.8 MB, free: 1 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.272e-06/0.1176, allocations: 0 / 446.8 MB, free: 1 MB / 318.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.367e-05/0.1177, allocations: 67.41 kB / 446.9 MB, free: 0.9219 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.632e-05/0.1177, allocations: 37.64 kB / 446.9 MB, free: 0.8789 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.589e-06/0.1177, allocations: 0 / 446.9 MB, free: 0.8789 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.494e-05/0.1178, allocations: 0 / 446.9 MB, free: 0.8789 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.092e-06/0.1178, allocations: 0 / 446.9 MB, free: 0.8789 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.662e-06/0.1178, allocations: 0 / 446.9 MB, free: 0.8789 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.712e-05/0.1178, allocations: 4 kB / 446.9 MB, free: 0.875 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.027e-06/0.1178, allocations: 0 / 446.9 MB, free: 0.875 MB / 318.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 5.61e-05/0.1179, allocations: 140.6 kB / 447.1 MB, free: 0.7227 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.316e-06/0.1179, allocations: 11.97 kB / 447.1 MB, free: 0.7109 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.916e-06/0.1179, allocations: 3.125 kB / 447.1 MB, free: 0.707 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.81e-07/0.1179, allocations: 0 / 447.1 MB, free: 0.707 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.677e-06/0.1179, allocations: 4 kB / 447.1 MB, free: 0.7031 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.044e-06/0.1179, allocations: 0 / 447.1 MB, free: 0.7031 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.75e-05/0.118, allocations: 145.7 kB / 447.2 MB, free: 0.5117 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.21e-07/0.118, allocations: 4 kB / 447.2 MB, free: 0.5078 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.31e-07/0.118, allocations: 0 / 447.2 MB, free: 0.5078 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.784e-06/0.118, allocations: 3.938 kB / 447.2 MB, free: 0.5039 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.372e-06/0.118, allocations: 3.938 kB / 447.2 MB, free: 0.5 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.31e-07/0.118, allocations: 0 / 447.2 MB, free: 0.5 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.62e-07/0.118, allocations: 4 kB / 447.2 MB, free: 0.4961 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.656e-05/0.1181, allocations: 94.77 kB / 447.3 MB, free: 388 kB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.35e-05/0.1181, allocations: 81.09 kB / 447.4 MB, free: 288 kB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.234e-05/0.1181, allocations: 3.938 kB / 447.4 MB, free: 284 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.957e-06/0.1181, allocations: 4 kB / 447.4 MB, free: 280 kB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.84e-05/0.1182, allocations: 4 kB / 447.4 MB, free: 276 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.374e-06/0.1182, allocations: 0 / 447.4 MB, free: 276 kB / 318.1 MB Notification: Performance of sorting global known variables: time 1.929e-05/0.1182, allocations: 79.31 kB / 447.5 MB, free: 196 kB / 318.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1182, allocations: 0 / 447.5 MB, free: 196 kB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003591/0.1186, allocations: 124 kB / 447.6 MB, free: 72 kB / 318.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.0007681/0.1193, allocations: 299.3 kB / 447.9 MB, free: 15.78 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001029/0.1195, allocations: 67.39 kB / 448 MB, free: 15.7 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.1195, allocations: 0 / 448 MB, free: 15.7 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 3.279e-05/0.1195, allocations: 59.34 kB / 448 MB, free: 15.63 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001254/0.1196, allocations: 2.969 kB / 448 MB, free: 15.63 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002063/0.1199, allocations: 94.78 kB / 448.1 MB, free: 15.5 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000247/0.1201, allocations: 0.6729 MB / 448.8 MB, free: 14.8 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.132e-05/0.1201, allocations: 15.56 kB / 448.8 MB, free: 14.79 MB / 334.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1201, allocations: 0 / 448.8 MB, free: 14.79 MB / 334.1 MB Notification: Performance of Templates: time 0.005707/0.1258, allocations: 3.284 MB / 452.1 MB, free: 11.5 MB / 334.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestSpecial.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestSpecial.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestSpecial.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestSpecial.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestSpecial.sim & ./ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestSpecial -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestSpecial.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestSpecial_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Math/Random/TestSpecial/TestSpecial.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestSpecial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches