Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestTruncatedDistributions.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001135/0.001135, allocations: 77.88 kB / 21.42 MB, free: 3.074 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001093/0.001093, allocations: 170.9 kB / 24.82 MB, free: 8.926 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.078/1.078, allocations: 177.1 MB / 205.3 MB, free: 5.488 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.317/0.317, allocations: 34.27 MB / 296.1 MB, free: 0.7148 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Math.Random.TestTruncatedDistributions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestTruncatedDistributions") translateModel(ModelicaTest.Math.Random.TestTruncatedDistributions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestTruncatedDistributions") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.325e-06/2.325e-06, allocations: 0 / 378.5 MB, free: 2.398 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.699e-05/2.932e-05, allocations: 2.312 kB / 378.5 MB, free: 2.395 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestTruncatedDistributions): time 0.001381/0.00141, allocations: 0.5194 MB / 379 MB, free: 1.875 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.009236/0.01065, allocations: 2.288 MB / 381.3 MB, free: 15.56 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.372e-05/0.01067, allocations: 0 / 381.3 MB, free: 15.56 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 2.088e-05/0.01069, allocations: 0 / 381.3 MB, free: 15.56 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 8.696e-06/0.0107, allocations: 4 kB / 381.3 MB, free: 15.56 MB / 362.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/Math.mo:1098:5-1194:31:writable] Warning: Pure function 'ModelicaTest.Math.Random.truncatedDistributions' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.001629/0.01233, allocations: 0.5878 MB / 381.9 MB, free: 14.97 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 5.927e-05/0.01239, allocations: 0 / 381.9 MB, free: 14.97 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.75e-05/0.01243, allocations: 0 / 381.9 MB, free: 14.97 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.446e-05/0.01248, allocations: 11.92 kB / 381.9 MB, free: 14.96 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.523e-05/0.0125, allocations: 0 / 381.9 MB, free: 14.96 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 9.929e-06/0.01251, allocations: 0 / 381.9 MB, free: 14.96 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000904/0.01342, allocations: 0.6743 MB / 382.6 MB, free: 14.28 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 9.989e-06/0.01343, allocations: 0 / 382.6 MB, free: 14.28 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 1.469e-05/0.01344, allocations: 0 / 382.6 MB, free: 14.28 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005285/0.01397, allocations: 0.522 MB / 383.1 MB, free: 13.76 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.735e-06/0.01397, allocations: 4 kB / 383.1 MB, free: 13.75 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.162e-06/0.01398, allocations: 0 / 383.1 MB, free: 13.75 MB / 362.7 MB Notification: Performance of Transformations before backend: time 4.128e-06/0.01398, allocations: 0 / 383.1 MB, free: 13.75 MB / 362.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.0003866/0.01437, allocations: 481 kB / 383.6 MB, free: 13.24 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.328e-05/0.01441, allocations: 8.031 kB / 383.6 MB, free: 13.23 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.267e-05/0.01444, allocations: 4.938 kB / 383.6 MB, free: 13.23 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.573e-05/0.01451, allocations: 104.6 kB / 383.7 MB, free: 13.1 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.005e-05/0.01452, allocations: 384 / 383.7 MB, free: 13.1 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.234e-06/0.01453, allocations: 4.312 kB / 383.7 MB, free: 13.1 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.069e-05/0.01461, allocations: 55.97 kB / 383.7 MB, free: 13.03 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.376e-06/0.01461, allocations: 192 / 383.7 MB, free: 13.03 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.174e-06/0.01462, allocations: 4.375 kB / 383.7 MB, free: 13.03 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.004e-05/0.01463, allocations: 11.91 kB / 383.8 MB, free: 13.02 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.88e-05/0.01465, allocations: 29.7 kB / 383.8 MB, free: 12.98 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006689/0.01532, allocations: 93.27 kB / 383.9 MB, free: 12.86 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.654e-05/0.01537, allocations: 52.8 kB / 383.9 MB, free: 12.79 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.338e-05/0.01539, allocations: 37.33 kB / 384 MB, free: 12.75 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.721e-06/0.0154, allocations: 4.062 kB / 384 MB, free: 12.74 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.316e-05/0.01544, allocations: 63.08 kB / 384 MB, free: 12.66 MB / 362.7 MB Notification: Performance of pre-optimization done (n=1): time 5.51e-07/0.01544, allocations: 0 / 384 MB, free: 12.66 MB / 362.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001694/0.01561, allocations: 118.8 kB / 384.1 MB, free: 12.52 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.593e-05/0.01564, allocations: 81.05 kB / 384.2 MB, free: 12.43 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.58e-05/0.01569, allocations: 146.2 kB / 384.4 MB, free: 12.27 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.003e-05/0.0157, allocations: 25.7 kB / 384.4 MB, free: 12.24 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.067e-05/0.01573, allocations: 126.9 kB / 384.5 MB, free: 12.11 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.036e-05/0.01575, allocations: 8.281 kB / 384.5 MB, free: 12.1 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.278e-05/0.01577, allocations: 19.38 kB / 384.5 MB, free: 12.07 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001293/0.0159, allocations: 0.4883 MB / 385 MB, free: 11.57 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.002e-05/0.01592, allocations: 29.64 kB / 385.1 MB, free: 11.54 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.32e-05/0.01594, allocations: 29.7 kB / 385.1 MB, free: 11.5 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.339e-05/0.01598, allocations: 63.28 kB / 385.2 MB, free: 11.43 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.993e-06/0.01598, allocations: 0 / 385.2 MB, free: 11.43 MB / 362.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.839e-05/0.01604, allocations: 93.09 kB / 385.2 MB, free: 11.32 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.807e-05/0.01607, allocations: 33.7 kB / 385.3 MB, free: 11.28 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.671e-06/0.01607, allocations: 0 / 385.3 MB, free: 11.28 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.409e-05/0.01609, allocations: 0 / 385.3 MB, free: 11.28 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.362e-06/0.01609, allocations: 0 / 385.3 MB, free: 11.28 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.681e-06/0.01609, allocations: 4 kB / 385.3 MB, free: 11.27 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.152e-05/0.01611, allocations: 3.938 kB / 385.3 MB, free: 11.27 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.604e-06/0.01611, allocations: 4 kB / 385.3 MB, free: 11.27 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.573e-05/0.01619, allocations: 190.2 kB / 385.5 MB, free: 11.06 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.699e-06/0.01619, allocations: 4 kB / 385.5 MB, free: 11.06 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.316e-05/0.01621, allocations: 3 kB / 385.5 MB, free: 11.06 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.442e-06/0.01621, allocations: 0 / 385.5 MB, free: 11.06 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.853e-06/0.01621, allocations: 0 / 385.5 MB, free: 11.06 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.896e-06/0.01621, allocations: 0 / 385.5 MB, free: 11.06 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.476e-05/0.01627, allocations: 97.2 kB / 385.6 MB, free: 10.94 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.32e-07/0.01627, allocations: 0 / 385.6 MB, free: 10.94 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.2e-07/0.01627, allocations: 0 / 385.6 MB, free: 10.94 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.81e-07/0.01627, allocations: 0 / 385.6 MB, free: 10.94 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.29e-06/0.01628, allocations: 3.984 kB / 385.6 MB, free: 10.93 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.51e-07/0.01628, allocations: 4 kB / 385.6 MB, free: 10.93 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.41e-07/0.01628, allocations: 0 / 385.6 MB, free: 10.93 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.465e-05/0.01636, allocations: 131.8 kB / 385.7 MB, free: 10.77 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.551e-06/0.01637, allocations: 3.984 kB / 385.7 MB, free: 10.76 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.076e-05/0.01638, allocations: 0 / 385.7 MB, free: 10.76 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.258e-06/0.01638, allocations: 0 / 385.7 MB, free: 10.76 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.233e-05/0.01639, allocations: 11.88 kB / 385.7 MB, free: 10.75 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.012e-06/0.01639, allocations: 0 / 385.7 MB, free: 10.75 MB / 362.7 MB Notification: Performance of sorting global known variables: time 3.43e-05/0.01643, allocations: 119.2 kB / 385.8 MB, free: 10.63 MB / 362.7 MB Notification: Performance of sort global known variables: time 4e-08/0.01643, allocations: 0 / 385.8 MB, free: 10.63 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002816/0.01671, allocations: 167.4 kB / 386 MB, free: 10.47 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 (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.0005429/0.01725, allocations: 371.1 kB / 386.4 MB, free: 10.11 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001056/0.01736, allocations: 118.5 kB / 386.5 MB, free: 9.961 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.473e-06/0.01736, allocations: 0 / 386.5 MB, free: 9.961 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 3.512e-05/0.0174, allocations: 100.8 kB / 386.6 MB, free: 9.84 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.765e-05/0.01748, allocations: 3.938 kB / 386.6 MB, free: 9.836 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001667/0.01765, allocations: 110.5 kB / 386.7 MB, free: 9.691 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.877e-05/0.01769, allocations: 59.34 kB / 386.8 MB, free: 9.613 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 5.811e-06/0.01769, allocations: 3.938 kB / 386.8 MB, free: 9.609 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.054e-05/0.01774, allocations: 74.19 kB / 386.8 MB, free: 9.535 MB / 362.7 MB Notification: Performance of SimCode: time 6.41e-07/0.01774, allocations: 3.938 kB / 386.8 MB, free: 9.531 MB / 362.7 MB Notification: Performance of Templates: time 0.005968/0.0237, allocations: 4.316 MB / 391.2 MB, free: 5.223 MB / 362.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestTruncatedDistributions.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestTruncatedDistributions.sim & ./ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestTruncatedDistributions -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestTruncatedDistributions_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Math/Random/TestTruncatedDistributions/TestTruncatedDistributions.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.5910974820144475]