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.001664/0.001664, allocations: 103.2 kB / 18.4 MB, free: 4.703 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.002093/0.002093, allocations: 188 kB / 19.34 MB, free: 3.77 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.372/1.372, allocations: 222.9 MB / 243 MB, free: 15.09 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.2133/0.2133, allocations: 44.17 MB / 337.4 MB, free: 2.695 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001424/0.001424, allocations: 69.75 kB / 409.9 MB, free: 26.52 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1065/0.108, allocations: 60.83 MB / 470.7 MB, free: 13.64 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestSpecial): time 0.00177/0.1098, allocations: 0.491 MB / 471.2 MB, free: 13.15 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002944/0.1128, allocations: 1.991 MB / 473.2 MB, free: 11.14 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.572e-05/0.1128, allocations: 0 / 473.2 MB, free: 11.14 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.207e-05/0.1128, allocations: 3.938 kB / 473.2 MB, free: 11.14 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.989e-06/0.1128, allocations: 0 / 473.2 MB, free: 11.14 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.001415/0.1143, allocations: 0.4894 MB / 473.7 MB, free: 10.65 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.138e-05/0.1143, allocations: 4 kB / 473.7 MB, free: 10.64 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.569e-05/0.1143, allocations: 0 / 473.7 MB, free: 10.64 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.472e-05/0.1144, allocations: 3.984 kB / 473.7 MB, free: 10.64 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.534e-05/0.1144, allocations: 0 / 473.7 MB, free: 10.64 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.871e-06/0.1144, allocations: 0 / 473.7 MB, free: 10.64 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001028/0.1154, allocations: 0.6318 MB / 474.3 MB, free: 10.01 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.536e-06/0.1155, allocations: 3.984 kB / 474.3 MB, free: 10 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 1.77e-05/0.1155, allocations: 0 / 474.3 MB, free: 10 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005885/0.1161, allocations: 375.3 kB / 474.7 MB, free: 9.637 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.837e-06/0.1161, allocations: 0 / 474.7 MB, free: 9.637 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.062e-06/0.1161, allocations: 4 kB / 474.7 MB, free: 9.633 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.581e-06/0.1161, allocations: 0 / 474.7 MB, free: 9.633 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.0004661/0.1166, allocations: 405.3 kB / 475.1 MB, free: 9.184 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.56e-05/0.1166, allocations: 8.031 kB / 475.1 MB, free: 9.176 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.981e-05/0.1167, allocations: 0.9375 kB / 475.1 MB, free: 9.176 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001474/0.1168, allocations: 164.4 kB / 475.3 MB, free: 8.977 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.466e-06/0.1168, allocations: 384 / 475.3 MB, free: 8.977 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.949e-06/0.1168, allocations: 384 / 475.3 MB, free: 8.977 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.345e-05/0.1169, allocations: 34.02 kB / 475.3 MB, free: 8.938 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.186e-06/0.1169, allocations: 7.938 kB / 475.3 MB, free: 8.93 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.646e-06/0.117, allocations: 0 / 475.3 MB, free: 8.93 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.903e-06/0.117, allocations: 4 kB / 475.3 MB, free: 8.926 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.973e-05/0.117, allocations: 7.938 kB / 475.3 MB, free: 8.918 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000125/0.1171, allocations: 145.7 kB / 475.5 MB, free: 8.727 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.797e-05/0.1172, allocations: 22.61 kB / 475.5 MB, free: 8.695 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.36e-05/0.1172, allocations: 4.859 kB / 475.5 MB, free: 8.688 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.424e-06/0.1172, allocations: 4 kB / 475.5 MB, free: 8.684 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.236e-05/0.1172, allocations: 60.2 kB / 475.6 MB, free: 8.609 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.002e-06/0.1173, allocations: 3.938 kB / 475.6 MB, free: 8.605 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001739/0.1174, allocations: 67.39 kB / 475.6 MB, free: 8.527 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.772e-05/0.1175, allocations: 81.11 kB / 475.7 MB, free: 8.43 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.137e-05/0.1175, allocations: 93.86 kB / 475.8 MB, free: 8.328 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.309e-05/0.1176, allocations: 25.7 kB / 475.8 MB, free: 8.297 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.145e-05/0.1176, allocations: 80.14 kB / 475.9 MB, free: 8.215 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.069e-05/0.1176, allocations: 8.062 kB / 475.9 MB, free: 8.207 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.241e-05/0.1177, allocations: 13.72 kB / 475.9 MB, free: 8.188 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001002/0.1178, allocations: 310.8 kB / 476.2 MB, free: 7.875 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.729e-06/0.1178, allocations: 0 / 476.2 MB, free: 7.875 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.41e-06/0.1178, allocations: 0 / 476.2 MB, free: 7.875 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.775e-05/0.1179, allocations: 72.19 kB / 476.3 MB, free: 7.789 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-06/0.1179, allocations: 0 / 476.3 MB, free: 7.789 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.892e-05/0.118, allocations: 63.47 kB / 476.4 MB, free: 7.715 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.528e-05/0.118, allocations: 33.64 kB / 476.4 MB, free: 7.676 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.859e-06/0.118, allocations: 0 / 476.4 MB, free: 7.676 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.083e-05/0.118, allocations: 4 kB / 476.4 MB, free: 7.672 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.51e-07/0.118, allocations: 0 / 476.4 MB, free: 7.672 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.334e-06/0.118, allocations: 3.984 kB / 476.4 MB, free: 7.668 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.349e-05/0.1181, allocations: 0 / 476.4 MB, free: 7.668 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.771e-06/0.1181, allocations: 0 / 476.4 MB, free: 7.668 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 7.059e-05/0.1181, allocations: 135.5 kB / 476.5 MB, free: 7.52 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.957e-06/0.1182, allocations: 7.969 kB / 476.5 MB, free: 7.512 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.044e-05/0.1182, allocations: 7.078 kB / 476.5 MB, free: 7.504 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.242e-06/0.1182, allocations: 0 / 476.5 MB, free: 7.504 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.607e-06/0.1182, allocations: 0 / 476.5 MB, free: 7.504 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.144e-06/0.1182, allocations: 0 / 476.5 MB, free: 7.504 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.391e-05/0.1183, allocations: 153.7 kB / 476.7 MB, free: 7.305 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.91e-07/0.1183, allocations: 0 / 476.7 MB, free: 7.305 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.814e-06/0.1183, allocations: 0 / 476.7 MB, free: 7.305 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.464e-06/0.1183, allocations: 7.875 kB / 476.7 MB, free: 7.297 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.033e-06/0.1183, allocations: 0 / 476.7 MB, free: 7.297 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.72e-07/0.1183, allocations: 3.938 kB / 476.7 MB, free: 7.293 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.003e-06/0.1183, allocations: 8 kB / 476.7 MB, free: 7.285 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.648e-05/0.1184, allocations: 90.73 kB / 476.8 MB, free: 7.172 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.727e-05/0.1185, allocations: 77.11 kB / 476.9 MB, free: 7.078 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.211e-05/0.1185, allocations: 7.938 kB / 476.9 MB, free: 7.07 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.265e-06/0.1185, allocations: 0 / 476.9 MB, free: 7.07 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.492e-05/0.1185, allocations: 7.984 kB / 476.9 MB, free: 7.062 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.575e-06/0.1185, allocations: 0 / 476.9 MB, free: 7.062 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.354e-05/0.1185, allocations: 83.34 kB / 477 MB, free: 6.98 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1186, allocations: 0 / 477 MB, free: 6.98 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003975/0.119, allocations: 131.9 kB / 477.1 MB, free: 6.852 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.0006641/0.1196, allocations: 305.8 kB / 477.4 MB, free: 6.555 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 8.958e-05/0.1197, allocations: 63.33 kB / 477.5 MB, free: 6.48 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.1197, allocations: 0 / 477.5 MB, free: 6.48 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 2.728e-05/0.1198, allocations: 55.41 kB / 477.5 MB, free: 6.414 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001177/0.1199, allocations: 0 / 477.5 MB, free: 6.414 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001792/0.1201, allocations: 80.94 kB / 477.6 MB, free: 6.309 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002303/0.1203, allocations: 0.6768 MB / 478.3 MB, free: 5.605 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.37e-06/0.1203, allocations: 4.125 kB / 478.3 MB, free: 5.602 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.083e-05/0.1204, allocations: 7.438 kB / 478.3 MB, free: 5.594 MB / 350.1 MB Notification: Performance of SimCode: time 1.423e-06/0.1204, allocations: 0 / 478.3 MB, free: 5.594 MB / 350.1 MB Notification: Performance of Templates: time 0.006242/0.1266, allocations: 3.377 MB / 481.7 MB, free: 2.219 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 -s gbode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/Random/TestSpecial/TestSpecial.csv","/var/lib/jenkins1/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