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.001909/0.001909, allocations: 124 kB / 17.79 MB, free: 5.266 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.002358/0.002358, allocations: 190.9 kB / 20.73 MB, free: 2.328 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.479/1.479, allocations: 225.6 MB / 249.1 MB, free: 3.629 MB / 190.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.001558/0.001558, allocations: 51.92 kB / 365.6 MB, free: 0.9336 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1003/0.1018, allocations: 52.13 MB / 417.8 MB, free: 12.7 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Noise.Distributions): time 0.002923/0.1047, allocations: 1.544 MB / 419.3 MB, free: 11.15 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002563/0.1073, allocations: 1.442 MB / 420.8 MB, free: 9.699 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.953e-05/0.1074, allocations: 3.938 kB / 420.8 MB, free: 9.695 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001088/0.1075, allocations: 15.81 kB / 420.8 MB, free: 9.68 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 9.356e-05/0.1076, allocations: 19.8 kB / 420.8 MB, free: 9.66 MB / 350.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.001125/0.1087, allocations: 390.7 kB / 421.2 MB, free: 9.277 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001885/0.1089, allocations: 135.6 kB / 421.3 MB, free: 9.145 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.011e-05/0.1089, allocations: 5.5 kB / 421.3 MB, free: 9.137 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.039e-05/0.109, allocations: 51.78 kB / 421.4 MB, free: 9.086 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006171/0.1096, allocations: 95.03 kB / 421.5 MB, free: 9.004 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.948e-05/0.1097, allocations: 12 kB / 421.5 MB, free: 8.992 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007117/0.1104, allocations: 431.2 kB / 421.9 MB, free: 8.57 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.973e-05/0.1104, allocations: 39.84 kB / 421.9 MB, free: 8.531 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.457e-05/0.1105, allocations: 59.59 kB / 422 MB, free: 8.473 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000652/0.1112, allocations: 394.7 kB / 422.4 MB, free: 8.086 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.198e-06/0.1112, allocations: 0 / 422.4 MB, free: 8.086 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.202e-06/0.1112, allocations: 0 / 422.4 MB, free: 8.086 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.129e-05/0.1112, allocations: 0 / 422.4 MB, free: 8.086 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.0009706/0.1121, allocations: 0.5213 MB / 422.9 MB, free: 7.516 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.093e-05/0.1122, allocations: 12.03 kB / 422.9 MB, free: 7.504 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.497e-05/0.1123, allocations: 46.69 kB / 423 MB, free: 7.449 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000254/0.1125, allocations: 28.83 kB / 423 MB, free: 7.422 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000238/0.1128, allocations: 216.5 kB / 423.2 MB, free: 7.168 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.51e-05/0.1128, allocations: 4 kB / 423.2 MB, free: 7.164 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.079e-05/0.1128, allocations: 12 kB / 423.2 MB, free: 7.152 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003265/0.1132, allocations: 134.5 kB / 423.3 MB, free: 7.008 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.392e-05/0.1132, allocations: 11.92 kB / 423.4 MB, free: 6.996 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.548e-05/0.1132, allocations: 0 / 423.4 MB, free: 6.996 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.061e-06/0.1132, allocations: 0 / 423.4 MB, free: 6.996 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00023/0.1134, allocations: 67.89 kB / 423.4 MB, free: 6.93 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009387/0.1144, allocations: 0.5555 MB / 424 MB, free: 6.316 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000395/0.1148, allocations: 143.9 kB / 424.1 MB, free: 6.148 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001489/0.1149, allocations: 62.55 kB / 424.2 MB, free: 6.078 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.213e-05/0.1149, allocations: 3.984 kB / 424.2 MB, free: 6.074 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003472/0.1153, allocations: 160.1 kB / 424.3 MB, free: 5.898 MB / 350.1 MB Notification: Performance of pre-optimization done (n=17): time 1.503e-06/0.1153, allocations: 3.938 kB / 424.3 MB, free: 5.895 MB / 350.1 MB Notification: Performance of matching and sorting (n=17): time 0.0006814/0.116, allocations: 257.3 kB / 424.6 MB, free: 5.637 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.782e-05/0.1161, allocations: 110.8 kB / 424.7 MB, free: 5.504 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002409/0.1163, allocations: 199.1 kB / 424.9 MB, free: 5.301 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.895e-05/0.1163, allocations: 53.81 kB / 424.9 MB, free: 5.242 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.075e-05/0.1164, allocations: 116.5 kB / 425.1 MB, free: 5.125 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.297e-05/0.1165, allocations: 43.69 kB / 425.1 MB, free: 5.082 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.319e-05/0.1166, allocations: 49.7 kB / 425.2 MB, free: 5.027 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001903/0.1168, allocations: 330.8 kB / 425.5 MB, free: 4.695 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002193/0.117, allocations: 103.9 kB / 425.6 MB, free: 4.594 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002504/0.1172, allocations: 147.2 kB / 425.7 MB, free: 4.438 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004318/0.1177, allocations: 228.2 kB / 425.9 MB, free: 4.203 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.695e-06/0.1177, allocations: 0 / 425.9 MB, free: 4.203 MB / 350.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0005633/0.1182, allocations: 313.3 kB / 426.3 MB, free: 3.891 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.932e-05/0.1183, allocations: 7.938 kB / 426.3 MB, free: 3.883 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.007e-05/0.1183, allocations: 7.938 kB / 426.3 MB, free: 3.875 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.649e-05/0.1183, allocations: 0 / 426.3 MB, free: 3.875 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001786/0.1185, allocations: 31.92 kB / 426.3 MB, free: 3.844 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.011e-06/0.1185, allocations: 0 / 426.3 MB, free: 3.844 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.255e-05/0.1186, allocations: 23.88 kB / 426.3 MB, free: 3.82 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.208e-05/0.1186, allocations: 8.094 kB / 426.3 MB, free: 3.812 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.0001531/0.1187, allocations: 150.4 kB / 426.5 MB, free: 3.656 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.625e-05/0.1188, allocations: 23.8 kB / 426.5 MB, free: 3.633 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.951e-05/0.1188, allocations: 17.39 kB / 426.5 MB, free: 3.609 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.605e-06/0.1188, allocations: 0 / 426.5 MB, free: 3.609 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.99e-06/0.1188, allocations: 0 / 426.5 MB, free: 3.609 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.68e-06/0.1188, allocations: 4 kB / 426.5 MB, free: 3.605 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002415/0.1191, allocations: 213.5 kB / 426.7 MB, free: 3.348 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.333e-06/0.1191, allocations: 4 kB / 426.7 MB, free: 3.344 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.177e-05/0.1191, allocations: 11.98 kB / 426.7 MB, free: 3.332 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.468e-06/0.1191, allocations: 7.938 kB / 426.8 MB, free: 3.324 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.357e-05/0.1192, allocations: 4 kB / 426.8 MB, free: 3.32 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.342e-06/0.1192, allocations: 0 / 426.8 MB, free: 3.32 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.1192, allocations: 4 kB / 426.8 MB, free: 3.316 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004339/0.1196, allocations: 243 kB / 427 MB, free: 3.055 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.721e-05/0.1197, allocations: 92.97 kB / 427.1 MB, free: 2.945 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.98e-05/0.1197, allocations: 19.92 kB / 427.1 MB, free: 2.926 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.226e-05/0.1198, allocations: 8 kB / 427.1 MB, free: 2.918 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.357e-05/0.1198, allocations: 15.98 kB / 427.1 MB, free: 2.902 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.06e-05/0.1199, allocations: 3.984 kB / 427.1 MB, free: 2.898 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001424/0.12, allocations: 141.2 kB / 427.3 MB, free: 2.762 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.12, allocations: 4.094 kB / 427.3 MB, free: 2.758 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005336/0.1205, allocations: 135.5 kB / 427.4 MB, free: 2.625 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.001644/0.1222, allocations: 1.048 MB / 428.5 MB, free: 1.57 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004848/0.1227, allocations: 187.9 kB / 428.6 MB, free: 1.387 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.1227, allocations: 0 / 428.6 MB, free: 1.387 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001611/0.1228, allocations: 59.89 kB / 428.7 MB, free: 1.328 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000194/0.123, allocations: 19.92 kB / 428.7 MB, free: 1.309 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003108/0.1261, allocations: 2.311 MB / 431 MB, free: 14.88 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003753/0.1265, allocations: 0.7164 MB / 431.7 MB, free: 14.14 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 8.776e-05/0.1266, allocations: 29.39 kB / 431.8 MB, free: 14.11 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.079e-05/0.1267, allocations: 47.42 kB / 431.8 MB, free: 14.07 MB / 366.1 MB Notification: Performance of SimCode: time 7.12e-07/0.1267, allocations: 0 / 431.8 MB, free: 14.07 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03149/0.1582, allocations: 5.449 MB / 437.3 MB, free: 8.707 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.637/8.795, allocations: 4.562 kB / 437.3 MB, free: 8.703 MB / 366.1 MB " [Timeout remaining time 651] (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: 11.723885069135576]