Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Blocks.Examples.Noise.Distributions.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001729/0.001729, allocations: 107.5 kB / 20.44 MB, free: 1.188 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001887/0.001887, allocations: 194.6 kB / 23.71 MB, free: 4.406 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.441/1.441, allocations: 225.7 MB / 252.5 MB, free: 12.79 MB / 206.1 MB " [Timeout remaining time 178] 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(Modelica.Blocks.Examples.Noise.Distributions,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_Noise_Distributions",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.Noise.Distributions,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_Noise_Distributions",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001725/0.001725, allocations: 43.92 kB / 370.4 MB, free: 9.652 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2564/0.2581, allocations: 52.17 MB / 422.6 MB, free: 14.38 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Noise.Distributions): time 0.002904/0.261, allocations: 1.516 MB / 424.1 MB, free: 12.85 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002354/0.2634, allocations: 1.359 MB / 425.4 MB, free: 11.49 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.061e-05/0.2634, allocations: 4 kB / 425.4 MB, free: 11.49 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 8.855e-05/0.2635, allocations: 11.86 kB / 425.5 MB, free: 11.48 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 9.126e-05/0.2636, allocations: 27.73 kB / 425.5 MB, free: 11.45 MB / 334.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Math/Random.mo:1057:5-1146:31:writable] Warning: Pure function 'Modelica.Math.Random.Utilities.initializeImpureRandom' contains a call to impure function 'Modelica.Math.Random.Utilities.initializeImpureRandom.setInternalState'. Notification: Performance of NFTyping.typeClassSections: time 0.001065/0.2647, allocations: 386.8 kB / 425.9 MB, free: 11.07 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001815/0.2649, allocations: 135.6 kB / 426 MB, free: 10.94 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.252e-05/0.2649, allocations: 9.672 kB / 426 MB, free: 10.92 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.259e-05/0.265, allocations: 59.75 kB / 426.1 MB, free: 10.86 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006464/0.2656, allocations: 78.25 kB / 426.1 MB, free: 10.79 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.834e-05/0.2657, allocations: 12 kB / 426.2 MB, free: 10.78 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007376/0.2664, allocations: 431.1 kB / 426.6 MB, free: 10.36 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.03e-05/0.2665, allocations: 35.89 kB / 426.6 MB, free: 10.32 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 6.336e-05/0.2665, allocations: 55.67 kB / 426.7 MB, free: 10.27 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005892/0.2671, allocations: 388.7 kB / 427 MB, free: 9.891 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.2671, allocations: 7.875 kB / 427 MB, free: 9.883 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.263e-06/0.2671, allocations: 0 / 427 MB, free: 9.883 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.721e-06/0.2671, allocations: 0 / 427 MB, free: 9.883 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 17 * Number of variables: 17 Notification: Performance of Generate backend data structure: time 0.0007462/0.2679, allocations: 452.7 kB / 427.5 MB, free: 9.41 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.657e-05/0.2679, allocations: 12.03 kB / 427.5 MB, free: 9.398 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.333e-05/0.268, allocations: 42.69 kB / 427.5 MB, free: 9.348 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002313/0.2682, allocations: 32.83 kB / 427.6 MB, free: 9.316 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001691/0.2684, allocations: 163.5 kB / 427.7 MB, free: 9.129 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.165e-05/0.2684, allocations: 8 kB / 427.7 MB, free: 9.121 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.996e-05/0.2684, allocations: 8 kB / 427.8 MB, free: 9.113 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002612/0.2687, allocations: 132.1 kB / 427.9 MB, free: 8.969 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.165e-06/0.2687, allocations: 0 / 427.9 MB, free: 8.969 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.618e-05/0.2687, allocations: 7.984 kB / 427.9 MB, free: 8.961 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.208e-06/0.2687, allocations: 3.938 kB / 427.9 MB, free: 8.957 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001992/0.2689, allocations: 67.89 kB / 428 MB, free: 8.891 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007329/0.2696, allocations: 0.5002 MB / 428.5 MB, free: 8.34 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003363/0.27, allocations: 143.7 kB / 428.6 MB, free: 8.172 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001281/0.2701, allocations: 62.61 kB / 428.7 MB, free: 8.102 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.215e-05/0.2701, allocations: 0 / 428.7 MB, free: 8.102 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002743/0.2704, allocations: 153.8 kB / 428.8 MB, free: 7.93 MB / 334.1 MB Notification: Performance of pre-optimization done (n=17): time 1.133e-06/0.2704, allocations: 0 / 428.8 MB, free: 7.93 MB / 334.1 MB Notification: Performance of matching and sorting (n=17): time 0.0005721/0.271, allocations: 257.4 kB / 429.1 MB, free: 7.672 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.047e-05/0.2711, allocations: 122.8 kB / 429.2 MB, free: 7.527 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002097/0.2713, allocations: 203.1 kB / 429.4 MB, free: 7.32 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.715e-05/0.2713, allocations: 49.69 kB / 429.4 MB, free: 7.266 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.06e-05/0.2714, allocations: 116.6 kB / 429.5 MB, free: 7.148 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.853e-05/0.2714, allocations: 43.67 kB / 429.6 MB, free: 7.105 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.237e-05/0.2715, allocations: 57.69 kB / 429.6 MB, free: 7.043 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001563/0.2717, allocations: 330.8 kB / 430 MB, free: 6.711 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002194/0.2719, allocations: 99.94 kB / 430.1 MB, free: 6.613 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002271/0.2721, allocations: 140.1 kB / 430.2 MB, free: 6.465 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000388/0.2725, allocations: 219.8 kB / 430.4 MB, free: 6.238 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.485e-06/0.2725, allocations: 4 kB / 430.4 MB, free: 6.234 MB / 334.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0005402/0.2731, allocations: 305.8 kB / 430.7 MB, free: 5.93 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.957e-05/0.2731, allocations: 11.94 kB / 430.7 MB, free: 5.918 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.354e-06/0.2731, allocations: 0 / 430.7 MB, free: 5.918 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.777e-05/0.2731, allocations: 4.094 kB / 430.7 MB, free: 5.914 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001532/0.2733, allocations: 39.98 kB / 430.8 MB, free: 5.875 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.638e-06/0.2733, allocations: 4 kB / 430.8 MB, free: 5.871 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.338e-05/0.2734, allocations: 15.89 kB / 430.8 MB, free: 5.855 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.011e-05/0.2734, allocations: 8 kB / 430.8 MB, free: 5.848 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 33 ($whenCondition2,$whenCondition1,n,globalSeed.seed,truncatedNormalNoise.actualGlobalSeed,truncatedNormalNoise.localSeed,uniformNoise.actualGlobalSeed,uniformNoise.localSeed,globalSeed.id_impure,truncatedNormalNoise.r_raw,$PRE.truncatedNormalNoise.r_raw,truncatedNormalNoise.r,$PRE.truncatedNormalNoise.r,truncatedNormalNoise.state[4],$PRE.truncatedNormalNoise.state[4],truncatedNormalNoise.state[3],$PRE.truncatedNormalNoise.state[3],truncatedNormalNoise.state[2],$PRE.truncatedNormalNoise.state[2],truncatedNormalNoise.state[1],$PRE.truncatedNormalNoise.state[1],uniformNoise.r_raw,$PRE.uniformNoise.r_raw,uniformNoise.r,$PRE.uniformNoise.r,uniformNoise.state[4],$PRE.uniformNoise.state[4],uniformNoise.state[3],$PRE.uniformNoise.state[3],uniformNoise.state[2],$PRE.uniformNoise.state[2],uniformNoise.state[1],$PRE.uniformNoise.state[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (29): * Single equations (assignments): 27 * Array equations: 2 * Algorithm blocks: 0 * 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 0.0001506/0.2735, allocations: 149.8 kB / 430.9 MB, free: 5.691 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.309e-05/0.2736, allocations: 19.8 kB / 431 MB, free: 5.672 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.543e-05/0.2736, allocations: 17.39 kB / 431 MB, free: 5.652 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.959e-06/0.2736, allocations: 4 kB / 431 MB, free: 5.648 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.348e-06/0.2736, allocations: 7.938 kB / 431 MB, free: 5.641 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.176e-06/0.2736, allocations: 0 / 431 MB, free: 5.641 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002213/0.2738, allocations: 184.6 kB / 431.2 MB, free: 5.418 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.262e-06/0.2738, allocations: 0 / 431.2 MB, free: 5.418 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.851e-05/0.2739, allocations: 11.98 kB / 431.2 MB, free: 5.406 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.148e-06/0.2739, allocations: 3.938 kB / 431.2 MB, free: 5.402 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.224e-05/0.2739, allocations: 4 kB / 431.2 MB, free: 5.398 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.857e-06/0.2739, allocations: 4 kB / 431.2 MB, free: 5.395 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.31e-07/0.2739, allocations: 3.938 kB / 431.2 MB, free: 5.391 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004154/0.2743, allocations: 241.8 kB / 431.4 MB, free: 5.133 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.358e-05/0.2744, allocations: 19.84 kB / 431.5 MB, free: 5.113 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.473e-05/0.2744, allocations: 15.94 kB / 431.5 MB, free: 5.098 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.478e-05/0.2745, allocations: 7.984 kB / 431.5 MB, free: 5.09 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.744e-05/0.2745, allocations: 15.98 kB / 431.5 MB, free: 5.074 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.528e-06/0.2745, allocations: 4 kB / 431.5 MB, free: 5.07 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001341/0.2747, allocations: 141.1 kB / 431.6 MB, free: 4.934 MB / 334.1 MB Notification: Performance of sort global known variables: time 6e-08/0.2747, allocations: 0 / 431.6 MB, free: 4.934 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000453/0.2751, allocations: 127.6 kB / 431.8 MB, free: 4.809 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 15 ($whenCondition2,truncatedNormalNoise.state[1],truncatedNormalNoise.state[2],truncatedNormalNoise.state[3],truncatedNormalNoise.state[4],truncatedNormalNoise.r,truncatedNormalNoise.r_raw,$whenCondition1,uniformNoise.state[1],uniformNoise.state[2],uniformNoise.state[3],uniformNoise.state[4],uniformNoise.r,uniformNoise.r_raw,n) * Number of discrete states: 8 (uniformNoise.state[1],uniformNoise.state[2],uniformNoise.state[3],uniformNoise.state[4],truncatedNormalNoise.state[1],truncatedNormalNoise.state[2],truncatedNormalNoise.state[3],truncatedNormalNoise.state[4]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.001615/0.2767, allocations: 1.057 MB / 432.8 MB, free: 3.75 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004432/0.2772, allocations: 190.5 kB / 433 MB, free: 3.566 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.2772, allocations: 0 / 433 MB, free: 3.566 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001544/0.2773, allocations: 59.91 kB / 433.1 MB, free: 3.508 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001747/0.2775, allocations: 12.25 kB / 433.1 MB, free: 3.496 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002981/0.2805, allocations: 2.308 MB / 435.4 MB, free: 1.078 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001061/0.2806, allocations: 111.2 kB / 435.5 MB, free: 0.9492 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 7.702e-05/0.2807, allocations: 21.41 kB / 435.5 MB, free: 0.9297 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.666e-05/0.2807, allocations: 47.42 kB / 435.6 MB, free: 0.8828 MB / 334.1 MB Notification: Performance of SimCode: time 9.51e-07/0.2807, allocations: 0 / 435.6 MB, free: 0.8828 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04733/0.3281, allocations: 6.099 MB / 441.7 MB, free: 10.92 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.52/11.84, allocations: 14.25 kB / 441.7 MB, free: 10.91 MB / 350.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.Noise.Distributions.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.Noise.Distributions.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.Noise.Distributions.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.Noise.Distributions.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Blocks.Examples.Noise.Distributions_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00039208 Modelica_4_0_0_Modelica_Blocks_Examples_Noise_Distributions.fmu > Modelica_4.0.0_Modelica.Blocks.Examples.Noise.Distributions.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Blocks.Examples.Noise.Distributions_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/Noise/Distributions/Distributions.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Blocks.Examples.Noise.Distributions.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: 14.386742336675525]