Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Math.Random.TestTruncatedDistributions.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008353/0.0008353, allocations: 80.34 kB / 20.67 MB, free: 3.891 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001066/0.001066, allocations: 156.9 kB / 23.94 MB, free: 0.6172 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9422/0.9422, allocations: 177 MB / 204.1 MB, free: 5.742 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2461/0.2461, allocations: 34.24 MB / 294.8 MB, free: 0.6836 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Math.Random.TestTruncatedDistributions,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Math_Random_TestTruncatedDistributions",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.Random.TestTruncatedDistributions,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Math_Random_TestTruncatedDistributions",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.084e-06/2.084e-06, allocations: 0 / 442.1 MB, free: 1.574 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.627e-05/2.835e-05, allocations: 4.812 kB / 442.2 MB, free: 1.57 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestTruncatedDistributions): time 0.001292/0.00132, allocations: 0.5011 MB / 442.7 MB, free: 1.07 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.2013/0.2026, allocations: 2.245 MB / 444.9 MB, free: 43.07 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.697e-05/0.2026, allocations: 0 / 444.9 MB, free: 43.07 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 1.639e-05/0.2027, allocations: 2.812 kB / 444.9 MB, free: 43.07 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 6.192e-06/0.2027, allocations: 0 / 444.9 MB, free: 43.07 MB / 410.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/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.001094/0.2038, allocations: 0.5805 MB / 445.5 MB, free: 42.94 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 6.23e-05/0.2038, allocations: 9.219 kB / 445.5 MB, free: 42.94 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.538e-05/0.2039, allocations: 2.062 kB / 445.5 MB, free: 42.94 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.013e-05/0.2039, allocations: 3.984 kB / 445.5 MB, free: 42.93 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.546e-05/0.2039, allocations: 2.688 kB / 445.5 MB, free: 42.93 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 7.705e-06/0.2039, allocations: 0 / 445.5 MB, free: 42.93 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007216/0.2047, allocations: 0.6782 MB / 446.2 MB, free: 42.86 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 8.616e-06/0.2047, allocations: 3.438 kB / 446.2 MB, free: 42.86 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 2.011e-05/0.2047, allocations: 0 / 446.2 MB, free: 42.86 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004176/0.2051, allocations: 0.5268 MB / 446.7 MB, free: 42.78 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.727e-06/0.2051, allocations: 0 / 446.7 MB, free: 42.78 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.453e-06/0.2051, allocations: 0 / 446.7 MB, free: 42.78 MB / 410.7 MB Notification: Performance of Transformations before backend: time 4.809e-06/0.2051, allocations: 0 / 446.7 MB, free: 42.78 MB / 410.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.0002844/0.2054, allocations: 371.9 kB / 447.1 MB, free: 42.43 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.897e-05/0.2054, allocations: 8.875 kB / 447.1 MB, free: 42.43 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.76e-05/0.2055, allocations: 41.02 kB / 447.1 MB, free: 42.38 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.524e-05/0.2055, allocations: 0.9375 kB / 447.1 MB, free: 42.38 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 3.328e-05/0.2055, allocations: 101.8 kB / 447.2 MB, free: 42.26 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.14e-05/0.2056, allocations: 3.781 kB / 447.2 MB, free: 42.26 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.414e-06/0.2056, allocations: 7.656 kB / 447.2 MB, free: 42.25 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.055e-05/0.2056, allocations: 58.41 kB / 447.3 MB, free: 42.19 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.232e-06/0.2056, allocations: 4.125 kB / 447.3 MB, free: 42.19 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.955e-06/0.2057, allocations: 7.953 kB / 447.3 MB, free: 42.18 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.888e-06/0.2057, allocations: 4 kB / 447.3 MB, free: 42.18 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.017e-05/0.2057, allocations: 28.64 kB / 447.3 MB, free: 42.15 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001524/0.2058, allocations: 198.2 kB / 447.5 MB, free: 41.92 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.428e-05/0.2059, allocations: 46.12 kB / 447.6 MB, free: 41.86 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.109e-05/0.2059, allocations: 43.31 kB / 447.6 MB, free: 41.82 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.957e-06/0.2059, allocations: 3.938 kB / 447.6 MB, free: 41.82 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.283e-05/0.2059, allocations: 60.2 kB / 447.7 MB, free: 41.74 MB / 410.7 MB Notification: Performance of pre-optimization done (n=2): time 9.22e-07/0.2059, allocations: 0 / 447.7 MB, free: 41.74 MB / 410.7 MB Notification: Performance of matching and sorting (n=2): time 0.0001624/0.2061, allocations: 124.5 kB / 447.8 MB, free: 41.61 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.424e-05/0.2061, allocations: 81.23 kB / 447.9 MB, free: 41.52 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.251e-05/0.2061, allocations: 89.86 kB / 448 MB, free: 41.42 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 5.259e-06/0.2061, allocations: 28.61 kB / 448 MB, free: 41.39 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.533e-06/0.2061, allocations: 80.14 kB / 448.1 MB, free: 41.3 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.831e-05/0.2062, allocations: 1.375 kB / 448.1 MB, free: 41.3 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.17e-05/0.2062, allocations: 16.69 kB / 448.1 MB, free: 41.29 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 2.888e-05/0.2062, allocations: 314.2 kB / 448.4 MB, free: 40.97 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.293e-05/0.2062, allocations: 28.58 kB / 448.4 MB, free: 40.94 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.678e-06/0.2062, allocations: 32.52 kB / 448.5 MB, free: 40.91 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.95e-05/0.2063, allocations: 70.08 kB / 448.5 MB, free: 40.83 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.944e-06/0.2063, allocations: 0 / 448.5 MB, free: 40.83 MB / 410.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 5.134e-05/0.2063, allocations: 103.8 kB / 448.6 MB, free: 40.72 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.383e-05/0.2063, allocations: 31.42 kB / 448.7 MB, free: 40.69 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.28e-06/0.2063, allocations: 3.234 kB / 448.7 MB, free: 40.69 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.232e-05/0.2064, allocations: 2.906 kB / 448.7 MB, free: 40.69 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.768e-05/0.2064, allocations: 0 / 448.7 MB, free: 40.69 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.471e-06/0.2064, allocations: 2.688 kB / 448.7 MB, free: 40.69 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.583e-05/0.2064, allocations: 6.812 kB / 448.7 MB, free: 40.69 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.121e-06/0.2064, allocations: 0 / 448.7 MB, free: 40.69 MB / 410.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: 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 4.399e-05/0.2064, allocations: 143.7 kB / 448.8 MB, free: 40.54 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.102e-05/0.2065, allocations: 7.938 kB / 448.8 MB, free: 40.53 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.11e-05/0.2065, allocations: 10.28 kB / 448.8 MB, free: 40.52 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.337e-06/0.2065, allocations: 3.594 kB / 448.8 MB, free: 40.52 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.839e-06/0.2065, allocations: 0 / 448.8 MB, free: 40.52 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.176e-06/0.2065, allocations: 0 / 448.8 MB, free: 40.52 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001393/0.2066, allocations: 294.7 kB / 449.1 MB, free: 40.19 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.11e-07/0.2066, allocations: 0 / 449.1 MB, free: 40.19 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.858e-06/0.2066, allocations: 2.906 kB / 449.1 MB, free: 40.19 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.693e-06/0.2066, allocations: 4.031 kB / 449.1 MB, free: 40.19 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.171e-06/0.2066, allocations: 0 / 449.1 MB, free: 40.19 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.31e-07/0.2066, allocations: 4.031 kB / 449.1 MB, free: 40.18 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.103e-06/0.2066, allocations: 0 / 449.1 MB, free: 40.18 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.041e-05/0.2067, allocations: 199 kB / 449.3 MB, free: 39.98 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.328e-06/0.2067, allocations: 4 kB / 449.3 MB, free: 39.98 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.009e-05/0.2067, allocations: 2.812 kB / 449.3 MB, free: 39.98 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.574e-05/0.2067, allocations: 0 / 449.3 MB, free: 39.98 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.56e-05/0.2067, allocations: 3.047 kB / 449.3 MB, free: 39.98 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.117e-06/0.2068, allocations: 4.5 kB / 449.3 MB, free: 39.98 MB / 410.7 MB Notification: Performance of sorting global known variables: time 1.001e-05/0.2068, allocations: 75.28 kB / 449.4 MB, free: 39.9 MB / 410.7 MB Notification: Performance of sort global known variables: time 4e-08/0.2068, allocations: 0 / 449.4 MB, free: 39.9 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0003012/0.2071, allocations: 165.8 kB / 449.6 MB, free: 39.86 MB / 410.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: 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.0007026/0.2078, allocations: 1.025 MB / 450.6 MB, free: 39.03 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.000101/0.2079, allocations: 118.7 kB / 450.7 MB, free: 38.9 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.804e-06/0.2079, allocations: 2.75 kB / 450.7 MB, free: 38.9 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 1.565e-05/0.2079, allocations: 86.88 kB / 450.8 MB, free: 38.8 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001481/0.208, allocations: 3.672 kB / 450.8 MB, free: 38.8 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005106/0.2085, allocations: 1.343 MB / 452.1 MB, free: 37.43 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.184e-05/0.2086, allocations: 64.09 kB / 452.2 MB, free: 37.36 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 1.182e-05/0.2086, allocations: 0 / 452.2 MB, free: 37.36 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.025e-05/0.2086, allocations: 8.5 kB / 452.2 MB, free: 37.35 MB / 410.7 MB Notification: Performance of SimCode: time 6.41e-07/0.2086, allocations: 0 / 452.2 MB, free: 37.35 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01791/0.2265, allocations: 5.353 MB / 457.6 MB, free: 36.15 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.86/7.086, allocations: 10.72 kB / 457.6 MB, free: 36.14 MB / 410.7 MB " [Timeout remaining time 653] (rm -f ModelicaTest_trunk_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Math.Random.TestTruncatedDistributions.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Math.Random.TestTruncatedDistributions_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Math_Random_TestTruncatedDistributions_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Math_Random_TestTruncatedDistributions.fmu > ModelicaTest_trunk_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_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_trunk_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: 9.094126529060304]