Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestSpecial.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 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(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001348/0.001348, allocations: 177.9 kB / 17.41 MB, free: 4.293 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.379/1.379, allocations: 225.7 MB / 243.9 MB, free: 8.461 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007394/0.0007396, allocations: 93.14 kB / 295 MB, free: 9.52 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.378/0.378, allocations: 44.32 MB / 390.5 MB, free: 38.04 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003641/0.0003642, allocations: 8 kB / 463.1 MB, free: 496 kB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3879/0.3882, allocations: 61.89 MB / 0.5127 GB, free: 37.93 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestSpecial): time 0.0007103/0.389, allocations: 239.8 kB / 0.513 GB, free: 37.77 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.003819/0.3928, allocations: 3.073 MB / 0.516 GB, free: 35.09 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.789e-05/0.3929, allocations: 0 / 0.516 GB, free: 35.09 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 1.847e-05/0.3929, allocations: 0 / 0.516 GB, free: 35.09 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 7.163e-06/0.3929, allocations: 3.938 kB / 0.516 GB, free: 35.08 MB / 378.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-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.001943/0.3949, allocations: 401 kB / 0.5164 GB, free: 34.92 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 3.943e-05/0.395, allocations: 10.97 kB / 0.5164 GB, free: 34.91 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.9e-05/0.395, allocations: 0.7969 kB / 0.5164 GB, free: 34.91 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.361e-05/0.3951, allocations: 0 / 0.5164 GB, free: 34.91 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.229e-05/0.3951, allocations: 2.969 kB / 0.5164 GB, free: 34.91 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 8.045e-06/0.3951, allocations: 0 / 0.5164 GB, free: 34.91 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001691/0.3968, allocations: 0.6484 MB / 0.517 GB, free: 34.73 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 9.638e-06/0.3968, allocations: 0 / 0.517 GB, free: 34.73 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 3.411e-05/0.3969, allocations: 25.7 kB / 0.517 GB, free: 34.7 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008782/0.3978, allocations: 390.4 kB / 0.5174 GB, free: 34.59 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.859e-06/0.3978, allocations: 4 kB / 0.5174 GB, free: 34.59 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.465e-06/0.3978, allocations: 0 / 0.5174 GB, free: 34.59 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.278e-06/0.3978, allocations: 0 / 0.5174 GB, free: 34.59 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.0004682/0.3983, allocations: 401.3 kB / 0.5178 GB, free: 34.17 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.384e-05/0.3984, allocations: 11.53 kB / 0.5178 GB, free: 34.17 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.993e-05/0.3984, allocations: 5.531 kB / 0.5178 GB, free: 34.16 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.635e-05/0.3985, allocations: 161.5 kB / 0.518 GB, free: 33.97 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.585e-05/0.3985, allocations: 384 / 0.518 GB, free: 33.97 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.111e-05/0.3985, allocations: 3.125 kB / 0.518 GB, free: 33.97 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.339e-05/0.3987, allocations: 35.66 kB / 0.518 GB, free: 33.93 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.608e-06/0.3987, allocations: 3.938 kB / 0.518 GB, free: 33.93 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.079e-05/0.3987, allocations: 2.562 kB / 0.518 GB, free: 33.93 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.913e-06/0.3987, allocations: 4 kB / 0.518 GB, free: 33.92 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.352e-05/0.3987, allocations: 8.594 kB / 0.518 GB, free: 33.91 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001148/0.3989, allocations: 146 kB / 0.5181 GB, free: 33.73 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.11e-05/0.3989, allocations: 21.88 kB / 0.5182 GB, free: 33.7 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.718e-05/0.399, allocations: 5.422 kB / 0.5182 GB, free: 33.69 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.207e-06/0.399, allocations: 4 kB / 0.5182 GB, free: 33.69 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.84e-05/0.399, allocations: 67.23 kB / 0.5182 GB, free: 33.61 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 1.683e-06/0.399, allocations: 0 / 0.5182 GB, free: 33.61 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001867/0.3992, allocations: 59.84 kB / 0.5183 GB, free: 33.55 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.639e-05/0.3993, allocations: 85.16 kB / 0.5184 GB, free: 33.45 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.424e-05/0.3993, allocations: 89.86 kB / 0.5185 GB, free: 33.35 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.036e-05/0.3993, allocations: 25.7 kB / 0.5185 GB, free: 33.32 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.356e-05/0.3994, allocations: 84.27 kB / 0.5186 GB, free: 33.23 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.206e-05/0.3994, allocations: 0.6562 kB / 0.5186 GB, free: 33.23 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.146e-06/0.3994, allocations: 0 / 0.5186 GB, free: 33.23 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 5.817e-05/0.3995, allocations: 319 kB / 0.5189 GB, free: 32.92 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.118e-05/0.3995, allocations: 0 / 0.5189 GB, free: 32.92 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.602e-06/0.3995, allocations: 0 / 0.5189 GB, free: 32.92 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.537e-05/0.3996, allocations: 60.09 kB / 0.5189 GB, free: 32.85 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.984e-06/0.3996, allocations: 0 / 0.5189 GB, free: 32.85 MB / 378.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.428e-05/0.3997, allocations: 65.52 kB / 0.519 GB, free: 32.78 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.212e-05/0.3997, allocations: 39.91 kB / 0.519 GB, free: 32.74 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.115e-06/0.3998, allocations: 0 / 0.519 GB, free: 32.74 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.434e-05/0.3998, allocations: 3.938 kB / 0.519 GB, free: 32.74 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.314e-06/0.3998, allocations: 2.781 kB / 0.519 GB, free: 32.74 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.273e-06/0.3998, allocations: 0.7031 kB / 0.519 GB, free: 32.74 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.197e-05/0.3998, allocations: 0 / 0.519 GB, free: 32.74 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.815e-06/0.3999, allocations: 0 / 0.519 GB, free: 32.74 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.772e-05/0.3999, allocations: 140.2 kB / 0.5192 GB, free: 32.59 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.158e-05/0.4, allocations: 7.969 kB / 0.5192 GB, free: 32.58 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.222e-05/0.4, allocations: 10.38 kB / 0.5192 GB, free: 32.58 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.664e-06/0.4, allocations: 0 / 0.5192 GB, free: 32.58 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.129e-06/0.4, allocations: 0.7969 kB / 0.5192 GB, free: 32.58 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.751e-06/0.4, allocations: 0 / 0.5192 GB, free: 32.58 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.403e-05/0.4001, allocations: 150.6 kB / 0.5193 GB, free: 32.39 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.142e-06/0.4001, allocations: 0 / 0.5193 GB, free: 32.39 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.272e-06/0.4001, allocations: 0.7969 kB / 0.5193 GB, free: 32.39 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.487e-06/0.4001, allocations: 3.938 kB / 0.5193 GB, free: 32.38 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.316e-06/0.4002, allocations: 0 / 0.5193 GB, free: 32.38 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.875e-06/0.4002, allocations: 0.5156 kB / 0.5193 GB, free: 32.38 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.443e-06/0.4002, allocations: 6.562 kB / 0.5193 GB, free: 32.38 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001003/0.4003, allocations: 92.33 kB / 0.5194 GB, free: 32.28 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.964e-05/0.4003, allocations: 77.72 kB / 0.5195 GB, free: 32.18 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.986e-05/0.4004, allocations: 4.641 kB / 0.5195 GB, free: 32.18 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.408e-05/0.4004, allocations: 2.656 kB / 0.5195 GB, free: 32.18 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.418e-05/0.4004, allocations: 0.7969 kB / 0.5195 GB, free: 32.18 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.858e-06/0.4004, allocations: 0 / 0.5195 GB, free: 32.18 MB / 378.7 MB Notification: Performance of sorting global known variables: time 1.582e-05/0.4004, allocations: 83.31 kB / 0.5196 GB, free: 32.1 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.01e-07/0.4005, allocations: 2.656 kB / 0.5196 GB, free: 32.1 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0006853/0.4011, allocations: 122.8 kB / 0.5197 GB, free: 32.07 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 (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.001241/0.4024, allocations: 313.7 kB / 0.52 GB, free: 31.92 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 8.162e-05/0.4025, allocations: 57.16 kB / 0.5201 GB, free: 31.86 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.4025, allocations: 0 / 0.5201 GB, free: 31.86 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 3.096e-05/0.4026, allocations: 60.12 kB / 0.5201 GB, free: 31.79 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001908/0.4028, allocations: 2.344 kB / 0.5201 GB, free: 31.79 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001772/0.403, allocations: 86.72 kB / 0.5202 GB, free: 31.69 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001077/0.4031, allocations: 0.6757 MB / 0.5209 GB, free: 30.99 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 5.881e-06/0.4031, allocations: 0 / 0.5209 GB, free: 30.99 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.313e-05/0.4031, allocations: 9.625 kB / 0.5209 GB, free: 30.98 MB / 378.7 MB Notification: Performance of SimCode: time 2.7e-07/0.4031, allocations: 0 / 0.5209 GB, free: 30.98 MB / 378.7 MB Notification: Performance of Templates: time 0.009713/0.4128, allocations: 3.383 MB / 0.5242 GB, free: 30.72 MB / 378.7 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","../files/ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestSpecial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches