Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AdvancedNoise_AdvancedNoise.Examples.SignalBasedNoise.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/AdvancedNoise 1.1.0-master/package.mo", uses=false) Using package AdvancedNoise with version 1.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AdvancedNoise 1.1.0-master/package.mo) 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(AdvancedNoise.Examples.SignalBasedNoise,fileNamePrefix="AdvancedNoise_AdvancedNoise_Examples_SignalBasedNoise",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AdvancedNoise.Examples.SignalBasedNoise,fileNamePrefix="AdvancedNoise_AdvancedNoise_Examples_SignalBasedNoise",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.00636/0.00636, allocations: 105.8 kB / 15.74 MB, free: 5.996 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.001255/0.001255, allocations: 200 kB / 16.68 MB, free: 5.922 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.345/1.345, allocations: 222.9 MB / 240.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AdvancedNoise 1.1.0-master/package.mo): time 0.0247/0.0247, allocations: 3.905 MB / 294.4 MB, free: 11.01 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00125/0.00125, allocations: 64.11 kB / 406.4 MB, free: 28.71 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09167/0.09293, allocations: 50.18 MB / 456.6 MB, free: 10.49 MB / 334.1 MB Notification: Performance of NFInst.instantiate(AdvancedNoise.Examples.SignalBasedNoise): time 0.002883/0.09586, allocations: 1.462 MB / 458.1 MB, free: 9.016 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002089/0.09797, allocations: 1.051 MB / 459.1 MB, free: 7.957 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.864e-05/0.09807, allocations: 4 kB / 459.1 MB, free: 7.953 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000153/0.09827, allocations: 15.8 kB / 459.1 MB, free: 7.938 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000207/0.09848, allocations: 23.86 kB / 459.2 MB, free: 7.914 MB / 334.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'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AdvancedNoise 1.1.0-master/Generators/QuickXorshift64star/package.mo:6:13-93:19:writable] Warning: Pure function 'AdvancedNoise.Examples.SignalBasedNoise.signalBasedNoise.generator.initialState' contains a call to impure function 'AdvancedNoise.Examples.SignalBasedNoise.signalBasedNoise.generator.random'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AdvancedNoise 1.1.0-master/Sources/SignalBasedNoise.mo:250:3-261:19:writable] Warning: Pure function 'AdvancedNoise.Examples.SignalBasedNoise.signalBasedNoise.initialState' contains a call to impure function 'AdvancedNoise.Examples.SignalBasedNoise.signalBasedNoise.convertRealToIntegers'. Notification: Performance of NFTyping.typeClassSections: time 0.0006842/0.09917, allocations: 183.4 kB / 459.3 MB, free: 7.734 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001749/0.09936, allocations: 119.7 kB / 459.4 MB, free: 7.617 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.265e-05/0.09946, allocations: 16 kB / 459.5 MB, free: 7.602 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.54e-05/0.09956, allocations: 43.78 kB / 459.5 MB, free: 7.559 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.696e-05/0.09965, allocations: 43.83 kB / 459.5 MB, free: 7.516 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2e-05/0.09968, allocations: 4 kB / 459.6 MB, free: 7.512 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002938/0.09998, allocations: 187.7 kB / 459.7 MB, free: 7.328 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.028e-05/0.1, allocations: 11.98 kB / 459.7 MB, free: 7.316 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 5.132e-05/0.1001, allocations: 43.72 kB / 459.8 MB, free: 7.273 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000321/0.1004, allocations: 195.6 kB / 460 MB, free: 7.082 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.76e-06/0.1004, allocations: 7.938 kB / 460 MB, free: 7.074 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.754e-06/0.1004, allocations: 0 / 460 MB, free: 7.074 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.38e-06/0.1004, allocations: 3.938 kB / 460 MB, free: 7.07 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0005448/0.101, allocations: 426.7 kB / 460.4 MB, free: 6.609 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.673e-05/0.101, allocations: 12.03 kB / 460.4 MB, free: 6.598 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.038e-05/0.1011, allocations: 38.67 kB / 460.5 MB, free: 6.551 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003648/0.1015, allocations: 56.78 kB / 460.5 MB, free: 6.496 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002549/0.1017, allocations: 206.5 kB / 460.7 MB, free: 6.258 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.809e-05/0.1018, allocations: 12.34 kB / 460.7 MB, free: 6.246 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.818e-05/0.1018, allocations: 7.938 kB / 460.7 MB, free: 6.238 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001849/0.102, allocations: 81.58 kB / 460.8 MB, free: 6.152 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.834e-06/0.102, allocations: 0 / 460.8 MB, free: 6.152 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.417e-05/0.102, allocations: 4 kB / 460.8 MB, free: 6.148 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.528e-06/0.102, allocations: 4 kB / 460.8 MB, free: 6.145 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001351/0.1022, allocations: 55.95 kB / 460.9 MB, free: 6.09 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005489/0.1027, allocations: 360.6 kB / 461.2 MB, free: 5.688 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001915/0.1029, allocations: 82.53 kB / 461.3 MB, free: 5.598 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.122e-05/0.103, allocations: 40.84 kB / 461.4 MB, free: 5.555 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.375e-05/0.103, allocations: 4 kB / 461.4 MB, free: 5.551 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.669e-05/0.1031, allocations: 30.56 kB / 461.4 MB, free: 5.512 MB / 334.1 MB Notification: Performance of pre-optimization done (n=8): time 1.473e-06/0.1031, allocations: 0 / 461.4 MB, free: 5.512 MB / 334.1 MB Notification: Performance of matching and sorting (n=8): time 0.0003951/0.1035, allocations: 157.4 kB / 461.5 MB, free: 5.352 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.408e-05/0.1035, allocations: 55.41 kB / 461.6 MB, free: 5.285 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001284/0.1037, allocations: 145.4 kB / 461.7 MB, free: 5.129 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.994e-05/0.1037, allocations: 33.7 kB / 461.8 MB, free: 5.09 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.403e-05/0.1037, allocations: 100.1 kB / 461.9 MB, free: 4.988 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.702e-05/0.1038, allocations: 27.8 kB / 461.9 MB, free: 4.961 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.894e-05/0.1038, allocations: 33.61 kB / 461.9 MB, free: 4.922 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001003/0.1039, allocations: 318.8 kB / 462.2 MB, free: 4.602 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.926e-05/0.104, allocations: 35.98 kB / 462.3 MB, free: 4.566 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.632e-05/0.1041, allocations: 35.97 kB / 462.3 MB, free: 4.531 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001561/0.1043, allocations: 88.81 kB / 462.4 MB, free: 4.441 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.854e-06/0.1043, allocations: 0 / 462.4 MB, free: 4.441 MB / 334.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002499/0.1045, allocations: 141.4 kB / 462.5 MB, free: 4.297 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.29e-05/0.1046, allocations: 4 kB / 462.5 MB, free: 4.293 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.159e-06/0.1046, allocations: 0 / 462.5 MB, free: 4.293 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.248e-05/0.1046, allocations: 0 / 462.5 MB, free: 4.293 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001326/0.1047, allocations: 23.97 kB / 462.6 MB, free: 4.27 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.354e-06/0.1047, allocations: 3.938 kB / 462.6 MB, free: 4.266 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.673e-05/0.1048, allocations: 11.94 kB / 462.6 MB, free: 4.254 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.272e-05/0.1049, allocations: 27.95 kB / 462.6 MB, free: 4.227 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 4 (globalSeed.seed,signalBasedNoise.actualGlobalSeed,globalSeed.id_impure,signalBasedNoise.localSeed) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 11 * Array equations: 0 * 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 8.927e-05/0.105, allocations: 122.2 kB / 462.7 MB, free: 4.098 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.794e-05/0.105, allocations: 7.906 kB / 462.7 MB, free: 4.09 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.324e-05/0.1051, allocations: 20.7 kB / 462.7 MB, free: 4.066 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.784e-06/0.1051, allocations: 0 / 462.7 MB, free: 4.066 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.749e-06/0.1051, allocations: 3.938 kB / 462.8 MB, free: 4.062 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.536e-06/0.1051, allocations: 4 kB / 462.8 MB, free: 4.059 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002072/0.1053, allocations: 201.5 kB / 463 MB, free: 3.812 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.473e-06/0.1053, allocations: 0 / 463 MB, free: 3.812 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.747e-05/0.1054, allocations: 19.98 kB / 463 MB, free: 3.793 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.144e-06/0.1054, allocations: 0 / 463 MB, free: 3.793 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.299e-05/0.1054, allocations: 3.984 kB / 463 MB, free: 3.789 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.503e-06/0.1054, allocations: 4 kB / 463 MB, free: 3.785 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.274e-06/0.1054, allocations: 3.938 kB / 463 MB, free: 3.781 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002777/0.1057, allocations: 227.3 kB / 463.2 MB, free: 3.543 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.818e-05/0.1058, allocations: 97 kB / 463.3 MB, free: 3.43 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.275e-05/0.1058, allocations: 3.984 kB / 463.3 MB, free: 3.426 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.024e-05/0.1059, allocations: 4 kB / 463.3 MB, free: 3.422 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.248e-05/0.106, allocations: 7.938 kB / 463.3 MB, free: 3.414 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.826e-05/0.106, allocations: 27.94 kB / 463.3 MB, free: 3.387 MB / 334.1 MB Notification: Performance of sorting global known variables: time 8.216e-05/0.1061, allocations: 111.3 kB / 463.5 MB, free: 3.277 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1061, allocations: 3.938 kB / 463.5 MB, free: 3.273 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000309/0.1064, allocations: 51.98 kB / 463.5 MB, free: 3.223 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (signalBasedNoise.localSeed) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0008776/0.1073, allocations: 0.8902 MB / 464.4 MB, free: 2.352 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002173/0.1075, allocations: 83.94 kB / 464.5 MB, free: 2.27 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.834e-06/0.1075, allocations: 0 / 464.5 MB, free: 2.27 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 9.175e-05/0.1076, allocations: 43.92 kB / 464.5 MB, free: 2.227 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002446/0.1079, allocations: 17.95 kB / 464.5 MB, free: 2.211 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001943/0.1098, allocations: 1.617 MB / 466.2 MB, free: 0.5117 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002575/0.1101, allocations: 0.6963 MB / 466.9 MB, free: 15.79 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.325e-05/0.1102, allocations: 28.59 kB / 466.9 MB, free: 15.76 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.993e-05/0.1103, allocations: 39.34 kB / 466.9 MB, free: 15.72 MB / 350.1 MB Notification: Performance of SimCode: time 3e-07/0.1103, allocations: 0 / 466.9 MB, free: 15.72 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02101/0.1313, allocations: 3.645 MB / 470.6 MB, free: 12.16 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.606/7.737, allocations: 13.52 kB / 470.6 MB, free: 12.15 MB / 350.1 MB (rm -f AdvancedNoise_AdvancedNoise.Examples.SignalBasedNoise.pipe ; mkfifo AdvancedNoise_AdvancedNoise.Examples.SignalBasedNoise.pipe ; head -c 1048576 < AdvancedNoise_AdvancedNoise.Examples.SignalBasedNoise.pipe >> ../files/AdvancedNoise_AdvancedNoise.Examples.SignalBasedNoise.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AdvancedNoise_AdvancedNoise_Examples_SignalBasedNoise_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 AdvancedNoise_AdvancedNoise_Examples_SignalBasedNoise.fmu > AdvancedNoise_AdvancedNoise.Examples.SignalBasedNoise.pipe 2>&1)