Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Blocks.Examples.Noise.UniformNoise.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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.UniformNoise,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_Noise_UniformNoise",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.Noise.UniformNoise,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_Noise_UniformNoise",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001533/0.001533, allocations: 115.7 kB / 16.63 MB, free: 6.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001798/0.001798, allocations: 190 kB / 17.55 MB, free: 5.801 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.322/1.322, allocations: 222.9 MB / 241.2 MB, free: 15.38 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001232/0.001232, allocations: 47.48 kB / 300.2 MB, free: 6.086 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1063/0.1076, allocations: 49.44 MB / 349.7 MB, free: 4.637 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Noise.UniformNoise): time 0.002945/0.1106, allocations: 1.569 MB / 351.2 MB, free: 3.051 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001294/0.1119, allocations: 0.5885 MB / 351.8 MB, free: 2.461 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001116/0.112, allocations: 0 / 351.8 MB, free: 2.461 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001225/0.1122, allocations: 7.938 kB / 351.8 MB, free: 2.453 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 7.989e-05/0.1123, allocations: 7.875 kB / 351.8 MB, free: 2.445 MB / 286.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.0007157/0.113, allocations: 127.7 kB / 352 MB, free: 2.32 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001709/0.1132, allocations: 115.7 kB / 352.1 MB, free: 2.207 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.207e-05/0.1133, allocations: 13.09 kB / 352.1 MB, free: 2.191 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.731e-05/0.1134, allocations: 43.84 kB / 352.1 MB, free: 2.148 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007963/0.1142, allocations: 70.7 kB / 352.2 MB, free: 2.082 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.662e-05/0.1142, allocations: 8 kB / 352.2 MB, free: 2.074 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002514/0.1145, allocations: 111.8 kB / 352.3 MB, free: 1.965 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 6.263e-05/0.1146, allocations: 39.84 kB / 352.4 MB, free: 1.926 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 8.575e-05/0.1146, allocations: 59.66 kB / 352.4 MB, free: 1.867 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003136/0.115, allocations: 191.6 kB / 352.6 MB, free: 1.68 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.408e-06/0.115, allocations: 0 / 352.6 MB, free: 1.68 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.115, allocations: 0 / 352.6 MB, free: 1.68 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.239e-06/0.115, allocations: 4 kB / 352.6 MB, free: 1.676 MB / 286.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.0006431/0.1156, allocations: 458.8 kB / 353.1 MB, free: 1.18 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.885e-05/0.1157, allocations: 8.031 kB / 353.1 MB, free: 1.172 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.805e-05/0.1158, allocations: 42.75 kB / 353.1 MB, free: 1.121 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003229/0.1161, allocations: 40.72 kB / 353.2 MB, free: 1.082 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002143/0.1163, allocations: 196.1 kB / 353.3 MB, free: 0.8516 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.474e-05/0.1163, allocations: 12.12 kB / 353.4 MB, free: 0.8398 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.157e-05/0.1164, allocations: 7.938 kB / 353.4 MB, free: 0.832 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002306/0.1166, allocations: 126.4 kB / 353.5 MB, free: 0.6992 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.705e-06/0.1166, allocations: 0 / 353.5 MB, free: 0.6992 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.297e-05/0.1166, allocations: 4 kB / 353.5 MB, free: 0.6953 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.29e-06/0.1167, allocations: 0 / 353.5 MB, free: 0.6953 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002132/0.1169, allocations: 55.95 kB / 353.5 MB, free: 0.6406 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007673/0.1177, allocations: 456.7 kB / 354 MB, free: 144 kB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003214/0.118, allocations: 125.2 kB / 354.1 MB, free: 0 / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001262/0.1181, allocations: 57.75 kB / 354.2 MB, free: 15.94 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.634e-05/0.1181, allocations: 4 kB / 354.2 MB, free: 15.93 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002748/0.1184, allocations: 137 kB / 354.3 MB, free: 15.78 MB / 302.1 MB Notification: Performance of pre-optimization done (n=16): time 1.352e-06/0.1184, allocations: 0 / 354.3 MB, free: 15.78 MB / 302.1 MB Notification: Performance of matching and sorting (n=16): time 0.0005365/0.119, allocations: 245.4 kB / 354.5 MB, free: 15.54 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.99e-05/0.1191, allocations: 89.11 kB / 354.6 MB, free: 15.43 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000181/0.1192, allocations: 183.3 kB / 354.8 MB, free: 15.24 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.616e-05/0.1193, allocations: 53.62 kB / 354.9 MB, free: 15.18 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.806e-05/0.1194, allocations: 104.5 kB / 355 MB, free: 15.08 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.722e-05/0.1194, allocations: 47.47 kB / 355 MB, free: 15.03 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.895e-05/0.1195, allocations: 57.88 kB / 355.1 MB, free: 14.96 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000138/0.1197, allocations: 334.8 kB / 355.4 MB, free: 14.63 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001822/0.1199, allocations: 92.47 kB / 355.5 MB, free: 14.54 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002198/0.1201, allocations: 128.4 kB / 355.6 MB, free: 14.4 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003356/0.1204, allocations: 211.4 kB / 355.8 MB, free: 14.19 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.294e-06/0.1204, allocations: 0 / 355.8 MB, free: 14.19 MB / 302.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0005001/0.121, allocations: 289.3 kB / 356.1 MB, free: 13.9 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.89e-05/0.121, allocations: 8 kB / 356.1 MB, free: 13.89 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.024e-06/0.121, allocations: 0 / 356.1 MB, free: 13.89 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.534e-05/0.121, allocations: 0 / 356.1 MB, free: 13.89 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001533/0.1212, allocations: 31.97 kB / 356.1 MB, free: 13.86 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.518e-06/0.1212, allocations: 7.938 kB / 356.1 MB, free: 13.85 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.193e-05/0.1213, allocations: 23.75 kB / 356.2 MB, free: 13.83 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.895e-05/0.1213, allocations: 4 kB / 356.2 MB, free: 13.82 MB / 302.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.0001583/0.1215, allocations: 149.9 kB / 356.3 MB, free: 13.67 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.1e-05/0.1215, allocations: 19.81 kB / 356.3 MB, free: 13.65 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.524e-05/0.1215, allocations: 13.39 kB / 356.4 MB, free: 13.63 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.184e-06/0.1216, allocations: 4 kB / 356.4 MB, free: 13.63 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.484e-06/0.1216, allocations: 3.938 kB / 356.4 MB, free: 13.62 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.448e-06/0.1216, allocations: 0 / 356.4 MB, free: 13.62 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002101/0.1218, allocations: 205.6 kB / 356.6 MB, free: 13.38 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.864e-06/0.1218, allocations: 4 kB / 356.6 MB, free: 13.37 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.855e-05/0.1219, allocations: 11.92 kB / 356.6 MB, free: 13.36 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.847e-06/0.1219, allocations: 4 kB / 356.6 MB, free: 13.36 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.267e-05/0.1219, allocations: 3.938 kB / 356.6 MB, free: 13.35 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.567e-06/0.1219, allocations: 4.469 kB / 356.6 MB, free: 13.35 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.901e-06/0.1219, allocations: 7.938 kB / 356.6 MB, free: 13.34 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003725/0.1223, allocations: 221.7 kB / 356.8 MB, free: 13.1 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.382e-05/0.1224, allocations: 92.91 kB / 356.9 MB, free: 12.99 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.12e-05/0.1224, allocations: 12 kB / 356.9 MB, free: 12.98 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.777e-05/0.1225, allocations: 7.984 kB / 356.9 MB, free: 12.97 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.189e-05/0.1225, allocations: 15.92 kB / 356.9 MB, free: 12.96 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.056e-05/0.1225, allocations: 4 kB / 356.9 MB, free: 12.95 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001042/0.1227, allocations: 127.4 kB / 357.1 MB, free: 12.83 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1227, allocations: 4 kB / 357.1 MB, free: 12.82 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002995/0.123, allocations: 48 kB / 357.1 MB, free: 12.78 MB / 302.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.00109/0.1241, allocations: 0.9084 MB / 358 MB, free: 11.87 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004162/0.1245, allocations: 199.8 kB / 358.2 MB, free: 11.67 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.1245, allocations: 128 / 358.2 MB, free: 11.67 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001413/0.1247, allocations: 55.98 kB / 358.3 MB, free: 11.62 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001803/0.1249, allocations: 23.38 kB / 358.3 MB, free: 11.6 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002641/0.1275, allocations: 2.1 MB / 360.4 MB, free: 9.406 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003067/0.1278, allocations: 0.7119 MB / 361.1 MB, free: 8.668 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 6.38e-05/0.1279, allocations: 25 kB / 361.1 MB, free: 8.645 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.772e-05/0.128, allocations: 35.42 kB / 361.2 MB, free: 8.609 MB / 302.1 MB Notification: Performance of SimCode: time 2.61e-07/0.128, allocations: 0 / 361.2 MB, free: 8.609 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01425/0.1422, allocations: 3.458 MB / 364.6 MB, free: 5.258 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001913/0.1425, allocations: 231.2 kB / 364.9 MB, free: 5.004 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.068/2.21, allocations: 0 / 364.9 MB, free: 5.004 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.Noise.UniformNoise.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.Noise.UniformNoise.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.Noise.UniformNoise.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.Noise.UniformNoise.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Blocks.Examples.Noise.UniformNoise_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Blocks_Examples_Noise_UniformNoise_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Blocks_Examples_Noise_UniformNoise.fmu > Modelica_4.0.0_Modelica.Blocks.Examples.Noise.UniformNoise.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Blocks.Examples.Noise.UniformNoise_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/Noise/UniformNoise/UniformNoise.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Blocks.Examples.Noise.UniformNoise.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches