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.001043/0.001043, allocations: 99.7 kB / 15.05 MB, free: 1.105 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.001049/0.001049, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.29/1.29, allocations: 223.2 MB / 239.9 MB, free: 5.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AdvancedNoise 1.1.0-master/package.mo): time 0.1668/0.1668, allocations: 3.874 MB / 294.8 MB, free: 3.988 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002867/0.0002869, allocations: 8 kB / 356.6 MB, free: 3.531 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0868/0.08711, allocations: 51.17 MB / 407.8 MB, free: 328 kB / 334.1 MB Notification: Performance of NFInst.instantiate(AdvancedNoise.Examples.SignalBasedNoise): time 0.001398/0.08855, allocations: 1.194 MB / 409 MB, free: 15.11 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001412/0.08998, allocations: 0.9705 MB / 409.9 MB, free: 14.14 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.466e-05/0.09003, allocations: 3.938 kB / 410 MB, free: 14.13 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 9.936e-05/0.09014, allocations: 19.91 kB / 410 MB, free: 14.11 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001203/0.09027, allocations: 15.92 kB / 410 MB, free: 14.1 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.00039/0.09067, allocations: 143.6 kB / 410.1 MB, free: 13.96 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001273/0.09081, allocations: 75.83 kB / 410.2 MB, free: 13.88 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.658e-05/0.09088, allocations: 8 kB / 410.2 MB, free: 13.88 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.173e-05/0.09096, allocations: 47.78 kB / 410.3 MB, free: 13.83 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.198e-05/0.09103, allocations: 35.83 kB / 410.3 MB, free: 13.79 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.389e-05/0.09105, allocations: 4 kB / 410.3 MB, free: 13.79 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002005/0.09126, allocations: 127.8 kB / 410.4 MB, free: 13.66 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.86e-05/0.0913, allocations: 15.92 kB / 410.4 MB, free: 13.65 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.15e-05/0.09133, allocations: 33.7 kB / 410.5 MB, free: 13.61 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001949/0.09153, allocations: 139.8 kB / 410.6 MB, free: 13.47 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.316e-06/0.09155, allocations: 0 / 410.6 MB, free: 13.47 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.193e-06/0.09155, allocations: 3.938 kB / 410.6 MB, free: 13.47 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.366e-06/0.09156, allocations: 0 / 410.6 MB, free: 13.47 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0004579/0.09203, allocations: 411.2 kB / 411 MB, free: 13.02 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.76e-05/0.09207, allocations: 16.02 kB / 411 MB, free: 13 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.796e-05/0.09211, allocations: 38.5 kB / 411.1 MB, free: 12.96 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000289/0.09241, allocations: 23.89 kB / 411.1 MB, free: 12.93 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002342/0.09265, allocations: 206.2 kB / 411.3 MB, free: 12.7 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.358e-05/0.09268, allocations: 4 kB / 411.3 MB, free: 12.69 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.484e-05/0.0927, allocations: 4 kB / 411.3 MB, free: 12.69 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001582/0.09286, allocations: 85.58 kB / 411.4 MB, free: 12.6 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.161e-06/0.09288, allocations: 0 / 411.4 MB, free: 12.6 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.261e-05/0.09289, allocations: 3.953 kB / 411.4 MB, free: 12.59 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.137e-06/0.0929, allocations: 0 / 411.4 MB, free: 12.59 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001154/0.09302, allocations: 51.95 kB / 411.4 MB, free: 12.54 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004963/0.09353, allocations: 344.8 kB / 411.8 MB, free: 12.16 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001571/0.0937, allocations: 82.47 kB / 411.8 MB, free: 12.07 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.234e-05/0.09373, allocations: 8.141 kB / 411.9 MB, free: 12.06 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.488e-05/0.09376, allocations: 42.52 kB / 411.9 MB, free: 12.01 MB / 350.1 MB Notification: Performance of pre-optimization done (n=8): time 1.192e-06/0.09377, allocations: 0 / 411.9 MB, free: 12.01 MB / 350.1 MB Notification: Performance of matching and sorting (n=8): time 0.0003289/0.0941, allocations: 133.5 kB / 412 MB, free: 11.87 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.103e-05/0.09414, allocations: 59.34 kB / 412.1 MB, free: 11.8 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001286/0.09428, allocations: 139 kB / 412.2 MB, free: 11.65 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.971e-05/0.09431, allocations: 33.7 kB / 412.3 MB, free: 11.61 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.185e-05/0.09436, allocations: 96.03 kB / 412.4 MB, free: 11.51 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.117e-05/0.0944, allocations: 27.66 kB / 412.4 MB, free: 11.48 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.903e-06/0.09442, allocations: 0 / 412.4 MB, free: 11.48 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001074/0.09453, allocations: 322.8 kB / 412.7 MB, free: 11.16 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.49e-05/0.0946, allocations: 31.98 kB / 412.7 MB, free: 11.13 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.758e-05/0.09466, allocations: 39.86 kB / 412.8 MB, free: 11.09 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.954e-05/0.09475, allocations: 31.98 kB / 412.8 MB, free: 11.06 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.513e-06/0.09476, allocations: 0 / 412.8 MB, free: 11.06 MB / 350.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002265/0.09499, allocations: 125.5 kB / 412.9 MB, free: 10.93 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.523e-05/0.09501, allocations: 11.95 kB / 412.9 MB, free: 10.92 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.178e-06/0.09503, allocations: 4 kB / 412.9 MB, free: 10.91 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.528e-06/0.09504, allocations: 0 / 412.9 MB, free: 10.91 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000129/0.09517, allocations: 23.92 kB / 413 MB, free: 10.89 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.834e-06/0.09519, allocations: 0 / 413 MB, free: 10.89 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.151e-05/0.09525, allocations: 11.84 kB / 413 MB, free: 10.88 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.292e-05/0.09527, allocations: 4 kB / 413 MB, free: 10.88 MB / 350.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 (signalBasedNoise.localSeed,globalSeed.id_impure,signalBasedNoise.actualGlobalSeed,globalSeed.seed) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.245e-05/0.09536, allocations: 117.8 kB / 413.1 MB, free: 10.75 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.921e-05/0.0954, allocations: 15.84 kB / 413.1 MB, free: 10.73 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003994/0.09581, allocations: 214 kB / 413.3 MB, free: 10.52 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.644e-05/0.09586, allocations: 0 / 413.3 MB, free: 10.52 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.091e-06/0.09587, allocations: 4 kB / 413.3 MB, free: 10.52 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.587e-06/0.09588, allocations: 3.938 kB / 413.3 MB, free: 10.51 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002798/0.09616, allocations: 213.5 kB / 413.5 MB, free: 10.25 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.408e-06/0.09618, allocations: 4 kB / 413.5 MB, free: 10.25 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.827e-05/0.09625, allocations: 11.98 kB / 413.5 MB, free: 10.24 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.964e-06/0.09626, allocations: 0 / 413.5 MB, free: 10.24 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.462e-05/0.09628, allocations: 11.98 kB / 413.6 MB, free: 10.23 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.835e-06/0.09629, allocations: 3.953 kB / 413.6 MB, free: 10.22 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/0.0963, allocations: 0 / 413.6 MB, free: 10.22 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002872/0.09659, allocations: 258.6 kB / 413.8 MB, free: 9.957 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.692e-05/0.09668, allocations: 104.8 kB / 413.9 MB, free: 9.836 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.253e-05/0.09671, allocations: 4 kB / 413.9 MB, free: 9.832 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.902e-05/0.09679, allocations: 0 / 413.9 MB, free: 9.832 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.018e-05/0.09685, allocations: 19.88 kB / 413.9 MB, free: 9.812 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.238e-05/0.09687, allocations: 8 kB / 413.9 MB, free: 9.805 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.994e-05/0.09694, allocations: 110.1 kB / 414.1 MB, free: 9.699 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.09695, allocations: 4 kB / 414.1 MB, free: 9.695 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000309/0.09726, allocations: 55.98 kB / 414.1 MB, free: 9.641 MB / 350.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: 5 ($cse2[1],$cse2[2],$cse4[1],$cse4[2],signalBasedNoise.localSeed) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 7 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 2 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009316/0.0982, allocations: 0.9112 MB / 415 MB, free: 8.75 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002004/0.09842, allocations: 107.9 kB / 415.1 MB, free: 8.645 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.943e-06/0.09843, allocations: 0 / 415.1 MB, free: 8.645 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001313/0.09857, allocations: 119.5 kB / 415.2 MB, free: 8.516 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001653/0.09874, allocations: 12.11 kB / 415.3 MB, free: 8.504 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006696/0.09942, allocations: 499.1 kB / 415.7 MB, free: 7.965 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002738/0.0997, allocations: 0.7082 MB / 416.5 MB, free: 7.23 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001023/0.09982, allocations: 32.39 kB / 416.5 MB, free: 7.199 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.988e-05/0.0999, allocations: 35.36 kB / 416.5 MB, free: 7.164 MB / 350.1 MB Notification: Performance of SimCode: time 2.5e-07/0.09991, allocations: 0 / 416.5 MB, free: 7.164 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01336/0.1133, allocations: 3.503 MB / 420 MB, free: 3.766 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001701/0.1135, allocations: 237.1 kB / 420.3 MB, free: 3.523 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.706/1.82, allocations: 0 / 420.3 MB, free: 3.523 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/linux/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) Environment - environmentSimulation: