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.001787/0.001787, allocations: 107.1 kB / 20.44 MB, free: 1.344 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.002735/0.002735, allocations: 209 kB / 23.73 MB, free: 4.523 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.461/1.461, allocations: 230.6 MB / 257.5 MB, free: 7.781 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.2427/0.2427, allocations: 46.96 MB / 360.9 MB, free: 4.121 MB / 286.1 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: "" <> buildModelFMU(ModelicaTest.Math.Random.TestTruncatedDistributions,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Math_Random_TestTruncatedDistributions",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.Random.TestTruncatedDistributions,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Math_Random_TestTruncatedDistributions",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00216/0.00216, allocations: 67.91 kB / 0.4961 GB, free: 7.723 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3603/0.3625, allocations: 66.04 MB / 0.5606 GB, free: 4.215 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestTruncatedDistributions): time 0.001699/0.3642, allocations: 0.5009 MB / 0.5611 GB, free: 3.711 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003439/0.3676, allocations: 2.237 MB / 0.5633 GB, free: 1.453 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.478e-05/0.3677, allocations: 0 / 0.5633 GB, free: 1.453 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.767e-05/0.3677, allocations: 0 / 0.5633 GB, free: 1.453 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.262e-06/0.3677, allocations: 0 / 0.5633 GB, free: 1.453 MB / 398.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.001633/0.3693, allocations: 0.5917 MB / 0.5638 GB, free: 0.8633 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.198e-05/0.3694, allocations: 7.984 kB / 0.5638 GB, free: 0.8555 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.937e-05/0.3694, allocations: 0 / 0.5638 GB, free: 0.8555 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.428e-05/0.3694, allocations: 0 / 0.5638 GB, free: 0.8555 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.167e-05/0.3694, allocations: 3.938 kB / 0.5638 GB, free: 0.8516 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.18e-06/0.3694, allocations: 0 / 0.5638 GB, free: 0.8516 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00119/0.3706, allocations: 0.7214 MB / 0.5646 GB, free: 132 kB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 8.806e-06/0.3706, allocations: 0 / 0.5646 GB, free: 132 kB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.898e-05/0.3707, allocations: 7.938 kB / 0.5646 GB, free: 124 kB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006396/0.3713, allocations: 448.7 kB / 0.565 GB, free: 15.68 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.547e-06/0.3713, allocations: 0 / 0.565 GB, free: 15.68 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.362e-06/0.3713, allocations: 0 / 0.565 GB, free: 15.68 MB / 414.1 MB Notification: Performance of Transformations before backend: time 9.287e-06/0.3713, allocations: 0 / 0.565 GB, free: 15.68 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.0004543/0.3718, allocations: 367.1 kB / 0.5653 GB, free: 15.29 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.983e-05/0.3718, allocations: 11.97 kB / 0.5653 GB, free: 15.28 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.856e-05/0.3719, allocations: 42.7 kB / 0.5654 GB, free: 15.23 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.465e-05/0.3719, allocations: 0.9375 kB / 0.5654 GB, free: 15.23 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.845e-05/0.372, allocations: 102.5 kB / 0.5655 GB, free: 15.1 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.122e-05/0.372, allocations: 4.312 kB / 0.5655 GB, free: 15.1 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.524e-05/0.372, allocations: 4.375 kB / 0.5655 GB, free: 15.09 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001278/0.3721, allocations: 67.52 kB / 0.5656 GB, free: 15.02 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.123e-06/0.3721, allocations: 0 / 0.5656 GB, free: 15.02 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.173e-06/0.3721, allocations: 3.938 kB / 0.5656 GB, free: 15.01 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.649e-06/0.3721, allocations: 0 / 0.5656 GB, free: 15.01 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.057e-05/0.3722, allocations: 33.69 kB / 0.5656 GB, free: 14.97 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002541/0.3724, allocations: 208 kB / 0.5658 GB, free: 14.73 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.965e-05/0.3725, allocations: 48.22 kB / 0.5658 GB, free: 14.66 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.852e-05/0.3726, allocations: 38.62 kB / 0.5659 GB, free: 14.62 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.377e-05/0.3726, allocations: 3.984 kB / 0.5659 GB, free: 14.61 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.468e-05/0.3726, allocations: 60.27 kB / 0.5659 GB, free: 14.54 MB / 414.1 MB Notification: Performance of pre-optimization done (n=2): time 1.082e-06/0.3726, allocations: 0 / 0.5659 GB, free: 14.54 MB / 414.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002436/0.3729, allocations: 122.8 kB / 0.5661 GB, free: 14.39 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.344e-05/0.3729, allocations: 81.05 kB / 0.5661 GB, free: 14.3 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.024e-05/0.373, allocations: 89.86 kB / 0.5662 GB, free: 14.2 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.766e-05/0.373, allocations: 29.83 kB / 0.5662 GB, free: 14.16 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.931e-05/0.373, allocations: 80.14 kB / 0.5663 GB, free: 14.08 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.014e-05/0.3731, allocations: 8 kB / 0.5663 GB, free: 14.07 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.912e-05/0.3731, allocations: 9.719 kB / 0.5663 GB, free: 14.06 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001348/0.3732, allocations: 314.8 kB / 0.5666 GB, free: 13.74 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.656e-05/0.3732, allocations: 25.7 kB / 0.5667 GB, free: 13.71 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.567e-05/0.3733, allocations: 37.69 kB / 0.5667 GB, free: 13.67 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.674e-05/0.3733, allocations: 60.27 kB / 0.5668 GB, free: 13.59 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.859e-06/0.3733, allocations: 3.938 kB / 0.5668 GB, free: 13.59 MB / 414.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001055/0.3734, allocations: 101.2 kB / 0.5669 GB, free: 13.47 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.349e-05/0.3735, allocations: 29.7 kB / 0.5669 GB, free: 13.44 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.138e-06/0.3735, allocations: 0 / 0.5669 GB, free: 13.44 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.429e-05/0.3735, allocations: 3.938 kB / 0.5669 GB, free: 13.43 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.742e-05/0.3735, allocations: 8 kB / 0.5669 GB, free: 13.43 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.558e-06/0.3735, allocations: 0 / 0.5669 GB, free: 13.43 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.667e-05/0.3735, allocations: 3.953 kB / 0.5669 GB, free: 13.42 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.464e-06/0.3735, allocations: 0 / 0.5669 GB, free: 13.42 MB / 414.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.0001208/0.3737, allocations: 147.5 kB / 0.567 GB, free: 13.26 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.138e-05/0.3737, allocations: 0 / 0.567 GB, free: 13.26 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.075e-05/0.3737, allocations: 7.141 kB / 0.567 GB, free: 13.25 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.203e-06/0.3737, allocations: 4.031 kB / 0.5671 GB, free: 13.25 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.157e-06/0.3737, allocations: 4 kB / 0.5671 GB, free: 13.24 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.935e-06/0.3737, allocations: 3.938 kB / 0.5671 GB, free: 13.24 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003595/0.3741, allocations: 293.1 kB / 0.5673 GB, free: 12.89 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.41e-07/0.3741, allocations: 3.938 kB / 0.5673 GB, free: 12.89 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.861e-06/0.3741, allocations: 3.938 kB / 0.5673 GB, free: 12.88 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.303e-06/0.3741, allocations: 0 / 0.5673 GB, free: 12.88 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.384e-06/0.3741, allocations: 0 / 0.5673 GB, free: 12.88 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.01e-07/0.3741, allocations: 0 / 0.5673 GB, free: 12.88 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.61e-07/0.3741, allocations: 0 / 0.5673 GB, free: 12.88 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001787/0.3743, allocations: 203 kB / 0.5675 GB, free: 12.66 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.231e-05/0.3743, allocations: 11.94 kB / 0.5676 GB, free: 12.64 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.4e-05/0.3743, allocations: 3.984 kB / 0.5676 GB, free: 12.64 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.085e-05/0.3743, allocations: 0 / 0.5676 GB, free: 12.64 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.067e-05/0.3744, allocations: 0 / 0.5676 GB, free: 12.64 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.561e-06/0.3744, allocations: 4 kB / 0.5676 GB, free: 12.64 MB / 414.1 MB Notification: Performance of sorting global known variables: time 3.826e-05/0.3744, allocations: 79.28 kB / 0.5676 GB, free: 12.56 MB / 414.1 MB Notification: Performance of sort global known variables: time 5e-08/0.3744, allocations: 0 / 0.5676 GB, free: 12.56 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0004783/0.3749, allocations: 167.3 kB / 0.5678 GB, free: 12.39 MB / 414.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.001217/0.3761, allocations: 0.9945 MB / 0.5688 GB, free: 11.36 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001608/0.3763, allocations: 118.8 kB / 0.5689 GB, free: 11.22 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.3763, allocations: 0 / 0.5689 GB, free: 11.22 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 6.942e-05/0.3763, allocations: 89.09 kB / 0.569 GB, free: 11.12 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000187/0.3765, allocations: 7.875 kB / 0.569 GB, free: 11.11 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001131/0.3776, allocations: 1.348 MB / 0.5703 GB, free: 9.645 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.594e-05/0.3777, allocations: 55.36 kB / 0.5703 GB, free: 9.57 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 1.262e-05/0.3777, allocations: 3.938 kB / 0.5703 GB, free: 9.566 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.005e-05/0.3777, allocations: 11.38 kB / 0.5704 GB, free: 9.555 MB / 414.1 MB Notification: Performance of SimCode: time 4.11e-07/0.3777, allocations: 0 / 0.5704 GB, free: 9.555 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03171/0.4094, allocations: 5.201 MB / 0.5754 GB, free: 4.488 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.19/11.6, allocations: 0 / 0.5754 GB, free: 4.488 MB / 414.1 MB " [Timeout remaining time 648] (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: 14.530318436998641]