Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.Noise.Distributions.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.001367/0.001367, allocations: 116.7 kB / 20.43 MB, free: 1.457 MB / 14.72 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.002101/0.002101, allocations: 213.6 kB / 23.74 MB, free: 4.672 MB / 14.72 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 1.43/1.43, allocations: 230.5 MB / 257.4 MB, free: 8.012 MB / 206.1 MB " [Timeout remaining time 178] 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(Modelica.Blocks.Examples.Noise.Distributions,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_Noise_Distributions",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.Noise.Distributions,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_Noise_Distributions",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001843/0.001843, allocations: 64.12 kB / 377.8 MB, free: 3 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2573/0.2592, allocations: 53.41 MB / 431.2 MB, free: 6.812 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Noise.Distributions): time 0.003001/0.2622, allocations: 1.554 MB / 432.7 MB, free: 5.254 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002684/0.2648, allocations: 1.519 MB / 434.3 MB, free: 3.723 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.252e-05/0.2649, allocations: 0 / 434.3 MB, free: 3.723 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001127/0.265, allocations: 15.8 kB / 434.3 MB, free: 3.707 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001043/0.2651, allocations: 31.8 kB / 434.3 MB, free: 3.676 MB / 334.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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.001115/0.2663, allocations: 394.8 kB / 434.7 MB, free: 3.289 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001769/0.2664, allocations: 131.5 kB / 434.8 MB, free: 3.16 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.009e-05/0.2665, allocations: 9.688 kB / 434.8 MB, free: 3.145 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.451e-05/0.2666, allocations: 63.75 kB / 434.9 MB, free: 3.082 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006166/0.2672, allocations: 88.11 kB / 435 MB, free: 3.004 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.235e-05/0.2672, allocations: 12 kB / 435 MB, free: 2.992 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007383/0.2679, allocations: 471.1 kB / 435.5 MB, free: 2.531 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.22e-05/0.268, allocations: 35.86 kB / 435.5 MB, free: 2.496 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.907e-05/0.2681, allocations: 67.58 kB / 435.6 MB, free: 2.43 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005746/0.2686, allocations: 407.1 kB / 436 MB, free: 2.039 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.507e-06/0.2687, allocations: 3.938 kB / 436 MB, free: 2.035 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.042e-06/0.2687, allocations: 0 / 436 MB, free: 2.035 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.73e-06/0.2687, allocations: 3.938 kB / 436 MB, free: 2.031 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.0007822/0.2694, allocations: 464.7 kB / 436.4 MB, free: 1.547 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.821e-05/0.2695, allocations: 8.031 kB / 436.4 MB, free: 1.539 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.911e-05/0.2695, allocations: 46.72 kB / 436.5 MB, free: 1.484 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002111/0.2698, allocations: 28.83 kB / 436.5 MB, free: 1.457 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001759/0.2699, allocations: 151.7 kB / 436.6 MB, free: 1.281 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.241e-05/0.27, allocations: 8.375 kB / 436.7 MB, free: 1.273 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.926e-05/0.27, allocations: 8.375 kB / 436.7 MB, free: 1.266 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002849/0.2703, allocations: 139 kB / 436.8 MB, free: 1.117 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.077e-06/0.2703, allocations: 0 / 436.8 MB, free: 1.117 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.518e-05/0.2703, allocations: 7.984 kB / 436.8 MB, free: 1.109 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.93e-06/0.2703, allocations: 0 / 436.8 MB, free: 1.109 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002019/0.2705, allocations: 75.83 kB / 436.9 MB, free: 1.035 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007728/0.2713, allocations: 0.5156 MB / 437.4 MB, free: 480 kB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003382/0.2716, allocations: 147.9 kB / 437.5 MB, free: 304 kB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001289/0.2717, allocations: 62.55 kB / 437.6 MB, free: 232 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.097e-05/0.2717, allocations: 4 kB / 437.6 MB, free: 228 kB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002955/0.272, allocations: 153.8 kB / 437.8 MB, free: 52 kB / 334.1 MB Notification: Performance of pre-optimization done (n=17): time 1.363e-06/0.272, allocations: 0 / 437.8 MB, free: 52 kB / 334.1 MB Notification: Performance of matching and sorting (n=17): time 0.0005967/0.2726, allocations: 249.4 kB / 438 MB, free: 15.8 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.516e-05/0.2727, allocations: 114.8 kB / 438.1 MB, free: 15.66 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002011/0.2729, allocations: 199.3 kB / 438.3 MB, free: 15.46 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.323e-05/0.273, allocations: 49.7 kB / 438.3 MB, free: 15.41 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.736e-05/0.2731, allocations: 112.5 kB / 438.5 MB, free: 15.29 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.436e-05/0.2731, allocations: 47.62 kB / 438.5 MB, free: 15.25 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.066e-05/0.2732, allocations: 53.7 kB / 438.6 MB, free: 15.19 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001552/0.2733, allocations: 338.8 kB / 438.9 MB, free: 14.85 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002018/0.2735, allocations: 91.95 kB / 439 MB, free: 14.76 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000228/0.2738, allocations: 147.3 kB / 439.1 MB, free: 14.6 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000377/0.2742, allocations: 215.8 kB / 439.3 MB, free: 14.38 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.2742, allocations: 0 / 439.3 MB, free: 14.38 MB / 350.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0005607/0.2747, allocations: 317.3 kB / 439.6 MB, free: 14.06 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.575e-05/0.2747, allocations: 4 kB / 439.6 MB, free: 14.06 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.402e-06/0.2747, allocations: 0 / 439.6 MB, free: 14.06 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.595e-05/0.2748, allocations: 4 kB / 439.7 MB, free: 14.05 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001494/0.2749, allocations: 27.92 kB / 439.7 MB, free: 14.03 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.275e-06/0.2749, allocations: 7.938 kB / 439.7 MB, free: 14.02 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.011e-05/0.275, allocations: 31.77 kB / 439.7 MB, free: 13.99 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.816e-05/0.275, allocations: 16.03 kB / 439.7 MB, free: 13.97 MB / 350.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.0001467/0.2752, allocations: 149.8 kB / 439.9 MB, free: 13.82 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.852e-05/0.2752, allocations: 15.91 kB / 439.9 MB, free: 13.8 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.599e-05/0.2752, allocations: 13.41 kB / 439.9 MB, free: 13.79 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.102e-06/0.2752, allocations: 7.984 kB / 439.9 MB, free: 13.78 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.579e-06/0.2752, allocations: 0 / 439.9 MB, free: 13.78 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.52e-06/0.2752, allocations: 3.938 kB / 439.9 MB, free: 13.77 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002101/0.2755, allocations: 192.6 kB / 440.1 MB, free: 13.54 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-06/0.2755, allocations: 0 / 440.1 MB, free: 13.54 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.904e-05/0.2755, allocations: 11.98 kB / 440.1 MB, free: 13.53 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.744e-06/0.2755, allocations: 0 / 440.1 MB, free: 13.53 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.18e-05/0.2755, allocations: 8 kB / 440.1 MB, free: 13.52 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.353e-06/0.2755, allocations: 0 / 440.1 MB, free: 13.52 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.876e-06/0.2755, allocations: 4 kB / 440.1 MB, free: 13.52 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004087/0.2759, allocations: 249 kB / 440.4 MB, free: 13.25 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.161e-05/0.276, allocations: 19.83 kB / 440.4 MB, free: 13.23 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.218e-05/0.276, allocations: 8 kB / 440.4 MB, free: 13.23 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.729e-05/0.2761, allocations: 11.98 kB / 440.4 MB, free: 13.21 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.296e-05/0.2761, allocations: 11.92 kB / 440.4 MB, free: 13.2 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.063e-05/0.2761, allocations: 8 kB / 440.4 MB, free: 13.2 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001306/0.2763, allocations: 145.1 kB / 440.6 MB, free: 13.05 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2763, allocations: 0 / 440.6 MB, free: 13.05 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004454/0.2767, allocations: 127.7 kB / 440.7 MB, free: 12.93 MB / 350.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.00154/0.2783, allocations: 1.053 MB / 441.8 MB, free: 11.87 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004519/0.2787, allocations: 188.4 kB / 441.9 MB, free: 11.68 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.2787, allocations: 0 / 441.9 MB, free: 11.68 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001552/0.2789, allocations: 59.91 kB / 442 MB, free: 11.62 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001795/0.279, allocations: 20.11 kB / 442 MB, free: 11.61 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003002/0.282, allocations: 2.309 MB / 444.3 MB, free: 9.184 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003631/0.2824, allocations: 0.7201 MB / 445 MB, free: 8.438 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.357e-05/0.2825, allocations: 25.41 kB / 445.1 MB, free: 8.414 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.914e-05/0.2826, allocations: 47.42 kB / 445.1 MB, free: 8.367 MB / 350.1 MB Notification: Performance of SimCode: time 3.01e-07/0.2826, allocations: 0 / 445.1 MB, free: 8.367 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03345/0.316, allocations: 5.749 MB / 450.9 MB, free: 2.723 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.42/11.74, allocations: 0 / 450.9 MB, free: 2.723 MB / 350.1 MB " [Timeout remaining time 648] (rm -f Modelica_trunk_Modelica.Blocks.Examples.Noise.Distributions.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.Noise.Distributions.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.Noise.Distributions.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.Noise.Distributions.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Blocks_Examples_Noise_Distributions.fmu > Modelica_trunk_Modelica.Blocks.Examples.Noise.Distributions.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Blocks.Examples.Noise.Distributions_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/Noise/Distributions/Distributions.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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.266144665001775]