Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Math.Random.TestSpecial.conf.json 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/ModelicaServices 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 ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) Running command: translateModel(ModelicaTest.Math.Random.TestSpecial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Math.Random.TestSpecial") translateModel(ModelicaTest.Math.Random.TestSpecial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Math.Random.TestSpecial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009449/0.0009449, allocations: 200.9 kB / 15.8 MB, free: 5.969 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.249/1.249, allocations: 226.6 MB / 243.1 MB, free: 12.56 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000742/0.000742, allocations: 102.3 kB / 295.1 MB, free: 4.441 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1924/0.1924, allocations: 44.84 MB / 392 MB, free: 11.38 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000231/0.0002311, allocations: 12 kB / 464.7 MB, free: 68.08 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08081/0.08106, allocations: 62.95 MB / 0.5153 GB, free: 5.121 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestSpecial): time 0.0004244/0.08152, allocations: 226.1 kB / 0.5155 GB, free: 4.898 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.001727/0.08326, allocations: 1.92 MB / 0.5174 GB, free: 2.957 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.041e-05/0.08328, allocations: 0 / 0.5174 GB, free: 2.957 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 8.085e-06/0.0833, allocations: 0 / 0.5174 GB, free: 2.957 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 4.368e-06/0.08331, allocations: 0 / 0.5174 GB, free: 2.957 MB / 346.7 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.0009037/0.08422, allocations: 410.4 kB / 0.5178 GB, free: 2.559 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 2.399e-05/0.08425, allocations: 0 / 0.5178 GB, free: 2.559 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.25e-05/0.08429, allocations: 3.938 kB / 0.5178 GB, free: 2.555 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.308e-05/0.08431, allocations: 3.938 kB / 0.5178 GB, free: 2.551 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 1.428e-05/0.08432, allocations: 0 / 0.5178 GB, free: 2.551 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 5.189e-06/0.08434, allocations: 8 kB / 0.5178 GB, free: 2.543 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006825/0.08502, allocations: 0.6707 MB / 0.5185 GB, free: 1.871 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 4.659e-06/0.08504, allocations: 0 / 0.5185 GB, free: 1.871 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 1.73e-05/0.08506, allocations: 29.7 kB / 0.5185 GB, free: 1.836 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002554/0.08532, allocations: 251.5 kB / 0.5187 GB, free: 1.59 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.296e-06/0.08533, allocations: 0 / 0.5187 GB, free: 1.59 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.343e-06/0.08534, allocations: 0 / 0.5187 GB, free: 1.59 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.416e-06/0.08535, allocations: 0 / 0.5187 GB, free: 1.59 MB / 346.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.0002565/0.08561, allocations: 409.1 kB / 0.5191 GB, free: 1.137 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.749e-05/0.08564, allocations: 12.03 kB / 0.5191 GB, free: 1.125 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.261e-05/0.08567, allocations: 0 / 0.5191 GB, free: 1.125 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 3.966e-05/0.08571, allocations: 163 kB / 0.5193 GB, free: 0.9258 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.518e-06/0.08573, allocations: 0 / 0.5193 GB, free: 0.9258 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.267e-06/0.08574, allocations: 3.984 kB / 0.5193 GB, free: 0.9219 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.991e-05/0.08581, allocations: 33.69 kB / 0.5193 GB, free: 0.8828 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.721e-06/0.08582, allocations: 0 / 0.5193 GB, free: 0.8828 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.585e-06/0.08583, allocations: 4 kB / 0.5193 GB, free: 0.8789 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.146e-06/0.08584, allocations: 3.938 kB / 0.5193 GB, free: 0.875 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.339e-05/0.08586, allocations: 8 kB / 0.5194 GB, free: 0.8672 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 6.9e-05/0.08593, allocations: 145.6 kB / 0.5195 GB, free: 0.6758 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 2.086e-05/0.08596, allocations: 14.58 kB / 0.5195 GB, free: 0.6523 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.838e-06/0.08597, allocations: 8.953 kB / 0.5195 GB, free: 0.6406 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.213e-06/0.08598, allocations: 0 / 0.5195 GB, free: 0.6406 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.313e-05/0.08601, allocations: 68.19 kB / 0.5196 GB, free: 0.5586 MB / 346.7 MB Notification: Performance of pre-optimization done (n=1): time 9.12e-07/0.08602, allocations: 0 / 0.5196 GB, free: 0.5586 MB / 346.7 MB Notification: Performance of matching and sorting (n=1): time 0.000116/0.08614, allocations: 67.34 kB / 0.5196 GB, free: 492 kB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.118e-05/0.08617, allocations: 77.11 kB / 0.5197 GB, free: 396 kB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.557e-05/0.08619, allocations: 89.86 kB / 0.5198 GB, free: 296 kB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 5.831e-06/0.0862, allocations: 29.7 kB / 0.5198 GB, free: 260 kB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.684e-06/0.08621, allocations: 80.14 kB / 0.5199 GB, free: 176 kB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.509e-05/0.08623, allocations: 3.984 kB / 0.5199 GB, free: 172 kB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.743e-06/0.08624, allocations: 0 / 0.5199 GB, free: 172 kB / 346.7 MB Notification: Performance of setup shared object (initialization): time 7.923e-05/0.08632, allocations: 314.8 kB / 0.5202 GB, free: 15.85 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.893e-06/0.08634, allocations: 4.125 kB / 0.5202 GB, free: 15.85 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.901e-06/0.08635, allocations: 4 kB / 0.5202 GB, free: 15.84 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.333e-05/0.08637, allocations: 25.7 kB / 0.5202 GB, free: 15.81 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.433e-06/0.08638, allocations: 0 / 0.5202 GB, free: 15.81 MB / 362.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.647e-05/0.08645, allocations: 67.3 kB / 0.5203 GB, free: 15.73 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.706e-05/0.08649, allocations: 33.69 kB / 0.5203 GB, free: 15.7 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.327e-06/0.0865, allocations: 3.938 kB / 0.5203 GB, free: 15.69 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.768e-06/0.08651, allocations: 0 / 0.5203 GB, free: 15.69 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.964e-06/0.08652, allocations: 4 kB / 0.5203 GB, free: 15.69 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.867e-06/0.08653, allocations: 4.094 kB / 0.5204 GB, free: 15.68 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.3e-05/0.08654, allocations: 0 / 0.5204 GB, free: 15.68 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.829e-06/0.08655, allocations: 0 / 0.5204 GB, free: 15.68 MB / 362.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 7.593e-05/0.08663, allocations: 139.5 kB / 0.5205 GB, free: 15.53 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.885e-06/0.08665, allocations: 3.953 kB / 0.5205 GB, free: 15.53 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.164e-06/0.08666, allocations: 7.078 kB / 0.5205 GB, free: 15.52 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.082e-06/0.08666, allocations: 0 / 0.5205 GB, free: 15.52 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.218e-06/0.08667, allocations: 3.984 kB / 0.5205 GB, free: 15.52 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.553e-06/0.08668, allocations: 0 / 0.5205 GB, free: 15.52 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.633e-05/0.08676, allocations: 153.7 kB / 0.5206 GB, free: 15.32 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.02e-07/0.08677, allocations: 0 / 0.5206 GB, free: 15.32 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.61e-07/0.08677, allocations: 0 / 0.5206 GB, free: 15.32 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.585e-06/0.08678, allocations: 3.953 kB / 0.5206 GB, free: 15.32 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.31e-06/0.08679, allocations: 0 / 0.5206 GB, free: 15.32 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.72e-07/0.08679, allocations: 0 / 0.5206 GB, free: 15.32 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.51e-07/0.0868, allocations: 0 / 0.5206 GB, free: 15.32 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.138e-05/0.08688, allocations: 94.77 kB / 0.5207 GB, free: 15.2 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.836e-05/0.08692, allocations: 85.08 kB / 0.5208 GB, free: 15.1 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.263e-05/0.08694, allocations: 7.953 kB / 0.5208 GB, free: 15.09 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.819e-06/0.08695, allocations: 3.984 kB / 0.5208 GB, free: 15.09 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.068e-05/0.08697, allocations: 0 / 0.5208 GB, free: 15.09 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.475e-06/0.08698, allocations: 0 / 0.5208 GB, free: 15.09 MB / 362.7 MB Notification: Performance of sorting global known variables: time 2.562e-05/0.08701, allocations: 75.28 kB / 0.5209 GB, free: 15.01 MB / 362.7 MB Notification: Performance of sort global known variables: time 1e-07/0.08701, allocations: 0 / 0.5209 GB, free: 15.01 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003612/0.08738, allocations: 128 kB / 0.521 GB, free: 14.89 MB / 362.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.0006858/0.08807, allocations: 318.7 kB / 0.5213 GB, free: 14.57 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 7.173e-05/0.08815, allocations: 59.41 kB / 0.5214 GB, free: 14.5 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.865e-06/0.08816, allocations: 4.062 kB / 0.5214 GB, free: 14.5 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 2.819e-05/0.08819, allocations: 63.33 kB / 0.5215 GB, free: 14.43 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001035/0.0883, allocations: 4 kB / 0.5215 GB, free: 14.42 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001471/0.08846, allocations: 104.3 kB / 0.5216 GB, free: 14.29 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001919/0.08866, allocations: 0.677 MB / 0.5222 GB, free: 13.58 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.344e-06/0.08867, allocations: 7.438 kB / 0.5222 GB, free: 13.57 MB / 362.7 MB Notification: Performance of SimCode: time 2.1e-07/0.08868, allocations: 0 / 0.5222 GB, free: 13.57 MB / 362.7 MB Notification: Performance of Templates: time 0.004614/0.09329, allocations: 3.405 MB / 0.5255 GB, free: 10.16 MB / 362.7 MB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Math.Random.TestSpecial.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Math.Random.TestSpecial.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Math.Random.TestSpecial.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Math.Random.TestSpecial.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Math.Random.TestSpecial.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Math.Random.TestSpecial --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Math.Random.TestSpecial.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_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_trunk_cpp_ModelicaTest.Math.Random.TestSpecial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches