Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.Noise.UniformNoise.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.002026/0.002026, allocations: 132.4 kB / 17.8 MB, free: 5.219 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.002236/0.002236, allocations: 210.5 kB / 20.75 MB, free: 2.27 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.632/1.632, allocations: 230.5 MB / 254 MB, free: 15.16 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.UniformNoise,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_Noise_UniformNoise",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.Noise.UniformNoise,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_Noise_UniformNoise",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001851/0.001851, allocations: 63.89 kB / 373 MB, free: 10.11 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1115/0.1133, allocations: 53.37 MB / 426.4 MB, free: 4.637 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Noise.UniformNoise): time 0.002767/0.1161, allocations: 1.504 MB / 427.9 MB, free: 3.129 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001169/0.1173, allocations: 0.588 MB / 428.4 MB, free: 2.539 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.047e-05/0.1173, allocations: 4 kB / 428.5 MB, free: 2.535 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001029/0.1174, allocations: 7.875 kB / 428.5 MB, free: 2.527 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 6.835e-05/0.1175, allocations: 15.8 kB / 428.5 MB, free: 2.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.000544/0.118, allocations: 143.6 kB / 428.6 MB, free: 2.371 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001601/0.1182, allocations: 119.6 kB / 428.7 MB, free: 2.254 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.989e-05/0.1182, allocations: 5.125 kB / 428.7 MB, free: 2.246 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.271e-05/0.1183, allocations: 47.83 kB / 428.8 MB, free: 2.199 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009806/0.1193, allocations: 69.98 kB / 428.9 MB, free: 2.137 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.521e-05/0.1193, allocations: 12 kB / 428.9 MB, free: 2.125 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002351/0.1195, allocations: 119.8 kB / 429 MB, free: 2.008 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.762e-05/0.1196, allocations: 31.91 kB / 429 MB, free: 1.977 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.95e-05/0.1197, allocations: 59.59 kB / 429.1 MB, free: 1.918 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003241/0.12, allocations: 199.2 kB / 429.3 MB, free: 1.723 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.329e-06/0.12, allocations: 0 / 429.3 MB, free: 1.723 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.343e-06/0.12, allocations: 0 / 429.3 MB, free: 1.723 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.222e-06/0.12, allocations: 3.938 kB / 429.3 MB, free: 1.719 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: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0006916/0.1207, allocations: 458.5 kB / 429.7 MB, free: 1.219 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.726e-05/0.1207, allocations: 12.03 kB / 429.7 MB, free: 1.207 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.389e-05/0.1208, allocations: 38.75 kB / 429.8 MB, free: 1.16 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003151/0.1211, allocations: 40.81 kB / 429.8 MB, free: 1.121 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001761/0.1213, allocations: 204 kB / 430 MB, free: 0.8828 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.829e-05/0.1213, allocations: 384 / 430 MB, free: 0.8828 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.423e-05/0.1213, allocations: 12.38 kB / 430 MB, free: 0.8711 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002406/0.1216, allocations: 115.9 kB / 430.1 MB, free: 0.7461 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.518e-06/0.1216, allocations: 7.938 kB / 430.1 MB, free: 0.7383 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.082e-05/0.1216, allocations: 0 / 430.1 MB, free: 0.7383 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.422e-06/0.1216, allocations: 4 kB / 430.1 MB, free: 0.7344 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001815/0.1218, allocations: 59.89 kB / 430.2 MB, free: 0.6758 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007113/0.1225, allocations: 452.8 kB / 430.6 MB, free: 184 kB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003111/0.1228, allocations: 117.2 kB / 430.8 MB, free: 48 kB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001301/0.1229, allocations: 57.91 kB / 430.8 MB, free: 15.98 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.256e-05/0.123, allocations: 4 kB / 430.8 MB, free: 15.98 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002552/0.1232, allocations: 137 kB / 431 MB, free: 15.82 MB / 366.1 MB Notification: Performance of pre-optimization done (n=16): time 1.232e-06/0.1232, allocations: 0 / 431 MB, free: 15.82 MB / 366.1 MB Notification: Performance of matching and sorting (n=16): time 0.0005244/0.1237, allocations: 241.8 kB / 431.2 MB, free: 15.59 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.071e-05/0.1238, allocations: 93.11 kB / 431.3 MB, free: 15.48 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001685/0.124, allocations: 178.3 kB / 431.5 MB, free: 15.29 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.581e-05/0.124, allocations: 49.69 kB / 431.5 MB, free: 15.24 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.193e-05/0.1241, allocations: 108.5 kB / 431.6 MB, free: 15.13 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.504e-05/0.1241, allocations: 43.69 kB / 431.6 MB, free: 15.09 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.082e-05/0.1242, allocations: 49.94 kB / 431.7 MB, free: 15.03 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001418/0.1244, allocations: 334.8 kB / 432 MB, free: 14.69 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001925/0.1246, allocations: 104.5 kB / 432.1 MB, free: 14.59 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002112/0.1248, allocations: 127.5 kB / 432.3 MB, free: 14.45 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003394/0.1251, allocations: 210.9 kB / 432.5 MB, free: 14.24 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.434e-06/0.1251, allocations: 0 / 432.5 MB, free: 14.24 MB / 366.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0004839/0.1256, allocations: 297.3 kB / 432.7 MB, free: 13.94 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.738e-05/0.1256, allocations: 8 kB / 432.8 MB, free: 13.93 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.191e-06/0.1256, allocations: 0 / 432.8 MB, free: 13.93 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.31e-05/0.1256, allocations: 96 / 432.8 MB, free: 13.93 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001524/0.1258, allocations: 35.91 kB / 432.8 MB, free: 13.9 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.016e-05/0.1258, allocations: 7.984 kB / 432.8 MB, free: 13.89 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.008e-05/0.1259, allocations: 15.88 kB / 432.8 MB, free: 13.88 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.954e-05/0.1259, allocations: 16.06 kB / 432.8 MB, free: 13.86 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 32 ($whenCondition2,$whenCondition1,globalSeed.seed,uniformNoise2.actualGlobalSeed,uniformNoise2.localSeed,uniformNoise1.actualGlobalSeed,uniformNoise1.localSeed,globalSeed.id_impure,uniformNoise2.r_raw,$PRE.uniformNoise2.r_raw,uniformNoise2.r,$PRE.uniformNoise2.r,uniformNoise2.state[4],$PRE.uniformNoise2.state[4],uniformNoise2.state[3],$PRE.uniformNoise2.state[3],uniformNoise2.state[2],$PRE.uniformNoise2.state[2],uniformNoise2.state[1],$PRE.uniformNoise2.state[1],uniformNoise1.r_raw,$PRE.uniformNoise1.r_raw,uniformNoise1.r,$PRE.uniformNoise1.r,uniformNoise1.state[4],$PRE.uniformNoise1.state[4],uniformNoise1.state[3],$PRE.uniformNoise1.state[3],uniformNoise1.state[2],$PRE.uniformNoise1.state[2],uniformNoise1.state[1],$PRE.uniformNoise1.state[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (28): * Single equations (assignments): 26 * 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.0001391/0.126, allocations: 149.7 kB / 433 MB, free: 13.7 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.695e-05/0.126, allocations: 15.91 kB / 433 MB, free: 13.69 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.387e-05/0.1261, allocations: 13.39 kB / 433 MB, free: 13.67 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.727e-06/0.1261, allocations: 7.938 kB / 433 MB, free: 13.66 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.927e-06/0.1261, allocations: 0 / 433 MB, free: 13.66 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.396e-06/0.1261, allocations: 0 / 433 MB, free: 13.66 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002184/0.1263, allocations: 213.5 kB / 433.2 MB, free: 13.4 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.113e-06/0.1263, allocations: 4 kB / 433.2 MB, free: 13.4 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.724e-05/0.1264, allocations: 7.984 kB / 433.2 MB, free: 13.39 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.489e-06/0.1264, allocations: 4 kB / 433.2 MB, free: 13.39 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.027e-05/0.1264, allocations: 0 / 433.2 MB, free: 13.39 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.413e-06/0.1264, allocations: 0 / 433.2 MB, free: 13.39 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.63e-06/0.1264, allocations: 4 kB / 433.2 MB, free: 13.38 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003645/0.1267, allocations: 227 kB / 433.5 MB, free: 13.14 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.549e-05/0.1268, allocations: 93 kB / 433.6 MB, free: 13.03 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.161e-05/0.1268, allocations: 12 kB / 433.6 MB, free: 13.02 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.754e-05/0.1269, allocations: 11.92 kB / 433.6 MB, free: 13.01 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.796e-05/0.1269, allocations: 11.98 kB / 433.6 MB, free: 13 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.055e-05/0.1269, allocations: 4 kB / 433.6 MB, free: 12.99 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001031/0.127, allocations: 124.2 kB / 433.7 MB, free: 12.87 MB / 366.1 MB Notification: Performance of sort global known variables: time 6e-08/0.127, allocations: 0 / 433.7 MB, free: 12.87 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002799/0.1273, allocations: 55.88 kB / 433.8 MB, free: 12.82 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 14 ($whenCondition2,uniformNoise2.state[1],uniformNoise2.state[2],uniformNoise2.state[3],uniformNoise2.state[4],uniformNoise2.r,uniformNoise2.r_raw,$whenCondition1,uniformNoise1.state[1],uniformNoise1.state[2],uniformNoise1.state[3],uniformNoise1.state[4],uniformNoise1.r,uniformNoise1.r_raw) * Number of discrete states: 8 (uniformNoise1.state[1],uniformNoise1.state[2],uniformNoise1.state[3],uniformNoise1.state[4],uniformNoise2.state[1],uniformNoise2.state[2],uniformNoise2.state[3],uniformNoise2.state[4]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 4 * 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.001173/0.1285, allocations: 0.9068 MB / 434.7 MB, free: 11.9 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0003921/0.1289, allocations: 175.8 kB / 434.8 MB, free: 11.73 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.318e-06/0.1289, allocations: 4.125 kB / 434.9 MB, free: 11.73 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001288/0.129, allocations: 47.98 kB / 434.9 MB, free: 11.68 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001642/0.1292, allocations: 14.94 kB / 434.9 MB, free: 11.67 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002525/0.1317, allocations: 2.105 MB / 437 MB, free: 9.469 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003156/0.132, allocations: 0.712 MB / 437.7 MB, free: 8.73 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 5.944e-05/0.1321, allocations: 25 kB / 437.8 MB, free: 8.703 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.398e-05/0.1322, allocations: 43.36 kB / 437.8 MB, free: 8.66 MB / 366.1 MB Notification: Performance of SimCode: time 3.1e-07/0.1322, allocations: 4 kB / 437.8 MB, free: 8.656 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02671/0.1589, allocations: 3.644 MB / 441.4 MB, free: 5.078 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.237/8.396, allocations: 8.062 kB / 441.5 MB, free: 5.07 MB / 366.1 MB " [Timeout remaining time 652] (rm -f Modelica_trunk_Modelica.Blocks.Examples.Noise.UniformNoise.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.Noise.UniformNoise.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.Noise.UniformNoise.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.Noise.UniformNoise.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Blocks.Examples.Noise.UniformNoise_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_UniformNoise.fmu > Modelica_trunk_Modelica.Blocks.Examples.Noise.UniformNoise.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Blocks.Examples.Noise.UniformNoise_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/Noise/UniformNoise/UniformNoise.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Blocks.Examples.Noise.UniformNoise.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.353274589055218]