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.0008436/0.0008436, allocations: 76.08 kB / 20.67 MB, free: 3.891 MB / 18.57 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.0007963/0.0007963, allocations: 149.4 kB / 23.93 MB, free: 0.6289 MB / 18.57 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 0.886/0.886, allocations: 173.3 MB / 200.4 MB, free: 9.434 MB / 186.7 MB " [Timeout remaining time 179] 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 1.443e-06/1.443e-06, allocations: 0 / 318.4 MB, free: 6.355 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.816e-05/1.961e-05, allocations: 6.281 kB / 318.4 MB, free: 6.348 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Noise.Distributions): time 0.001819/0.001839, allocations: 1.493 MB / 319.9 MB, free: 4.84 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.00158/0.003418, allocations: 1.36 MB / 321.3 MB, free: 3.473 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.066e-05/0.003469, allocations: 0 / 321.3 MB, free: 3.473 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 8.419e-05/0.003553, allocations: 11.81 kB / 321.3 MB, free: 3.461 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 7.483e-05/0.003628, allocations: 23.8 kB / 321.3 MB, free: 3.438 MB / 282.7 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.0007706/0.004399, allocations: 402.5 kB / 321.7 MB, free: 3.043 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001313/0.00453, allocations: 139.6 kB / 321.9 MB, free: 2.906 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.163e-05/0.004572, allocations: 9.672 kB / 321.9 MB, free: 2.891 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.531e-05/0.004647, allocations: 87.67 kB / 322 MB, free: 2.805 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003585/0.005006, allocations: 58.2 kB / 322 MB, free: 2.754 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.052e-05/0.005026, allocations: 12 kB / 322 MB, free: 2.742 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004737/0.0055, allocations: 434.9 kB / 322.4 MB, free: 2.316 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 4.75e-05/0.005547, allocations: 39.84 kB / 322.5 MB, free: 2.277 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 4.412e-05/0.005591, allocations: 43.83 kB / 322.5 MB, free: 2.234 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004408/0.006032, allocations: 450.8 kB / 323 MB, free: 1.793 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.954e-06/0.006034, allocations: 0 / 323 MB, free: 1.793 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.292e-06/0.006035, allocations: 0 / 323 MB, free: 1.793 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.108e-06/0.00604, allocations: 0 / 323 MB, free: 1.793 MB / 282.7 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.0005634/0.006603, allocations: 452.7 kB / 323.4 MB, free: 1.32 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.506e-05/0.006638, allocations: 8.922 kB / 323.4 MB, free: 1.312 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.708e-05/0.006695, allocations: 42.73 kB / 323.5 MB, free: 1.262 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001303/0.006825, allocations: 32.81 kB / 323.5 MB, free: 1.23 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001309/0.006956, allocations: 159.1 kB / 323.6 MB, free: 1.047 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.848e-05/0.006975, allocations: 16.12 kB / 323.7 MB, free: 1.031 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.519e-05/0.00699, allocations: 8 kB / 323.7 MB, free: 1.023 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001812/0.007171, allocations: 128.2 kB / 323.8 MB, free: 0.8828 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.314e-06/0.007178, allocations: 0 / 323.8 MB, free: 0.8828 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.072e-05/0.007189, allocations: 4 kB / 323.8 MB, free: 0.8789 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.459e-06/0.007194, allocations: 0 / 323.8 MB, free: 0.8789 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001168/0.00731, allocations: 67.89 kB / 323.9 MB, free: 0.8125 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004907/0.007801, allocations: 0.504 MB / 324.4 MB, free: 264 kB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001921/0.007993, allocations: 143.8 kB / 324.5 MB, free: 92 kB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.605e-05/0.008059, allocations: 54.61 kB / 324.6 MB, free: 28 kB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.908e-06/0.008069, allocations: 4 kB / 324.6 MB, free: 24 kB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003534/0.008423, allocations: 165.7 kB / 324.7 MB, free: 15.84 MB / 298.7 MB Notification: Performance of pre-optimization done (n=17): time 1.162e-06/0.008424, allocations: 0 / 324.7 MB, free: 15.84 MB / 298.7 MB Notification: Performance of matching and sorting (n=17): time 0.0003466/0.00877, allocations: 253.9 kB / 325 MB, free: 15.59 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.092e-05/0.008821, allocations: 118.8 kB / 325.1 MB, free: 15.45 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001265/0.008948, allocations: 203.1 kB / 325.3 MB, free: 15.24 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.777e-05/0.008975, allocations: 45.69 kB / 325.3 MB, free: 15.19 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.083e-05/0.009026, allocations: 112.6 kB / 325.4 MB, free: 15.07 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.555e-05/0.009092, allocations: 47.67 kB / 325.5 MB, free: 15.03 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.187e-05/0.009154, allocations: 69.77 kB / 325.6 MB, free: 14.95 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.845e-05/0.009232, allocations: 330.8 kB / 325.9 MB, free: 14.62 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001179/0.00935, allocations: 99.88 kB / 326 MB, free: 14.52 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000126/0.009476, allocations: 143.2 kB / 326.1 MB, free: 14.37 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000219/0.009695, allocations: 219.8 kB / 326.3 MB, free: 14.14 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.485e-06/0.009698, allocations: 4 kB / 326.3 MB, free: 14.14 MB / 298.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0003112/0.01001, allocations: 305.4 kB / 326.6 MB, free: 13.84 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.368e-05/0.01002, allocations: 4 kB / 326.6 MB, free: 13.83 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.732e-06/0.01003, allocations: 0 / 326.6 MB, free: 13.83 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.406e-05/0.01004, allocations: 7.938 kB / 326.6 MB, free: 13.82 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.882e-05/0.01014, allocations: 31.92 kB / 326.7 MB, free: 13.79 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.703e-06/0.01015, allocations: 4 kB / 326.7 MB, free: 13.79 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.067e-05/0.0102, allocations: 31.92 kB / 326.7 MB, free: 13.76 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.267e-05/0.01021, allocations: 8 kB / 326.7 MB, free: 13.75 MB / 298.7 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.0001033/0.01032, allocations: 149.8 kB / 326.9 MB, free: 13.59 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.814e-05/0.01033, allocations: 19.91 kB / 326.9 MB, free: 13.57 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.581e-05/0.01036, allocations: 17.45 kB / 326.9 MB, free: 13.56 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.207e-06/0.01036, allocations: 3.938 kB / 326.9 MB, free: 13.55 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.789e-06/0.01037, allocations: 0 / 326.9 MB, free: 13.55 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.326e-06/0.01037, allocations: 0 / 326.9 MB, free: 13.55 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001274/0.0105, allocations: 184.6 kB / 327.1 MB, free: 13.33 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.132e-06/0.0105, allocations: 0 / 327.1 MB, free: 13.33 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.547e-05/0.01052, allocations: 11.98 kB / 327.1 MB, free: 13.32 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.214e-06/0.01053, allocations: 4 kB / 327.1 MB, free: 13.32 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.525e-06/0.01053, allocations: 0 / 327.1 MB, free: 13.32 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.737e-06/0.01054, allocations: 7.922 kB / 327.1 MB, free: 13.31 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.52e-07/0.01054, allocations: 7.938 kB / 327.1 MB, free: 13.3 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003048/0.01084, allocations: 237.8 kB / 327.4 MB, free: 13.05 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.889e-05/0.01086, allocations: 15.91 kB / 327.4 MB, free: 13.03 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.023e-05/0.01088, allocations: 15.98 kB / 327.4 MB, free: 13.02 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.059e-05/0.01091, allocations: 11.94 kB / 327.4 MB, free: 13 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.009e-05/0.01096, allocations: 15.97 kB / 327.4 MB, free: 12.99 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.244e-06/0.01097, allocations: 4 kB / 327.4 MB, free: 12.98 MB / 298.7 MB Notification: Performance of sorting global known variables: time 8.411e-05/0.01105, allocations: 141.1 kB / 327.6 MB, free: 12.85 MB / 298.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01105, allocations: 0 / 327.6 MB, free: 12.85 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.000282/0.01134, allocations: 127.5 kB / 327.7 MB, free: 12.72 MB / 298.7 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.0009032/0.01224, allocations: 1.077 MB / 328.8 MB, free: 11.64 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002582/0.0125, allocations: 188.4 kB / 328.9 MB, free: 11.46 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.292e-06/0.0125, allocations: 0 / 328.9 MB, free: 11.46 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 7.803e-05/0.01258, allocations: 59.91 kB / 329 MB, free: 11.4 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001219/0.0127, allocations: 19.3 kB / 329 MB, free: 11.39 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001968/0.01467, allocations: 2.325 MB / 331.3 MB, free: 8.945 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.05e-05/0.01474, allocations: 103.4 kB / 331.4 MB, free: 8.824 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 5.833e-05/0.0148, allocations: 33.39 kB / 331.5 MB, free: 8.793 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.045e-05/0.01486, allocations: 48.48 kB / 331.5 MB, free: 8.742 MB / 298.7 MB Notification: Performance of SimCode: time 7.81e-07/0.01486, allocations: 0 / 331.5 MB, free: 8.742 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01998/0.03484, allocations: 6.265 MB / 337.8 MB, free: 2.594 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.762/6.797, allocations: 0 / 337.8 MB, free: 2.594 MB / 298.7 MB " [Timeout remaining time 653] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Blocks.Examples.Noise.Distributions_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Blocks_Examples_Noise_Distributions_fmu --startTime=0 --stopTime=2 --stepSize=0.00039208 --timeout=50 --tolerance=1e-06 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.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/Noise/Distributions/Distributions.csv","/var/lib/jenkins/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: 8.45737330429256]