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.00142/0.00142, allocations: 84.34 kB / 20.96 MB, free: 3.445 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.001526/0.001526, allocations: 165.3 kB / 24.26 MB, free: 144 kB / 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.57/1.57, allocations: 177.2 MB / 204.6 MB, free: 5.586 MB / 186.7 MB " [Timeout remaining time 178] 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.3554/0.3554, allocations: 34.26 MB / 295.3 MB, free: 0.6758 MB / 266.7 MB " [Timeout remaining time 179] 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.214e-06/2.214e-06, allocations: 0 / 377.3 MB, free: 2.969 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.591e-05/3.812e-05, allocations: 2.312 kB / 377.3 MB, free: 2.965 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestTruncatedDistributions): time 0.002189/0.002227, allocations: 0.5005 MB / 377.8 MB, free: 2.465 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.004466/0.006693, allocations: 2.265 MB / 380 MB, free: 180 kB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.811e-05/0.006711, allocations: 0 / 380 MB, free: 180 kB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 1.29e-05/0.006724, allocations: 0 / 380 MB, free: 180 kB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 5.751e-06/0.00673, allocations: 0 / 380 MB, free: 180 kB / 346.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.002318/0.009047, allocations: 0.5839 MB / 380.6 MB, free: 15.59 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 6.372e-05/0.009111, allocations: 7.984 kB / 380.6 MB, free: 15.58 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.787e-05/0.009149, allocations: 0 / 380.6 MB, free: 15.58 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.782e-05/0.009177, allocations: 0 / 380.6 MB, free: 15.58 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.275e-05/0.0092, allocations: 7.938 kB / 380.6 MB, free: 15.57 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 8.375e-06/0.009208, allocations: 4 kB / 380.6 MB, free: 15.57 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001604/0.01081, allocations: 0.6782 MB / 381.3 MB, free: 14.89 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 1.104e-05/0.01082, allocations: 0 / 381.3 MB, free: 14.89 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 3.502e-05/0.01086, allocations: 7.984 kB / 381.3 MB, free: 14.88 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001324/0.01218, allocations: 0.5221 MB / 381.9 MB, free: 14.36 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.149e-06/0.01219, allocations: 0 / 381.9 MB, free: 14.36 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.492e-06/0.01219, allocations: 0 / 381.9 MB, free: 14.36 MB / 362.7 MB Notification: Performance of Transformations before backend: time 5.55e-06/0.01219, allocations: 0 / 381.9 MB, free: 14.36 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.0007112/0.0129, allocations: 371 kB / 382.2 MB, free: 13.96 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.534e-05/0.01295, allocations: 12.03 kB / 382.2 MB, free: 13.95 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.837e-05/0.01302, allocations: 0.9375 kB / 382.2 MB, free: 13.95 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001101/0.01313, allocations: 101.8 kB / 382.3 MB, free: 13.82 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.722e-05/0.01315, allocations: 4.375 kB / 382.3 MB, free: 13.82 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.869e-06/0.01316, allocations: 384 / 382.3 MB, free: 13.82 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001347/0.01329, allocations: 67.95 kB / 382.4 MB, free: 13.74 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.316e-06/0.0133, allocations: 192 / 382.4 MB, free: 13.74 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.051e-05/0.01331, allocations: 384 / 382.4 MB, free: 13.74 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.479e-05/0.01332, allocations: 7.922 kB / 382.4 MB, free: 13.73 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.838e-05/0.01336, allocations: 25.7 kB / 382.4 MB, free: 13.7 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001597/0.01352, allocations: 97.33 kB / 382.5 MB, free: 13.58 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.145e-05/0.0136, allocations: 44.22 kB / 382.6 MB, free: 13.52 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.484e-05/0.01365, allocations: 38.64 kB / 382.6 MB, free: 13.47 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.898e-06/0.01366, allocations: 0 / 382.6 MB, free: 13.47 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.297e-05/0.01373, allocations: 60.27 kB / 382.7 MB, free: 13.4 MB / 362.7 MB Notification: Performance of pre-optimization done (n=1): time 1.152e-06/0.01373, allocations: 4 kB / 382.7 MB, free: 13.39 MB / 362.7 MB Notification: Performance of matching and sorting (n=1): time 0.0002885/0.01402, allocations: 122.7 kB / 382.8 MB, free: 13.25 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.663e-05/0.0141, allocations: 81.05 kB / 382.9 MB, free: 13.15 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.648e-05/0.01416, allocations: 89.86 kB / 383 MB, free: 13.05 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.945e-05/0.01418, allocations: 25.7 kB / 383 MB, free: 13.02 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.052e-05/0.01423, allocations: 88.08 kB / 383.1 MB, free: 12.93 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.787e-05/0.01425, allocations: 0 / 383.1 MB, free: 12.93 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.665e-05/0.01429, allocations: 13.72 kB / 383.1 MB, free: 12.91 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001895/0.01448, allocations: 310.8 kB / 383.4 MB, free: 12.6 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.376e-05/0.01451, allocations: 29.7 kB / 383.4 MB, free: 12.57 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.697e-05/0.01454, allocations: 29.83 kB / 383.4 MB, free: 12.53 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.452e-05/0.01461, allocations: 68.25 kB / 383.5 MB, free: 12.45 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.01462, allocations: 0 / 383.5 MB, free: 12.45 MB / 362.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001202/0.01474, allocations: 89.05 kB / 383.6 MB, free: 12.34 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.235e-05/0.01479, allocations: 29.7 kB / 383.6 MB, free: 12.31 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.267e-06/0.0148, allocations: 3.984 kB / 383.6 MB, free: 12.3 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.76e-05/0.01481, allocations: 4 kB / 383.6 MB, free: 12.3 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.92e-07/0.01482, allocations: 0 / 383.6 MB, free: 12.3 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.738e-06/0.01483, allocations: 3.938 kB / 383.6 MB, free: 12.3 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.731e-05/0.01484, allocations: 4.094 kB / 383.6 MB, free: 12.29 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.402e-06/0.01485, allocations: 0 / 383.6 MB, free: 12.29 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 0.0001221/0.01497, allocations: 139.5 kB / 383.8 MB, free: 12.14 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.589e-05/0.01499, allocations: 3.953 kB / 383.8 MB, free: 12.14 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.989e-06/0.015, allocations: 3 kB / 383.8 MB, free: 12.14 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.23e-06/0.015, allocations: 4 kB / 383.8 MB, free: 12.13 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.529e-06/0.01501, allocations: 0 / 383.8 MB, free: 12.13 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000258/0.01527, allocations: 3.938 kB / 383.8 MB, free: 12.13 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001087/0.01537, allocations: 97.31 kB / 383.9 MB, free: 12 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.228e-06/0.01538, allocations: 4 kB / 383.9 MB, free: 12 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.42e-07/0.01538, allocations: 4 kB / 383.9 MB, free: 12 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.534e-06/0.01538, allocations: 0 / 383.9 MB, free: 12 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.805e-06/0.01539, allocations: 4 kB / 383.9 MB, free: 11.99 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.82e-07/0.01539, allocations: 0 / 383.9 MB, free: 11.99 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.681e-06/0.0154, allocations: 3.984 kB / 383.9 MB, free: 11.99 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001716/0.01557, allocations: 124.4 kB / 384 MB, free: 11.84 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.24e-06/0.01557, allocations: 0 / 384 MB, free: 11.84 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.365e-05/0.01559, allocations: 4 kB / 384 MB, free: 11.83 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.798e-06/0.0156, allocations: 0 / 384 MB, free: 11.83 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.808e-05/0.01561, allocations: 0 / 384 MB, free: 11.83 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.126e-06/0.01562, allocations: 0 / 384 MB, free: 11.83 MB / 362.7 MB Notification: Performance of sorting global known variables: time 5.245e-05/0.01567, allocations: 87.25 kB / 384.1 MB, free: 11.75 MB / 362.7 MB Notification: Performance of sort global known variables: time 8e-08/0.01567, allocations: 3.938 kB / 384.1 MB, free: 11.74 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.000622/0.01629, allocations: 163.3 kB / 384.3 MB, free: 11.58 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.001098/0.01739, allocations: 365.4 kB / 384.6 MB, free: 11.22 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.000169/0.01756, allocations: 122.8 kB / 384.8 MB, free: 11.08 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.01756, allocations: 0 / 384.8 MB, free: 11.08 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 7.199e-05/0.01763, allocations: 85.05 kB / 384.8 MB, free: 10.98 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001561/0.01779, allocations: 2.344 kB / 384.8 MB, free: 10.98 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002838/0.01807, allocations: 112.8 kB / 385 MB, free: 10.83 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.07e-05/0.01814, allocations: 55.36 kB / 385 MB, free: 10.76 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 5.941e-06/0.01815, allocations: 0 / 385 MB, free: 10.76 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.046e-05/0.01817, allocations: 8.5 kB / 385 MB, free: 10.75 MB / 362.7 MB Notification: Performance of SimCode: time 1.333e-06/0.01817, allocations: 0 / 385 MB, free: 10.75 MB / 362.7 MB Notification: Performance of Templates: time 0.009479/0.02765, allocations: 3.627 MB / 388.6 MB, free: 7.121 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=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestTruncatedDistributions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.145765007007867]