Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Blocks.Examples.Noise.Distributions.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.001524/0.001524, allocations: 111.1 kB / 20.44 MB, free: 1.176 MB / 14.72 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.001415/0.001415, allocations: 205.9 kB / 23.73 MB, free: 4.379 MB / 14.72 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 1.385/1.385, allocations: 230.6 MB / 257.5 MB, free: 7.793 MB / 206.1 MB " [Timeout remaining time 178] 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(Modelica.Blocks.Examples.Noise.Distributions,fileNamePrefix="Modelica_4_1_0_Modelica_Blocks_Examples_Noise_Distributions",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.Noise.Distributions,fileNamePrefix="Modelica_4_1_0_Modelica_Blocks_Examples_Noise_Distributions",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001504/0.001504, allocations: 47.92 kB / 377.7 MB, free: 2.973 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2519/0.2534, allocations: 53.36 MB / 431.1 MB, free: 6.645 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Noise.Distributions): time 0.00274/0.2561, allocations: 1.531 MB / 432.6 MB, free: 5.113 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002374/0.2585, allocations: 1.395 MB / 434 MB, free: 3.711 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.241e-05/0.2586, allocations: 4 kB / 434 MB, free: 3.707 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 8.728e-05/0.2587, allocations: 11.81 kB / 434 MB, free: 3.695 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 9.08e-05/0.2587, allocations: 27.8 kB / 434.1 MB, free: 3.668 MB / 334.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.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.001037/0.2598, allocations: 402.8 kB / 434.4 MB, free: 3.273 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001762/0.26, allocations: 135.5 kB / 434.6 MB, free: 3.141 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.716e-05/0.26, allocations: 5.688 kB / 434.6 MB, free: 3.129 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.993e-05/0.2601, allocations: 59.77 kB / 434.6 MB, free: 3.07 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005632/0.2606, allocations: 85.22 kB / 434.7 MB, free: 2.992 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.399e-05/0.2607, allocations: 16 kB / 434.7 MB, free: 2.977 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006906/0.2614, allocations: 455.2 kB / 435.2 MB, free: 2.531 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.067e-05/0.2614, allocations: 43.84 kB / 435.2 MB, free: 2.488 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 6.169e-05/0.2615, allocations: 47.72 kB / 435.3 MB, free: 2.441 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005625/0.262, allocations: 404.6 kB / 435.7 MB, free: 2.047 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.396e-06/0.262, allocations: 0 / 435.7 MB, free: 2.047 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.302e-06/0.262, allocations: 4 kB / 435.7 MB, free: 2.043 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.29e-06/0.2621, allocations: 3.938 kB / 435.7 MB, free: 2.039 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.000794/0.2628, allocations: 452.7 kB / 436.1 MB, free: 1.566 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.484e-05/0.2629, allocations: 15.97 kB / 436.1 MB, free: 1.551 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.652e-05/0.2629, allocations: 42.73 kB / 436.2 MB, free: 1.5 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002099/0.2632, allocations: 28.83 kB / 436.2 MB, free: 1.473 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001589/0.2633, allocations: 144 kB / 436.3 MB, free: 1.305 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.399e-05/0.2633, allocations: 12.36 kB / 436.4 MB, free: 1.293 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.742e-05/0.2634, allocations: 15.92 kB / 436.4 MB, free: 1.277 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002809/0.2636, allocations: 138.7 kB / 436.5 MB, free: 1.129 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.706e-06/0.2637, allocations: 0 / 436.5 MB, free: 1.129 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.47e-05/0.2637, allocations: 4 kB / 436.5 MB, free: 1.125 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.571e-06/0.2637, allocations: 8 kB / 436.5 MB, free: 1.117 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002001/0.2639, allocations: 63.89 kB / 436.6 MB, free: 1.055 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000812/0.2647, allocations: 0.4961 MB / 437.1 MB, free: 0.5078 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003509/0.265, allocations: 143.9 kB / 437.2 MB, free: 348 kB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001864/0.2652, allocations: 66.56 kB / 437.3 MB, free: 272 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.462e-05/0.2652, allocations: 4 kB / 437.3 MB, free: 268 kB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002942/0.2655, allocations: 157.7 kB / 437.4 MB, free: 88 kB / 334.1 MB Notification: Performance of pre-optimization done (n=17): time 1.203e-06/0.2655, allocations: 0 / 437.4 MB, free: 88 kB / 334.1 MB Notification: Performance of matching and sorting (n=17): time 0.0006252/0.2662, allocations: 257.4 kB / 437.7 MB, free: 15.83 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.251e-05/0.2662, allocations: 118.9 kB / 437.8 MB, free: 15.69 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002085/0.2665, allocations: 207.1 kB / 438 MB, free: 15.48 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.429e-05/0.2665, allocations: 41.69 kB / 438.1 MB, free: 15.43 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.846e-05/0.2666, allocations: 112.5 kB / 438.2 MB, free: 15.32 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.827e-05/0.2666, allocations: 47.62 kB / 438.2 MB, free: 15.27 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.07e-05/0.2667, allocations: 61.69 kB / 438.3 MB, free: 15.2 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001504/0.2669, allocations: 330.8 kB / 438.6 MB, free: 14.87 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001983/0.2671, allocations: 95.95 kB / 438.7 MB, free: 14.78 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002478/0.2673, allocations: 140.1 kB / 438.8 MB, free: 14.63 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003804/0.2677, allocations: 220.3 kB / 439 MB, free: 14.4 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.2677, allocations: 0 / 439 MB, free: 14.4 MB / 350.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0005351/0.2682, allocations: 305.3 kB / 439.3 MB, free: 14.1 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.445e-05/0.2683, allocations: 4.094 kB / 439.3 MB, free: 14.09 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.376e-06/0.2683, allocations: 7.984 kB / 439.3 MB, free: 14.09 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.572e-05/0.2683, allocations: 4 kB / 439.4 MB, free: 14.08 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001614/0.2684, allocations: 39.86 kB / 439.4 MB, free: 14.04 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.72e-06/0.2684, allocations: 0 / 439.4 MB, free: 14.04 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.388e-05/0.2685, allocations: 27.83 kB / 439.4 MB, free: 14.02 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.88e-05/0.2686, allocations: 7.984 kB / 439.4 MB, free: 14.01 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.0001537/0.2687, allocations: 145.8 kB / 439.6 MB, free: 13.86 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.407e-05/0.2687, allocations: 23.84 kB / 439.6 MB, free: 13.83 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.469e-05/0.2688, allocations: 13.5 kB / 439.6 MB, free: 13.82 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.6e-06/0.2688, allocations: 7.922 kB / 439.6 MB, free: 13.81 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.498e-06/0.2688, allocations: 3.938 kB / 439.6 MB, free: 13.8 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.199e-06/0.2688, allocations: 4 kB / 439.6 MB, free: 13.8 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002126/0.269, allocations: 172.7 kB / 439.8 MB, free: 13.59 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.332e-06/0.269, allocations: 0 / 439.8 MB, free: 13.59 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.79e-05/0.2691, allocations: 11.98 kB / 439.8 MB, free: 13.58 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.158e-06/0.2691, allocations: 4 kB / 439.8 MB, free: 13.57 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.533e-05/0.2691, allocations: 4 kB / 439.8 MB, free: 13.57 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.849e-06/0.2691, allocations: 11.94 kB / 439.8 MB, free: 13.56 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.2691, allocations: 0 / 439.8 MB, free: 13.56 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000423/0.2695, allocations: 242.5 kB / 440.1 MB, free: 13.3 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.556e-05/0.2696, allocations: 19.84 kB / 440.1 MB, free: 13.28 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.366e-05/0.2696, allocations: 12 kB / 440.1 MB, free: 13.27 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.238e-05/0.2697, allocations: 11.92 kB / 440.1 MB, free: 13.25 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.905e-05/0.2697, allocations: 11.98 kB / 440.1 MB, free: 13.24 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.367e-05/0.2697, allocations: 11.98 kB / 440.1 MB, free: 13.23 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001189/0.2698, allocations: 133.3 kB / 440.3 MB, free: 13.1 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2698, allocations: 7.938 kB / 440.3 MB, free: 13.09 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004415/0.2703, allocations: 127.7 kB / 440.4 MB, free: 12.97 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.001569/0.2719, allocations: 1.059 MB / 441.4 MB, free: 11.91 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004445/0.2723, allocations: 195.7 kB / 441.6 MB, free: 11.72 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.584e-06/0.2723, allocations: 192 / 441.6 MB, free: 11.72 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001536/0.2725, allocations: 63.91 kB / 441.7 MB, free: 11.66 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001857/0.2726, allocations: 10.81 kB / 441.7 MB, free: 11.65 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002932/0.2756, allocations: 2.298 MB / 444 MB, free: 9.238 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001103/0.2757, allocations: 119.1 kB / 444.1 MB, free: 9.102 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.046e-05/0.2758, allocations: 17.42 kB / 444.1 MB, free: 9.086 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.75e-05/0.2759, allocations: 47.42 kB / 444.2 MB, free: 9.039 MB / 350.1 MB Notification: Performance of SimCode: time 5.91e-07/0.2759, allocations: 3.938 kB / 444.2 MB, free: 9.035 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03185/0.3077, allocations: 6.235 MB / 450.4 MB, free: 2.934 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.76/11.07, allocations: 7.312 kB / 450.4 MB, free: 2.93 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.1.0_Modelica.Blocks.Examples.Noise.Distributions.pipe ; mkfifo Modelica_4.1.0_Modelica.Blocks.Examples.Noise.Distributions.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Blocks.Examples.Noise.Distributions.pipe >> ../files/Modelica_4.1.0_Modelica.Blocks.Examples.Noise.Distributions.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Blocks.Examples.Noise.Distributions_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Blocks_Examples_Noise_Distributions_fmu --startTime=0 --stopTime=2 --stepSize=0.00039208 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Blocks_Examples_Noise_Distributions.fmu > Modelica_4.1.0_Modelica.Blocks.Examples.Noise.Distributions.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Blocks.Examples.Noise.Distributions_res.mat","/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_4.1.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: 13.377815230021952]