Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_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.001385/0.001385, allocations: 119.6 kB / 17.83 MB, free: 5.242 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.001439/0.001439, allocations: 203 kB / 20.79 MB, free: 2.297 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.58/1.58, allocations: 207.6 MB / 231.2 MB, free: 4.09 MB / 174.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.4098/0.4098, allocations: 44.23 MB / 327.3 MB, free: 6.691 MB / 254.1 MB " [Timeout remaining time 179] Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_ModelicaTest_Math_Random_TestTruncatedDistributions",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.Random.TestTruncatedDistributions,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Math_Random_TestTruncatedDistributions",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002269/0.002269, allocations: 67.91 kB / 462.9 MB, free: 0.8984 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3294/0.3317, allocations: 61 MB / 0.5116 GB, free: 13.15 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestTruncatedDistributions): time 0.001691/0.3334, allocations: 0.5153 MB / 0.5121 GB, free: 12.76 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00288/0.3363, allocations: 2.347 MB / 0.5144 GB, free: 10.92 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.932e-05/0.3363, allocations: 0 / 0.5144 GB, free: 10.92 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 2.327e-05/0.3363, allocations: 3.938 kB / 0.5144 GB, free: 10.91 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 7.253e-06/0.3363, allocations: 0 / 0.5144 GB, free: 10.91 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001547/0.3379, allocations: 0.5618 MB / 0.515 GB, free: 10.59 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 6.41e-05/0.3379, allocations: 8 kB / 0.515 GB, free: 10.58 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.331e-05/0.338, allocations: 5.719 kB / 0.515 GB, free: 10.57 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.966e-05/0.338, allocations: 1.781 kB / 0.515 GB, free: 10.57 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.926e-05/0.338, allocations: 3.984 kB / 0.515 GB, free: 10.57 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.241e-06/0.338, allocations: 0 / 0.515 GB, free: 10.57 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001168/0.3392, allocations: 0.7178 MB / 0.5157 GB, free: 10.16 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.19e-05/0.3392, allocations: 1.375 kB / 0.5157 GB, free: 10.16 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 3.008e-05/0.3393, allocations: 9.359 kB / 0.5157 GB, free: 10.15 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006279/0.3399, allocations: 450.5 kB / 0.5161 GB, free: 9.887 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.679e-06/0.3399, allocations: 0 / 0.5161 GB, free: 9.887 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.994e-06/0.3399, allocations: 0 / 0.5161 GB, free: 9.887 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.392e-06/0.3399, allocations: 1.25 kB / 0.5161 GB, free: 9.887 MB / 382.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.0004569/0.3404, allocations: 441 kB / 0.5166 GB, free: 9.43 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.35e-05/0.3404, allocations: 17.2 kB / 0.5166 GB, free: 9.422 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.44e-05/0.3404, allocations: 1.562 kB / 0.5166 GB, free: 9.422 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.779e-05/0.3405, allocations: 34.73 kB / 0.5166 GB, free: 9.379 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.023e-05/0.3405, allocations: 6.406 kB / 0.5166 GB, free: 9.375 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.423e-05/0.3406, allocations: 160.4 kB / 0.5168 GB, free: 9.18 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.27e-05/0.3406, allocations: 1.781 kB / 0.5168 GB, free: 9.18 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.814e-06/0.3406, allocations: 384 / 0.5168 GB, free: 9.18 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.965e-05/0.3407, allocations: 37.77 kB / 0.5168 GB, free: 9.141 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.846e-06/0.3407, allocations: 3.984 kB / 0.5168 GB, free: 9.137 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.997e-06/0.3407, allocations: 5.094 kB / 0.5168 GB, free: 9.133 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.679e-06/0.3407, allocations: 0 / 0.5168 GB, free: 9.133 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.262e-05/0.3407, allocations: 2.438 kB / 0.5168 GB, free: 9.133 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001895/0.3409, allocations: 232.3 kB / 0.517 GB, free: 8.859 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.204e-05/0.341, allocations: 22.38 kB / 0.5171 GB, free: 8.832 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.28e-05/0.341, allocations: 9.172 kB / 0.5171 GB, free: 8.824 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.057e-05/0.341, allocations: 4 kB / 0.5171 GB, free: 8.82 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.083e-05/0.341, allocations: 62.48 kB / 0.5171 GB, free: 8.746 MB / 382.1 MB Notification: Performance of pre-optimization done (n=2): time 1.062e-06/0.341, allocations: 0 / 0.5171 GB, free: 8.746 MB / 382.1 MB Notification: Performance of matching and sorting (n=2): time 0.0001954/0.3412, allocations: 74.59 kB / 0.5172 GB, free: 8.672 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.134e-05/0.3413, allocations: 82.39 kB / 0.5173 GB, free: 8.574 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.873e-05/0.3413, allocations: 89.86 kB / 0.5174 GB, free: 8.477 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 8.786e-06/0.3413, allocations: 25.7 kB / 0.5174 GB, free: 8.445 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.6e-05/0.3413, allocations: 81.58 kB / 0.5175 GB, free: 8.363 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.012e-05/0.3414, allocations: 7.953 kB / 0.5175 GB, free: 8.355 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.61e-05/0.3414, allocations: 13.22 kB / 0.5175 GB, free: 8.34 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.582e-05/0.3414, allocations: 318.8 kB / 0.5178 GB, free: 8.02 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.188e-05/0.3415, allocations: 2.562 kB / 0.5178 GB, free: 8.02 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.604e-06/0.3415, allocations: 1.125 kB / 0.5178 GB, free: 8.02 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.157e-05/0.3415, allocations: 66.95 kB / 0.5179 GB, free: 7.945 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.563e-06/0.3415, allocations: 0 / 0.5179 GB, free: 7.945 MB / 382.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 6.23e-05/0.3416, allocations: 80.92 kB / 0.5179 GB, free: 7.863 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.853e-05/0.3416, allocations: 34.27 kB / 0.518 GB, free: 7.828 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.34e-06/0.3416, allocations: 0.6875 kB / 0.518 GB, free: 7.828 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.529e-05/0.3416, allocations: 0.875 kB / 0.518 GB, free: 7.828 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.646e-05/0.3416, allocations: 0 / 0.518 GB, free: 7.828 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.091e-06/0.3416, allocations: 1.469 kB / 0.518 GB, free: 7.828 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.752e-05/0.3417, allocations: 0 / 0.518 GB, free: 7.828 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.428e-06/0.3417, allocations: 1.656 kB / 0.518 GB, free: 7.828 MB / 382.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 7.888e-05/0.3418, allocations: 146.2 kB / 0.5181 GB, free: 7.672 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.466e-05/0.3418, allocations: 8.016 kB / 0.5181 GB, free: 7.664 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.979e-05/0.3418, allocations: 4.5 kB / 0.5181 GB, free: 7.656 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.42e-07/0.3418, allocations: 0 / 0.5181 GB, free: 7.656 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.504e-06/0.3418, allocations: 4 kB / 0.5181 GB, free: 7.652 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.018e-06/0.3418, allocations: 1.406 kB / 0.5181 GB, free: 7.652 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002082/0.342, allocations: 298.2 kB / 0.5184 GB, free: 7.312 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.002e-06/0.342, allocations: 0 / 0.5184 GB, free: 7.312 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.978e-06/0.342, allocations: 1.406 kB / 0.5184 GB, free: 7.312 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.222e-06/0.342, allocations: 0 / 0.5184 GB, free: 7.312 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.346e-06/0.342, allocations: 1.406 kB / 0.5184 GB, free: 7.312 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.042e-06/0.342, allocations: 4.031 kB / 0.5184 GB, free: 7.309 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.814e-06/0.342, allocations: 3.984 kB / 0.5184 GB, free: 7.305 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.205e-05/0.3421, allocations: 167.6 kB / 0.5186 GB, free: 7.133 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.833e-05/0.3421, allocations: 81.09 kB / 0.5187 GB, free: 7.035 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.359e-05/0.3421, allocations: 1.375 kB / 0.5187 GB, free: 7.035 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.244e-05/0.3422, allocations: 1.5 kB / 0.5187 GB, free: 7.035 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.673e-05/0.3422, allocations: 0 / 0.5187 GB, free: 7.035 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.705e-06/0.3422, allocations: 5.469 kB / 0.5187 GB, free: 7.031 MB / 382.1 MB Notification: Performance of sorting global known variables: time 1.625e-05/0.3422, allocations: 79.25 kB / 0.5188 GB, free: 6.953 MB / 382.1 MB Notification: Performance of sort global known variables: time 4.1e-08/0.3422, allocations: 5.062 kB / 0.5188 GB, free: 6.949 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0005169/0.3427, allocations: 161.3 kB / 0.5189 GB, free: 6.895 MB / 382.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.001033/0.3438, allocations: 0.9484 MB / 0.5198 GB, free: 6.074 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001277/0.3439, allocations: 66.27 kB / 0.5199 GB, free: 6.004 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.3439, allocations: 0 / 0.5199 GB, free: 6.004 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 2.537e-05/0.3439, allocations: 60.84 kB / 0.52 GB, free: 5.938 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000197/0.3441, allocations: 5.312 kB / 0.52 GB, free: 5.934 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008232/0.345, allocations: 1.231 MB / 0.5212 GB, free: 4.652 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001253/0.3451, allocations: 0.669 MB / 0.5218 GB, free: 3.957 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 1.09e-05/0.3451, allocations: 0 / 0.5218 GB, free: 3.957 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.863e-05/0.3451, allocations: 11.44 kB / 0.5218 GB, free: 3.945 MB / 382.1 MB Notification: Performance of SimCode: time 3.1e-07/0.3451, allocations: 0 / 0.5218 GB, free: 3.945 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02224/0.3673, allocations: 4.583 MB / 0.5263 GB, free: 15.37 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.506/8.873, allocations: 8 kB / 0.5263 GB, free: 15.36 MB / 398.1 MB " [Timeout remaining time 651] (rm -f ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestTruncatedDistributions.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestTruncatedDistributions_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Math_Random_TestTruncatedDistributions_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Math_Random_TestTruncatedDistributions.fmu > ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestTruncatedDistributions_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Math/Random/TestTruncatedDistributions/TestTruncatedDistributions.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_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.97421369398944]