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.001244/0.001244, allocations: 83.69 kB / 20.67 MB, free: 3.891 MB / 18.57 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.0009596/0.0009596, allocations: 170 kB / 23.95 MB, free: 0.6172 MB / 18.57 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 0.8953/0.8953, allocations: 177.1 MB / 204.3 MB, free: 5.727 MB / 186.7 MB " [Timeout remaining time 179] 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.2744/0.2744, allocations: 34.25 MB / 294.9 MB, free: 0.6914 MB / 266.7 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="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 1.643e-06/1.643e-06, allocations: 0 / 442.2 MB, free: 1.668 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.746e-05/1.911e-05, allocations: 2.281 kB / 442.2 MB, free: 1.664 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestTruncatedDistributions): time 0.001027/0.001046, allocations: 0.5004 MB / 442.7 MB, free: 1.168 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.2101/0.2112, allocations: 2.241 MB / 444.9 MB, free: 43.13 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.372e-05/0.2112, allocations: 0 / 444.9 MB, free: 43.13 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 2.02e-05/0.2112, allocations: 1.75 kB / 444.9 MB, free: 43.13 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 8.616e-06/0.2112, allocations: 0 / 444.9 MB, free: 43.13 MB / 410.7 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.001372/0.2126, allocations: 0.5942 MB / 445.5 MB, free: 43 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 6.663e-05/0.2127, allocations: 3.938 kB / 445.5 MB, free: 43 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.107e-05/0.2127, allocations: 2.656 kB / 445.5 MB, free: 43 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.575e-05/0.2128, allocations: 0 / 445.5 MB, free: 43 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.355e-05/0.2128, allocations: 0 / 445.5 MB, free: 43 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 8.536e-06/0.2128, allocations: 2.531 kB / 445.5 MB, free: 43 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007689/0.2136, allocations: 0.6768 MB / 446.2 MB, free: 42.93 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 1.04e-05/0.2136, allocations: 4 kB / 446.2 MB, free: 42.92 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 2.634e-05/0.2136, allocations: 6.203 kB / 446.2 MB, free: 42.92 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004716/0.2141, allocations: 0.5148 MB / 446.7 MB, free: 42.85 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.348e-06/0.2141, allocations: 0 / 446.7 MB, free: 42.85 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.204e-06/0.2141, allocations: 3.938 kB / 446.7 MB, free: 42.84 MB / 410.7 MB Notification: Performance of Transformations before backend: time 6.072e-06/0.2141, allocations: 2.781 kB / 446.7 MB, free: 42.84 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.0004032/0.2145, allocations: 365.6 kB / 447.1 MB, free: 42.49 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.13e-05/0.2146, allocations: 16.23 kB / 447.1 MB, free: 42.49 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.569e-05/0.2146, allocations: 41.02 kB / 447.1 MB, free: 42.45 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.812e-05/0.2146, allocations: 0.9375 kB / 447.1 MB, free: 42.45 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 4.769e-05/0.2147, allocations: 104.9 kB / 447.2 MB, free: 42.32 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.239e-05/0.2147, allocations: 3.312 kB / 447.2 MB, free: 42.32 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.625e-06/0.2147, allocations: 384 / 447.2 MB, free: 42.32 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.826e-05/0.2148, allocations: 58.12 kB / 447.3 MB, free: 42.26 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.196e-06/0.2148, allocations: 192 / 447.3 MB, free: 42.26 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.616e-06/0.2148, allocations: 4.578 kB / 447.3 MB, free: 42.26 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.919e-06/0.2148, allocations: 5.438 kB / 447.3 MB, free: 42.25 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.416e-05/0.2148, allocations: 36.14 kB / 447.3 MB, free: 42.22 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001956/0.215, allocations: 205.9 kB / 447.5 MB, free: 41.98 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.855e-05/0.2151, allocations: 49.38 kB / 447.6 MB, free: 41.93 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.401e-05/0.2151, allocations: 36.64 kB / 447.6 MB, free: 41.89 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.088e-05/0.2151, allocations: 2.844 kB / 447.6 MB, free: 41.89 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.91e-05/0.2152, allocations: 63.58 kB / 447.7 MB, free: 41.81 MB / 410.7 MB Notification: Performance of pre-optimization done (n=2): time 1.183e-06/0.2152, allocations: 0 / 447.7 MB, free: 41.81 MB / 410.7 MB Notification: Performance of matching and sorting (n=2): time 0.0001884/0.2154, allocations: 128.5 kB / 447.8 MB, free: 41.68 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.076e-05/0.2154, allocations: 77.11 kB / 447.9 MB, free: 41.59 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.867e-05/0.2154, allocations: 93.98 kB / 448 MB, free: 41.49 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 7.434e-06/0.2154, allocations: 25.7 kB / 448 MB, free: 41.46 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.157e-06/0.2154, allocations: 83.11 kB / 448.1 MB, free: 41.38 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.269e-05/0.2155, allocations: 1.375 kB / 448.1 MB, free: 41.38 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.601e-05/0.2155, allocations: 19.38 kB / 448.1 MB, free: 41.36 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 3.478e-05/0.2155, allocations: 310.8 kB / 448.4 MB, free: 41.05 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.415e-05/0.2155, allocations: 34.33 kB / 448.4 MB, free: 41.02 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.126e-05/0.2155, allocations: 28.48 kB / 448.5 MB, free: 40.98 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.421e-05/0.2156, allocations: 67.45 kB / 448.5 MB, free: 40.91 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.984e-06/0.2156, allocations: 0 / 448.5 MB, free: 40.91 MB / 410.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 5.234e-05/0.2156, allocations: 101.6 kB / 448.6 MB, free: 40.81 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.866e-05/0.2157, allocations: 38.84 kB / 448.7 MB, free: 40.77 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.831e-06/0.2157, allocations: 3.375 kB / 448.7 MB, free: 40.77 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.361e-05/0.2157, allocations: 2.812 kB / 448.7 MB, free: 40.77 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.261e-05/0.2157, allocations: 0 / 448.7 MB, free: 40.77 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.282e-06/0.2157, allocations: 0 / 448.7 MB, free: 40.77 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.832e-05/0.2157, allocations: 0 / 448.7 MB, free: 40.77 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.053e-05/0.2157, allocations: 2.875 kB / 448.7 MB, free: 40.77 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.746e-05/0.2158, allocations: 138.2 kB / 448.8 MB, free: 40.63 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.132e-05/0.2158, allocations: 3.938 kB / 448.8 MB, free: 40.62 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.121e-05/0.2158, allocations: 10.38 kB / 448.8 MB, free: 40.62 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.194e-06/0.2158, allocations: 0 / 448.8 MB, free: 40.62 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.472e-06/0.2158, allocations: 3 kB / 448.8 MB, free: 40.62 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.506e-06/0.2158, allocations: 0 / 448.8 MB, free: 40.62 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001489/0.216, allocations: 298.1 kB / 449.1 MB, free: 40.29 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.704e-06/0.216, allocations: 3.234 kB / 449.1 MB, free: 40.29 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.979e-06/0.216, allocations: 0 / 449.1 MB, free: 40.29 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.723e-06/0.216, allocations: 3 kB / 449.1 MB, free: 40.29 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.714e-06/0.216, allocations: 3.938 kB / 449.1 MB, free: 40.28 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.192e-06/0.216, allocations: 0 / 449.1 MB, free: 40.28 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.52e-07/0.216, allocations: 4.031 kB / 449.1 MB, free: 40.28 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.066e-05/0.2161, allocations: 196.7 kB / 449.3 MB, free: 40.08 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.15e-06/0.2161, allocations: 3.938 kB / 449.3 MB, free: 40.07 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.064e-05/0.2161, allocations: 0 / 449.3 MB, free: 40.07 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.717e-05/0.2161, allocations: 2.531 kB / 449.3 MB, free: 40.07 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.102e-05/0.2161, allocations: 4.547 kB / 449.3 MB, free: 40.07 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.549e-06/0.2161, allocations: 2.75 kB / 449.3 MB, free: 40.07 MB / 410.7 MB Notification: Performance of sorting global known variables: time 1.344e-05/0.2161, allocations: 75.28 kB / 449.4 MB, free: 40 MB / 410.7 MB Notification: Performance of sort global known variables: time 7e-08/0.2161, allocations: 3.938 kB / 449.4 MB, free: 40 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0003601/0.2165, allocations: 164.9 kB / 449.6 MB, free: 39.95 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.000811/0.2173, allocations: 1.02 MB / 450.6 MB, free: 39.13 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.000122/0.2174, allocations: 114.9 kB / 450.7 MB, free: 39 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.833e-06/0.2174, allocations: 3.938 kB / 450.7 MB, free: 39 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 2.133e-05/0.2175, allocations: 89.72 kB / 450.8 MB, free: 38.9 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001593/0.2176, allocations: 13.67 kB / 450.8 MB, free: 38.89 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006934/0.2183, allocations: 1.347 MB / 452.2 MB, free: 37.52 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.856e-05/0.2183, allocations: 57.61 kB / 452.2 MB, free: 37.45 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 1.418e-05/0.2184, allocations: 2.875 kB / 452.2 MB, free: 37.45 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.225e-05/0.2184, allocations: 8.5 kB / 452.2 MB, free: 37.45 MB / 410.7 MB Notification: Performance of SimCode: time 1.102e-06/0.2184, allocations: 0 / 452.2 MB, free: 37.45 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0223/0.2407, allocations: 5.355 MB / 457.6 MB, free: 36.25 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.959/7.2, allocations: 3.438 kB / 457.6 MB, free: 36.25 MB / 410.7 MB " [Timeout remaining time 653] (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/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_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: 9.180933142080903]