Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Math.Random.TestTruncatedDistributions,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Math_Random_TestTruncatedDistributions",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.Random.TestTruncatedDistributions,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Math_Random_TestTruncatedDistributions",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007275/0.0007276, allocations: 96.47 kB / 17 MB, free: 6.078 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008089/0.000809, allocations: 183.2 kB / 17.89 MB, free: 5.66 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.347/1.347, allocations: 223.2 MB / 241.9 MB, free: 256 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.199/0.199, allocations: 44.23 MB / 337.2 MB, free: 2.805 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003399/0.00034, allocations: 12.72 kB / 409.7 MB, free: 27.61 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1028/0.1031, allocations: 61.93 MB / 471.7 MB, free: 13.64 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestTruncatedDistributions): time 0.0004836/0.1037, allocations: 218.9 kB / 471.9 MB, free: 13.43 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002636/0.1063, allocations: 2.171 MB / 474 MB, free: 11.23 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.509e-05/0.1063, allocations: 4 kB / 474 MB, free: 11.23 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.196e-05/0.1064, allocations: 0 / 474 MB, free: 11.23 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.771e-06/0.1064, allocations: 0 / 474 MB, free: 11.23 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.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.001146/0.1075, allocations: 474.4 kB / 474.5 MB, free: 10.77 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 2.774e-05/0.1076, allocations: 3.984 kB / 474.5 MB, free: 10.77 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.492e-05/0.1076, allocations: 0 / 474.5 MB, free: 10.77 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.377e-05/0.1076, allocations: 3.984 kB / 474.5 MB, free: 10.76 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.621e-05/0.1076, allocations: 4 kB / 474.5 MB, free: 10.76 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.12e-06/0.1077, allocations: 4 kB / 474.5 MB, free: 10.75 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009982/0.1087, allocations: 0.6901 MB / 475.2 MB, free: 10.06 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.28e-06/0.1087, allocations: 0 / 475.2 MB, free: 10.06 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.582e-05/0.1087, allocations: 33.7 kB / 475.2 MB, free: 10.02 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003878/0.1091, allocations: 291.7 kB / 475.5 MB, free: 9.738 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.636e-06/0.1091, allocations: 4 kB / 475.5 MB, free: 9.734 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.243e-06/0.1091, allocations: 0 / 475.5 MB, free: 9.734 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.996e-06/0.1091, allocations: 0 / 475.5 MB, free: 9.734 MB / 350.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.0003534/0.1095, allocations: 439.4 kB / 476 MB, free: 9.254 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.243e-05/0.1095, allocations: 12.03 kB / 476 MB, free: 9.242 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.809e-05/0.1096, allocations: 30.56 kB / 476 MB, free: 9.203 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.82e-05/0.1096, allocations: 0 / 476 MB, free: 9.203 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.309e-05/0.1097, allocations: 159.1 kB / 476.2 MB, free: 9.008 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.251e-05/0.1097, allocations: 11.98 kB / 476.2 MB, free: 8.996 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.906e-06/0.1097, allocations: 3.953 kB / 476.2 MB, free: 8.992 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.27e-05/0.1098, allocations: 29.7 kB / 476.2 MB, free: 8.957 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.17e-06/0.1098, allocations: 0 / 476.2 MB, free: 8.957 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.322e-06/0.1098, allocations: 0 / 476.2 MB, free: 8.957 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.556e-06/0.1098, allocations: 0 / 476.2 MB, free: 8.957 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.726e-05/0.1099, allocations: 8 kB / 476.2 MB, free: 8.949 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000206/0.1101, allocations: 236.8 kB / 476.4 MB, free: 8.668 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.231e-05/0.1101, allocations: 22.61 kB / 476.5 MB, free: 8.637 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.018e-05/0.1101, allocations: 12.92 kB / 476.5 MB, free: 8.621 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.204e-06/0.1102, allocations: 0 / 476.5 MB, free: 8.621 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.866e-05/0.1102, allocations: 64.25 kB / 476.5 MB, free: 8.543 MB / 350.1 MB Notification: Performance of pre-optimization done (n=2): time 8.42e-07/0.1102, allocations: 0 / 476.5 MB, free: 8.543 MB / 350.1 MB Notification: Performance of matching and sorting (n=2): time 0.0001704/0.1104, allocations: 71.34 kB / 476.6 MB, free: 8.461 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.72e-05/0.1104, allocations: 77.11 kB / 476.7 MB, free: 8.367 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.594e-05/0.1105, allocations: 97.75 kB / 476.8 MB, free: 8.262 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.061e-05/0.1105, allocations: 29.7 kB / 476.8 MB, free: 8.227 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.377e-05/0.1105, allocations: 80.14 kB / 476.9 MB, free: 8.145 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.545e-05/0.1105, allocations: 3.938 kB / 476.9 MB, free: 8.141 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.255e-06/0.1106, allocations: 4.125 kB / 476.9 MB, free: 8.137 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001/0.1107, allocations: 314.8 kB / 477.2 MB, free: 7.82 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.054e-05/0.1107, allocations: 4 kB / 477.2 MB, free: 7.816 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.941e-06/0.1107, allocations: 3.938 kB / 477.2 MB, free: 7.812 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.839e-05/0.1107, allocations: 29.7 kB / 477.2 MB, free: 7.777 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.045e-05/0.1107, allocations: 0 / 477.2 MB, free: 7.777 MB / 350.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 7.079e-05/0.1108, allocations: 79.22 kB / 477.3 MB, free: 7.684 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.666e-05/0.1108, allocations: 33.7 kB / 477.4 MB, free: 7.645 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.107e-06/0.1109, allocations: 96 / 477.4 MB, free: 7.645 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.417e-06/0.1109, allocations: 4 kB / 477.4 MB, free: 7.641 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.266e-05/0.1109, allocations: 0 / 477.4 MB, free: 7.641 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.927e-06/0.1109, allocations: 0 / 477.4 MB, free: 7.641 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.522e-05/0.1109, allocations: 0 / 477.4 MB, free: 7.641 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.332e-06/0.1109, allocations: 0 / 477.4 MB, free: 7.641 MB / 350.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 (result,$outputAlias_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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.043e-05/0.111, allocations: 140.1 kB / 477.5 MB, free: 7.488 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.195e-05/0.111, allocations: 3.953 kB / 477.5 MB, free: 7.484 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.604e-05/0.1111, allocations: 7.078 kB / 477.5 MB, free: 7.477 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.695e-06/0.1111, allocations: 7.984 kB / 477.5 MB, free: 7.469 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.637e-06/0.1111, allocations: 4 kB / 477.5 MB, free: 7.465 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.435e-06/0.1111, allocations: 0 / 477.5 MB, free: 7.465 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002377/0.1113, allocations: 304.2 kB / 477.8 MB, free: 7.105 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.755e-06/0.1113, allocations: 4 kB / 477.8 MB, free: 7.102 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.547e-06/0.1113, allocations: 0 / 477.8 MB, free: 7.102 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.005e-06/0.1114, allocations: 3.984 kB / 477.8 MB, free: 7.098 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.641e-06/0.1114, allocations: 0 / 477.8 MB, free: 7.098 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.062e-06/0.1114, allocations: 0 / 477.8 MB, free: 7.098 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.01e-07/0.1114, allocations: 0 / 477.8 MB, free: 7.098 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001107/0.1115, allocations: 173.3 kB / 478 MB, free: 6.906 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.9e-05/0.1115, allocations: 81.06 kB / 478.1 MB, free: 6.809 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.116e-05/0.1116, allocations: 0 / 478.1 MB, free: 6.809 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.246e-05/0.1116, allocations: 0 / 478.1 MB, free: 6.809 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.954e-05/0.1116, allocations: 8 kB / 478.1 MB, free: 6.801 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.436e-06/0.1116, allocations: 0 / 478.1 MB, free: 6.801 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.343e-05/0.1117, allocations: 75.28 kB / 478.2 MB, free: 6.727 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.704e-06/0.1117, allocations: 4.031 kB / 478.2 MB, free: 6.723 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004365/0.1121, allocations: 155.9 kB / 478.3 MB, free: 6.57 MB / 350.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009891/0.1131, allocations: 0.9337 MB / 479.2 MB, free: 5.609 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 8.789e-05/0.1132, allocations: 63.39 kB / 479.3 MB, free: 5.535 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.668e-06/0.1132, allocations: 4 kB / 479.3 MB, free: 5.531 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.304e-05/0.1133, allocations: 63.34 kB / 479.4 MB, free: 5.457 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000179/0.1134, allocations: 4 kB / 479.4 MB, free: 5.453 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004915/0.1139, allocations: 368.7 kB / 479.7 MB, free: 5.043 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002358/0.1142, allocations: 0.6692 MB / 480.4 MB, free: 4.348 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.086e-05/0.1142, allocations: 0 / 480.4 MB, free: 4.348 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.887e-05/0.1142, allocations: 11.44 kB / 480.4 MB, free: 4.336 MB / 350.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1142, allocations: 0 / 480.4 MB, free: 4.336 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01453/0.1288, allocations: 4.32 MB / 484.7 MB, free: 148 kB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001784/0.129, allocations: 238.2 kB / 485 MB, free: 15.91 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.041/2.17, allocations: 0 / 485 MB, free: 15.91 MB / 366.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Math_Random_TestTruncatedDistributions_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Math_Random_TestTruncatedDistributions.fmu > ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions_res.mat does not exist to compare? outputFormat=mat