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.00174/0.00174, allocations: 128.4 kB / 17.79 MB, free: 5.242 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.002137/0.002137, allocations: 210.5 kB / 20.75 MB, free: 2.293 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.472/1.472, allocations: 230.4 MB / 254 MB, free: 15.02 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.001924/0.001924, allocations: 67.88 kB / 373 MB, free: 10.09 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1215/0.1234, allocations: 53.36 MB / 426.4 MB, free: 4.625 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Noise.Distributions): time 0.002976/0.1264, allocations: 1.556 MB / 427.9 MB, free: 3.062 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0028/0.1292, allocations: 1.496 MB / 429.4 MB, free: 1.555 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.313e-05/0.1293, allocations: 4 kB / 429.4 MB, free: 1.551 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001295/0.1294, allocations: 11.86 kB / 429.4 MB, free: 1.539 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001245/0.1295, allocations: 27.73 kB / 429.5 MB, free: 1.512 MB / 350.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.001315/0.1308, allocations: 390.8 kB / 429.8 MB, free: 1.129 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001968/0.131, allocations: 131.6 kB / 430 MB, free: 1 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.683e-05/0.1311, allocations: 13.48 kB / 430 MB, free: 0.9805 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.887e-05/0.1312, allocations: 55.77 kB / 430 MB, free: 0.9258 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006996/0.1319, allocations: 86.67 kB / 430.1 MB, free: 0.8477 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.921e-05/0.1319, allocations: 15.94 kB / 430.1 MB, free: 0.832 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006923/0.1326, allocations: 427.2 kB / 430.5 MB, free: 424 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.075e-05/0.1327, allocations: 43.77 kB / 430.6 MB, free: 380 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.408e-05/0.1328, allocations: 55.67 kB / 430.6 MB, free: 324 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2865/0.4192, allocations: 405.9 kB / 431 MB, free: 7.938 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.526e-06/0.4193, allocations: 0 / 431 MB, free: 7.938 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.344e-06/0.4193, allocations: 0.9375 kB / 431 MB, free: 7.938 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.328e-06/0.4193, allocations: 3.062 kB / 431 MB, free: 7.938 MB / 350.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.001077/0.4203, allocations: 0.5162 MB / 431.6 MB, free: 7.488 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.127e-05/0.4204, allocations: 10.34 kB / 431.6 MB, free: 7.488 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.862e-05/0.4205, allocations: 43 kB / 431.6 MB, free: 7.449 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002751/0.4207, allocations: 33.08 kB / 431.6 MB, free: 7.441 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001817/0.4209, allocations: 214.4 kB / 431.9 MB, free: 7.223 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.306e-05/0.4209, allocations: 3.906 kB / 431.9 MB, free: 7.223 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.416e-05/0.421, allocations: 14.55 kB / 431.9 MB, free: 7.223 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003041/0.4213, allocations: 138.3 kB / 432 MB, free: 7.164 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.043e-05/0.4213, allocations: 0.6562 kB / 432 MB, free: 7.164 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.512e-05/0.4213, allocations: 2.094 kB / 432 MB, free: 7.164 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.334e-06/0.4213, allocations: 1.344 kB / 432 MB, free: 7.164 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000224/0.4215, allocations: 62.23 kB / 432.1 MB, free: 7.164 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007776/0.4223, allocations: 0.5657 MB / 432.6 MB, free: 6.723 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000364/0.4227, allocations: 149.5 kB / 432.8 MB, free: 6.652 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001408/0.4228, allocations: 58.38 kB / 432.8 MB, free: 6.629 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.25e-05/0.4228, allocations: 5.062 kB / 432.8 MB, free: 6.629 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003142/0.4231, allocations: 150.5 kB / 433 MB, free: 6.559 MB / 350.1 MB Notification: Performance of pre-optimization done (n=17): time 1.522e-06/0.4231, allocations: 3.75 kB / 433 MB, free: 6.559 MB / 350.1 MB Notification: Performance of matching and sorting (n=17): time 0.0006489/0.4238, allocations: 250.5 kB / 433.2 MB, free: 6.52 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.376e-05/0.4239, allocations: 117.8 kB / 433.4 MB, free: 6.395 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002076/0.4241, allocations: 200.1 kB / 433.6 MB, free: 6.285 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.324e-05/0.4241, allocations: 45.56 kB / 433.6 MB, free: 6.254 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.659e-05/0.4242, allocations: 109.9 kB / 433.7 MB, free: 6.168 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.251e-05/0.4242, allocations: 42.75 kB / 433.7 MB, free: 6.148 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.772e-05/0.4243, allocations: 56.77 kB / 433.8 MB, free: 6.133 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.41e-05/0.4244, allocations: 338.2 kB / 434.1 MB, free: 5.816 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001936/0.4246, allocations: 98.78 kB / 434.2 MB, free: 5.816 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002167/0.4248, allocations: 139.6 kB / 434.4 MB, free: 5.785 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000375/0.4252, allocations: 224.9 kB / 434.6 MB, free: 5.75 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.886e-06/0.4252, allocations: 1.469 kB / 434.6 MB, free: 5.75 MB / 350.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0005219/0.4257, allocations: 308.4 kB / 434.9 MB, free: 5.703 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.012e-05/0.4257, allocations: 9.156 kB / 434.9 MB, free: 5.699 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.308e-06/0.4257, allocations: 1.688 kB / 434.9 MB, free: 5.699 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.757e-05/0.4257, allocations: 1.375 kB / 434.9 MB, free: 5.699 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001616/0.4259, allocations: 31.36 kB / 434.9 MB, free: 5.699 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.054e-05/0.4259, allocations: 2.156 kB / 434.9 MB, free: 5.699 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.408e-05/0.426, allocations: 27.16 kB / 435 MB, free: 5.684 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.299e-05/0.426, allocations: 9.656 kB / 435 MB, free: 5.684 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.0001442/0.4262, allocations: 158.9 kB / 435.1 MB, free: 5.559 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.021e-05/0.4262, allocations: 14.31 kB / 435.1 MB, free: 5.551 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.168e-05/0.4262, allocations: 19.92 kB / 435.2 MB, free: 5.539 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.498e-06/0.4262, allocations: 2.375 kB / 435.2 MB, free: 5.539 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.823e-06/0.4263, allocations: 1 kB / 435.2 MB, free: 5.539 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.472e-06/0.4263, allocations: 5.219 kB / 435.2 MB, free: 5.535 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001902/0.4265, allocations: 217.5 kB / 435.4 MB, free: 5.344 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.424e-06/0.4265, allocations: 2.688 kB / 435.4 MB, free: 5.344 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.926e-05/0.4265, allocations: 12.22 kB / 435.4 MB, free: 5.344 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.007e-06/0.4265, allocations: 2.062 kB / 435.4 MB, free: 5.344 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.29e-05/0.4265, allocations: 5.094 kB / 435.4 MB, free: 5.34 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.875e-06/0.4265, allocations: 2.562 kB / 435.4 MB, free: 5.34 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.32e-06/0.4265, allocations: 6.938 kB / 435.4 MB, free: 5.34 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004425/0.427, allocations: 237.1 kB / 435.6 MB, free: 5.246 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.256e-05/0.427, allocations: 104.5 kB / 435.7 MB, free: 5.137 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.168e-05/0.4271, allocations: 8.984 kB / 435.7 MB, free: 5.137 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.298e-05/0.4272, allocations: 7.469 kB / 435.8 MB, free: 5.137 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.905e-05/0.4272, allocations: 23.66 kB / 435.8 MB, free: 5.133 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.346e-05/0.4273, allocations: 7.812 kB / 435.8 MB, free: 5.133 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001238/0.4274, allocations: 134.9 kB / 435.9 MB, free: 5.059 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.4274, allocations: 0 / 435.9 MB, free: 5.059 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005133/0.4279, allocations: 130.4 kB / 436 MB, free: 5.039 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.001589/0.4295, allocations: 1.05 MB / 437.1 MB, free: 4.387 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004887/0.43, allocations: 188.9 kB / 437.3 MB, free: 4.383 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.43, allocations: 0 / 437.3 MB, free: 4.383 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001656/0.4301, allocations: 55.89 kB / 437.3 MB, free: 4.383 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002181/0.4304, allocations: 15.41 kB / 437.3 MB, free: 4.379 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002985/0.4333, allocations: 2.327 MB / 439.7 MB, free: 3.09 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002108/0.4335, allocations: 0.7192 MB / 440.4 MB, free: 2.387 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001023/0.4336, allocations: 20.69 kB / 440.4 MB, free: 2.383 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.992e-05/0.4337, allocations: 47.48 kB / 440.5 MB, free: 2.379 MB / 350.1 MB Notification: Performance of SimCode: time 6.31e-07/0.4337, allocations: 5.094 kB / 440.5 MB, free: 2.375 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03524/0.469, allocations: 5.543 MB / 446 MB, free: 1.641 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.148/8.617, allocations: 7.5 kB / 446 MB, free: 1.637 MB / 350.1 MB " [Timeout remaining time 651] (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: 11.20841152803041]