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.001737/0.001737, allocations: 116.2 kB / 18.49 MB, free: 4.559 MB / 14.72 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.002073/0.002073, allocations: 218.9 kB / 21.46 MB, free: 1.605 MB / 14.72 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.411/1.411, allocations: 230.6 MB / 254.8 MB, free: 15.22 MB / 206.1 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.223/0.223, allocations: 46.92 MB / 357.8 MB, free: 10.32 MB / 286.1 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: "" <> buildModelFMU(ModelicaTest.Math.Random.TestTruncatedDistributions,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Math_Random_TestTruncatedDistributions",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.Random.TestTruncatedDistributions,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Math_Random_TestTruncatedDistributions",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001951/0.001951, allocations: 63.91 kB / 0.4916 GB, free: 7.949 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1244/0.1263, allocations: 65.99 MB / 0.5561 GB, free: 5.836 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestTruncatedDistributions): time 0.001575/0.1279, allocations: 0.5028 MB / 0.5565 GB, free: 5.332 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.00341/0.1313, allocations: 2.388 MB / 0.5589 GB, free: 2.922 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.575e-05/0.1313, allocations: 0 / 0.5589 GB, free: 2.922 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 1.611e-05/0.1314, allocations: 0 / 0.5589 GB, free: 2.922 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 5.169e-06/0.1314, allocations: 4 kB / 0.5589 GB, free: 2.918 MB / 414.1 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.001534/0.1329, allocations: 0.5724 MB / 0.5594 GB, free: 2.344 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 5.14e-05/0.1329, allocations: 4 kB / 0.5594 GB, free: 2.34 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.651e-05/0.133, allocations: 0 / 0.5594 GB, free: 2.34 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.415e-05/0.133, allocations: 0 / 0.5594 GB, free: 2.34 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.432e-05/0.133, allocations: 0 / 0.5594 GB, free: 2.34 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 5.48e-06/0.133, allocations: 0 / 0.5594 GB, free: 2.34 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001203/0.1342, allocations: 0.737 MB / 0.5602 GB, free: 1.602 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 7.163e-06/0.1342, allocations: 0 / 0.5602 GB, free: 1.602 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 2.052e-05/0.1342, allocations: 7.984 kB / 0.5602 GB, free: 1.594 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006662/0.1349, allocations: 458.8 kB / 0.5606 GB, free: 1.145 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.677e-06/0.1349, allocations: 0 / 0.5606 GB, free: 1.145 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.754e-06/0.1349, allocations: 0 / 0.5606 GB, free: 1.145 MB / 414.1 MB Notification: Performance of Transformations before backend: time 5.049e-06/0.1349, allocations: 4 kB / 0.5606 GB, free: 1.141 MB / 414.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.0004988/0.1354, allocations: 444.1 kB / 0.561 GB, free: 0.6523 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.521e-05/0.1355, allocations: 12.03 kB / 0.561 GB, free: 0.6406 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2e-05/0.1355, allocations: 192 / 0.561 GB, free: 0.6406 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.393e-05/0.1355, allocations: 34.7 kB / 0.5611 GB, free: 0.5977 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.172e-05/0.1356, allocations: 0.9375 kB / 0.5611 GB, free: 0.5977 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001079/0.1357, allocations: 164.4 kB / 0.5612 GB, free: 408 kB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.668e-06/0.1357, allocations: 4.375 kB / 0.5612 GB, free: 404 kB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.512e-06/0.1357, allocations: 8.312 kB / 0.5613 GB, free: 396 kB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.342e-05/0.1358, allocations: 41.62 kB / 0.5613 GB, free: 348 kB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.694e-06/0.1358, allocations: 0 / 0.5613 GB, free: 348 kB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.843e-06/0.1358, allocations: 0 / 0.5613 GB, free: 348 kB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.848e-06/0.1358, allocations: 0 / 0.5613 GB, free: 348 kB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.042e-05/0.1358, allocations: 4 kB / 0.5613 GB, free: 344 kB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002386/0.136, allocations: 228.9 kB / 0.5615 GB, free: 64 kB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.845e-05/0.1361, allocations: 30.52 kB / 0.5615 GB, free: 24 kB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.698e-05/0.1361, allocations: 12.91 kB / 0.5616 GB, free: 8 kB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.678e-06/0.1361, allocations: 0 / 0.5616 GB, free: 8 kB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.9e-05/0.1362, allocations: 60.27 kB / 0.5616 GB, free: 15.93 MB / 430.1 MB Notification: Performance of pre-optimization done (n=2): time 9.21e-07/0.1362, allocations: 0 / 0.5616 GB, free: 15.93 MB / 430.1 MB Notification: Performance of matching and sorting (n=2): time 0.0001907/0.1364, allocations: 67.39 kB / 0.5617 GB, free: 15.86 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.27e-05/0.1365, allocations: 77.11 kB / 0.5617 GB, free: 15.76 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.903e-05/0.1365, allocations: 101.9 kB / 0.5618 GB, free: 15.65 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 1.387e-05/0.1365, allocations: 25.7 kB / 0.5619 GB, free: 15.62 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.212e-05/0.1366, allocations: 84.14 kB / 0.562 GB, free: 15.54 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.13e-05/0.1366, allocations: 3.953 kB / 0.562 GB, free: 15.53 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.949e-05/0.1366, allocations: 13.72 kB / 0.562 GB, free: 15.51 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001277/0.1367, allocations: 310.8 kB / 0.5623 GB, free: 15.2 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.536e-05/0.1367, allocations: 7.938 kB / 0.5623 GB, free: 15.19 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.171e-05/0.1368, allocations: 7.984 kB / 0.5623 GB, free: 15.18 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.393e-05/0.1368, allocations: 68.27 kB / 0.5623 GB, free: 15.1 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.744e-06/0.1368, allocations: 0 / 0.5623 GB, free: 15.1 MB / 430.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 8.154e-05/0.1369, allocations: 63.41 kB / 0.5624 GB, free: 15.03 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.809e-05/0.1369, allocations: 39.56 kB / 0.5624 GB, free: 14.98 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.907e-06/0.1369, allocations: 0 / 0.5624 GB, free: 14.98 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.272e-05/0.1369, allocations: 0 / 0.5624 GB, free: 14.98 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.401e-05/0.137, allocations: 3.938 kB / 0.5624 GB, free: 14.98 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.99e-06/0.137, allocations: 3.938 kB / 0.5625 GB, free: 14.98 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.979e-05/0.137, allocations: 7.984 kB / 0.5625 GB, free: 14.97 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.791e-06/0.137, allocations: 4.031 kB / 0.5625 GB, free: 14.96 MB / 430.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: 2 ($outputAlias_result,result) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 1 * 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.0001041/0.1371, allocations: 139.5 kB / 0.5626 GB, free: 14.81 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.766e-05/0.1371, allocations: 8 kB / 0.5626 GB, free: 14.8 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.208e-05/0.1371, allocations: 3.125 kB / 0.5626 GB, free: 14.8 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.283e-06/0.1371, allocations: 0 / 0.5626 GB, free: 14.8 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.497e-06/0.1371, allocations: 0 / 0.5626 GB, free: 14.8 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.739e-06/0.1371, allocations: 3.984 kB / 0.5626 GB, free: 14.8 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002629/0.1374, allocations: 296.3 kB / 0.5629 GB, free: 14.45 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.012e-06/0.1374, allocations: 4.031 kB / 0.5629 GB, free: 14.45 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.837e-06/0.1374, allocations: 0 / 0.5629 GB, free: 14.45 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.643e-06/0.1374, allocations: 3.938 kB / 0.5629 GB, free: 14.44 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.031e-06/0.1374, allocations: 0 / 0.5629 GB, free: 14.44 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.71e-07/0.1374, allocations: 0 / 0.5629 GB, free: 14.44 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.438e-06/0.1374, allocations: 4 kB / 0.5629 GB, free: 14.44 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00013/0.1376, allocations: 169.2 kB / 0.5631 GB, free: 14.25 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.658e-05/0.1376, allocations: 77.11 kB / 0.5631 GB, free: 14.16 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.325e-05/0.1376, allocations: 8.031 kB / 0.5631 GB, free: 14.15 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.172e-05/0.1376, allocations: 0 / 0.5631 GB, free: 14.15 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.474e-05/0.1377, allocations: 3.984 kB / 0.5631 GB, free: 14.14 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.845e-06/0.1377, allocations: 0 / 0.5631 GB, free: 14.14 MB / 430.1 MB Notification: Performance of sorting global known variables: time 3.311e-05/0.1377, allocations: 79.22 kB / 0.5632 GB, free: 14.07 MB / 430.1 MB Notification: Performance of sort global known variables: time 6e-08/0.1377, allocations: 0 / 0.5632 GB, free: 14.07 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0004888/0.1382, allocations: 163.3 kB / 0.5634 GB, free: 13.91 MB / 430.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: 2 (result,$outputAlias_result) * Number of discrete states: 1 ($outputAlias_result) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 1 * 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.001149/0.1393, allocations: 0.9488 MB / 0.5643 GB, free: 12.93 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0001257/0.1395, allocations: 63.39 kB / 0.5644 GB, free: 12.86 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.1395, allocations: 96 / 0.5644 GB, free: 12.86 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 4.46e-05/0.1395, allocations: 63.41 kB / 0.5644 GB, free: 12.78 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001884/0.1397, allocations: 4 kB / 0.5644 GB, free: 12.78 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001049/0.1407, allocations: 1.218 MB / 0.5656 GB, free: 11.47 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003038/0.1411, allocations: 0.6729 MB / 0.5663 GB, free: 10.77 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 1.07e-05/0.1411, allocations: 0 / 0.5663 GB, free: 10.77 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.001e-05/0.1411, allocations: 11.38 kB / 0.5663 GB, free: 10.76 MB / 430.1 MB Notification: Performance of SimCode: time 2.81e-07/0.1411, allocations: 0 / 0.5663 GB, free: 10.76 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02139/0.1625, allocations: 4.676 MB / 0.5709 GB, free: 6.207 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.168/8.33, allocations: 21.44 kB / 0.5709 GB, free: 6.191 MB / 430.1 MB " [Timeout remaining time 652] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestTruncatedDistributions_res.mat --tempDir=temp_ModelicaTest_4_1_0_ModelicaTest_Math_Random_TestTruncatedDistributions_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0_ModelicaTest_Math_Random_TestTruncatedDistributions.fmu > ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestTruncatedDistributions_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Math/Random/TestTruncatedDistributions/TestTruncatedDistributions.csv","/var/lib/jenkins1/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: 11.245493432041258]