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.0008966/0.0008966, allocations: 76.36 kB / 20.67 MB, free: 3.895 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.0009416/0.0009416, allocations: 156.9 kB / 23.95 MB, free: 0.6133 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.9237/0.9237, 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.2513/0.2513, allocations: 34.24 MB / 294.8 MB, free: 0.6875 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 1.733e-06/1.733e-06, allocations: 0 / 442.2 MB, free: 1.566 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.769e-05/1.943e-05, allocations: 2.281 kB / 442.2 MB, free: 1.562 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestTruncatedDistributions): time 0.001042/0.001061, allocations: 0.5011 MB / 442.7 MB, free: 1.062 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.2208/0.2218, allocations: 2.243 MB / 444.9 MB, free: 43.13 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.239e-05/0.2219, allocations: 1.906 kB / 444.9 MB, free: 43.13 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 2.217e-05/0.2219, allocations: 2.906 kB / 444.9 MB, free: 43.13 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 8.305e-06/0.2219, allocations: 0 / 444.9 MB, free: 43.13 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.001316/0.2232, allocations: 0.5867 MB / 445.5 MB, free: 42.99 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 6.459e-05/0.2233, allocations: 6.109 kB / 445.5 MB, free: 42.99 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.045e-05/0.2233, allocations: 0 / 445.5 MB, free: 42.99 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.536e-05/0.2234, allocations: 2.719 kB / 445.5 MB, free: 42.99 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.221e-05/0.2234, allocations: 3.984 kB / 445.5 MB, free: 42.99 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 7.645e-06/0.2234, allocations: 0 / 445.5 MB, free: 42.99 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007756/0.2242, allocations: 0.6855 MB / 446.2 MB, free: 42.91 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 9.909e-06/0.2242, allocations: 0 / 446.2 MB, free: 42.91 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 2.094e-05/0.2242, allocations: 2.844 kB / 446.2 MB, free: 42.91 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004639/0.2247, allocations: 0.5231 MB / 446.7 MB, free: 42.82 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.657e-06/0.2247, allocations: 2.812 kB / 446.7 MB, free: 42.82 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.653e-06/0.2247, allocations: 0 / 446.7 MB, free: 42.82 MB / 410.7 MB Notification: Performance of Transformations before backend: time 8.025e-06/0.2247, allocations: 0 / 446.7 MB, free: 42.82 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.0003449/0.225, allocations: 366.1 kB / 447.1 MB, free: 42.46 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.958e-05/0.2251, allocations: 8.562 kB / 447.1 MB, free: 42.46 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.007e-05/0.2251, allocations: 37.7 kB / 447.1 MB, free: 42.43 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.073e-05/0.2252, allocations: 4.875 kB / 447.1 MB, free: 42.42 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 4.914e-05/0.2252, allocations: 104.8 kB / 447.2 MB, free: 42.3 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.208e-05/0.2252, allocations: 4.375 kB / 447.2 MB, free: 42.29 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.316e-06/0.2252, allocations: 384 / 447.2 MB, free: 42.29 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001171/0.2253, allocations: 69.05 kB / 447.3 MB, free: 42.22 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.087e-05/0.2254, allocations: 192 / 447.3 MB, free: 42.22 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.043e-05/0.2254, allocations: 4.125 kB / 447.3 MB, free: 42.22 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.901e-06/0.2254, allocations: 0 / 447.3 MB, free: 42.22 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.595e-05/0.2254, allocations: 29.92 kB / 447.3 MB, free: 42.19 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002028/0.2256, allocations: 196.4 kB / 447.5 MB, free: 41.96 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.701e-05/0.2257, allocations: 51 kB / 447.6 MB, free: 41.9 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.432e-05/0.2257, allocations: 43.03 kB / 447.6 MB, free: 41.86 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.216e-05/0.2257, allocations: 3.938 kB / 447.6 MB, free: 41.85 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.402e-05/0.2257, allocations: 62.89 kB / 447.7 MB, free: 41.78 MB / 410.7 MB Notification: Performance of pre-optimization done (n=2): time 9.11e-07/0.2257, allocations: 0 / 447.7 MB, free: 41.78 MB / 410.7 MB Notification: Performance of matching and sorting (n=2): time 0.0002133/0.2259, allocations: 123.6 kB / 447.8 MB, free: 41.65 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.302e-05/0.226, allocations: 77.11 kB / 447.9 MB, free: 41.55 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.451e-05/0.226, allocations: 89.86 kB / 448 MB, free: 41.46 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 5.4e-06/0.226, allocations: 25.7 kB / 448 MB, free: 41.43 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.054e-05/0.226, allocations: 82.86 kB / 448.1 MB, free: 41.34 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.474e-05/0.226, allocations: 4.75 kB / 448.1 MB, free: 41.34 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.324e-05/0.2261, allocations: 24.19 kB / 448.1 MB, free: 41.32 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 4.502e-05/0.2261, allocations: 315.5 kB / 448.4 MB, free: 41 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.456e-05/0.2261, allocations: 25.7 kB / 448.4 MB, free: 40.97 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.283e-05/0.2261, allocations: 28.45 kB / 448.5 MB, free: 40.94 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.301e-05/0.2262, allocations: 69.06 kB / 448.5 MB, free: 40.87 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.814e-06/0.2262, allocations: 0 / 448.5 MB, free: 40.87 MB / 410.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 5.173e-05/0.2262, allocations: 100.9 kB / 448.6 MB, free: 40.76 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.223e-05/0.2263, allocations: 34.98 kB / 448.7 MB, free: 40.73 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.23e-06/0.2263, allocations: 0 / 448.7 MB, free: 40.73 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.639e-05/0.2263, allocations: 4.094 kB / 448.7 MB, free: 40.73 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.215e-05/0.2263, allocations: 0 / 448.7 MB, free: 40.73 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.614e-06/0.2263, allocations: 6.625 kB / 448.7 MB, free: 40.72 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.694e-05/0.2263, allocations: 3.938 kB / 448.7 MB, free: 40.72 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.907e-06/0.2263, allocations: 2.969 kB / 448.7 MB, free: 40.72 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.829e-05/0.2264, allocations: 135.5 kB / 448.8 MB, free: 40.57 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.293e-05/0.2264, allocations: 11.16 kB / 448.8 MB, free: 40.57 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.704e-05/0.2264, allocations: 3.156 kB / 448.8 MB, free: 40.56 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.515e-06/0.2264, allocations: 2.906 kB / 448.8 MB, free: 40.56 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.679e-06/0.2264, allocations: 0 / 448.8 MB, free: 40.56 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.338e-06/0.2264, allocations: 1.594 kB / 448.8 MB, free: 40.56 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001418/0.2266, allocations: 308.8 kB / 449.1 MB, free: 40.22 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.884e-06/0.2266, allocations: 3.188 kB / 449.1 MB, free: 40.22 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.474e-06/0.2266, allocations: 0 / 449.1 MB, free: 40.22 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.403e-06/0.2266, allocations: 0 / 449.1 MB, free: 40.22 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.925e-06/0.2266, allocations: 0 / 449.1 MB, free: 40.22 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.302e-06/0.2266, allocations: 2.625 kB / 449.1 MB, free: 40.22 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.41e-07/0.2266, allocations: 3.938 kB / 449.1 MB, free: 40.21 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.135e-05/0.2266, allocations: 194.2 kB / 449.3 MB, free: 40.02 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.077e-06/0.2266, allocations: 0 / 449.3 MB, free: 40.02 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.142e-05/0.2267, allocations: 0 / 449.3 MB, free: 40.02 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.307e-05/0.2267, allocations: 6.781 kB / 449.3 MB, free: 40.01 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.058e-05/0.2267, allocations: 3.328 kB / 449.3 MB, free: 40.01 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.709e-06/0.2267, allocations: 7.031 kB / 449.3 MB, free: 40.01 MB / 410.7 MB Notification: Performance of sorting global known variables: time 1.126e-05/0.2267, allocations: 75.28 kB / 449.4 MB, free: 39.93 MB / 410.7 MB Notification: Performance of sort global known variables: time 4e-08/0.2267, allocations: 0 / 449.4 MB, free: 39.93 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0003268/0.227, allocations: 156.1 kB / 449.6 MB, free: 39.89 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.0007751/0.2278, allocations: 1.034 MB / 450.6 MB, free: 39.06 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0001156/0.2279, allocations: 114.4 kB / 450.7 MB, free: 38.93 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.563e-06/0.2279, allocations: 0 / 450.7 MB, free: 38.93 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 2.034e-05/0.228, allocations: 90.27 kB / 450.8 MB, free: 38.84 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001488/0.2281, allocations: 3.953 kB / 450.8 MB, free: 38.84 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000587/0.2287, allocations: 1.342 MB / 452.1 MB, free: 37.46 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.09e-05/0.2287, allocations: 64.47 kB / 452.2 MB, free: 37.39 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 1.394e-05/0.2287, allocations: 3.938 kB / 452.2 MB, free: 37.39 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.495e-05/0.2288, allocations: 12.44 kB / 452.2 MB, free: 37.38 MB / 410.7 MB Notification: Performance of SimCode: time 1.002e-06/0.2288, allocations: 0 / 452.2 MB, free: 37.38 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01716/0.2459, allocations: 5.344 MB / 457.6 MB, free: 36.18 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.982/7.228, allocations: 13.14 kB / 457.6 MB, free: 36.18 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 & python3 -m fmpy simulate --output-file ModelicaTest_trunk_ModelicaTest.Math.Random.TestTruncatedDistributions_res.csv --start-time 0 --stop-time 0 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0 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.csv","/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] "Error: Failed to open simulation result ModelicaTest_trunk_ModelicaTest.Math.Random.TestTruncatedDistributions_res.csv: Error: Error opening file: ModelicaTest_trunk_ModelicaTest.Math.Random.TestTruncatedDistributions_res.csv " [Timeout remaining time 660] "" Variables in the reference:time,result Variables in the result: [Calling sys.exit(0), Time elapsed: 9.341055863536894]