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.0009933/0.0009933, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.00101/0.001009, allocations: 195.7 kB / 16.25 MB, free: 6.621 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.245/1.245, allocations: 222.9 MB / 239.9 MB, free: 4.527 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AdvancedNoise 1.1.0-master/package.mo): time 0.1183/0.1183, allocations: 3.888 MB / 294 MB, free: 3.234 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001095/0.001095, allocations: 63.91 kB / 355.1 MB, free: 3.852 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08416/0.08527, allocations: 50.19 MB / 405.2 MB, free: 1.621 MB / 334.1 MB Notification: Performance of NFInst.instantiate(AdvancedNoise.Examples.SignalBasedNoise): time 0.002433/0.08774, allocations: 1.548 MB / 406.8 MB, free: 56 kB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001546/0.0893, allocations: 1.052 MB / 407.8 MB, free: 15 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.673e-05/0.08936, allocations: 0 / 407.8 MB, free: 15 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001174/0.08949, allocations: 3.938 kB / 407.9 MB, free: 14.99 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001393/0.08964, allocations: 15.88 kB / 407.9 MB, free: 14.98 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.0004665/0.09011, allocations: 163.6 kB / 408 MB, free: 14.82 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001381/0.09026, allocations: 123.7 kB / 408.1 MB, free: 14.7 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.245e-05/0.09035, allocations: 8 kB / 408.2 MB, free: 14.69 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.762e-05/0.09045, allocations: 43.84 kB / 408.2 MB, free: 14.64 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.39e-05/0.09052, allocations: 47.7 kB / 408.2 MB, free: 14.6 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.755e-05/0.09054, allocations: 8 kB / 408.3 MB, free: 14.59 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002237/0.09077, allocations: 163.8 kB / 408.4 MB, free: 14.43 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.837e-05/0.09082, allocations: 27.91 kB / 408.4 MB, free: 14.4 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.28e-05/0.09087, allocations: 39.8 kB / 408.5 MB, free: 14.36 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002622/0.09114, allocations: 203.5 kB / 408.7 MB, free: 14.16 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.088e-06/0.09115, allocations: 0 / 408.7 MB, free: 14.16 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.112e-06/0.09115, allocations: 3.938 kB / 408.7 MB, free: 14.16 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.14e-06/0.09116, allocations: 0 / 408.7 MB, free: 14.16 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.0004569/0.09163, allocations: 427.2 kB / 409.1 MB, free: 13.7 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.457e-05/0.09167, allocations: 8.031 kB / 409.1 MB, free: 13.69 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.711e-05/0.09171, allocations: 38.75 kB / 409.1 MB, free: 13.64 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003368/0.09205, allocations: 56.77 kB / 409.2 MB, free: 13.59 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000215/0.09228, allocations: 204.7 kB / 409.4 MB, free: 13.35 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.406e-05/0.0923, allocations: 4.375 kB / 409.4 MB, free: 13.34 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.763e-05/0.09232, allocations: 15.88 kB / 409.4 MB, free: 13.33 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001628/0.09249, allocations: 81.58 kB / 409.5 MB, free: 13.24 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.624e-06/0.0925, allocations: 0 / 409.5 MB, free: 13.24 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.024e-05/0.09252, allocations: 0 / 409.5 MB, free: 13.24 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.617e-06/0.09253, allocations: 0 / 409.5 MB, free: 13.24 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001337/0.09266, allocations: 59.95 kB / 409.6 MB, free: 13.18 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004609/0.09313, allocations: 368.6 kB / 409.9 MB, free: 12.77 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001737/0.09332, allocations: 82.47 kB / 410 MB, free: 12.68 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.604e-05/0.0934, allocations: 40.84 kB / 410 MB, free: 12.64 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.268e-05/0.09343, allocations: 0 / 410 MB, free: 12.64 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.165e-05/0.09346, allocations: 42.48 kB / 410.1 MB, free: 12.59 MB / 350.1 MB Notification: Performance of pre-optimization done (n=8): time 8.91e-07/0.09347, allocations: 4 kB / 410.1 MB, free: 12.59 MB / 350.1 MB Notification: Performance of matching and sorting (n=8): time 0.0003543/0.09382, allocations: 153.9 kB / 410.2 MB, free: 12.43 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.87e-05/0.09386, allocations: 51.41 kB / 410.3 MB, free: 12.37 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001124/0.09398, allocations: 152.8 kB / 410.4 MB, free: 12.2 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.475e-05/0.094, allocations: 25.7 kB / 410.5 MB, free: 12.17 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.529e-05/0.09405, allocations: 100.1 kB / 410.6 MB, free: 12.07 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.676e-05/0.09408, allocations: 27.56 kB / 410.6 MB, free: 12.04 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.155e-05/0.09414, allocations: 29.7 kB / 410.6 MB, free: 12.01 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.69e-05/0.09423, allocations: 322.8 kB / 410.9 MB, free: 11.68 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.914e-05/0.09432, allocations: 43.91 kB / 411 MB, free: 11.64 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.932e-05/0.09439, allocations: 31.98 kB / 411 MB, free: 11.61 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001479/0.09455, allocations: 76.83 kB / 411.1 MB, free: 11.53 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.845e-06/0.09456, allocations: 4 kB / 411.1 MB, free: 11.53 MB / 350.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002281/0.09479, allocations: 137.4 kB / 411.2 MB, free: 11.39 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.255e-05/0.09481, allocations: 7.984 kB / 411.2 MB, free: 11.38 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.721e-06/0.09482, allocations: 4 kB / 411.2 MB, free: 11.38 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.287e-06/0.09483, allocations: 3.938 kB / 411.2 MB, free: 11.37 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001297/0.09497, allocations: 19.98 kB / 411.3 MB, free: 11.35 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.811e-06/0.09498, allocations: 3.938 kB / 411.3 MB, free: 11.35 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.473e-05/0.09503, allocations: 0 / 411.3 MB, free: 11.35 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.405e-05/0.09508, allocations: 39.89 kB / 411.3 MB, free: 11.31 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 (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 7.969e-05/0.09517, allocations: 122.4 kB / 411.4 MB, free: 11.18 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.325e-05/0.09521, allocations: 7.906 kB / 411.4 MB, free: 11.17 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003883/0.0956, allocations: 210 kB / 411.6 MB, free: 10.96 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.743e-05/0.09565, allocations: 4 kB / 411.6 MB, free: 10.96 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.348e-06/0.09566, allocations: 7.938 kB / 411.6 MB, free: 10.95 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.397e-06/0.09566, allocations: 0 / 411.6 MB, free: 10.95 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002663/0.09594, allocations: 217.6 kB / 411.9 MB, free: 10.69 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.491e-06/0.09595, allocations: 11.92 kB / 411.9 MB, free: 10.68 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.3e-05/0.09602, allocations: 11.94 kB / 411.9 MB, free: 10.66 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.753e-06/0.09603, allocations: 0 / 411.9 MB, free: 10.66 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.336e-05/0.09605, allocations: 7.984 kB / 411.9 MB, free: 10.66 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.202e-06/0.09605, allocations: 0 / 411.9 MB, free: 10.66 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.585e-06/0.09606, allocations: 3.938 kB / 411.9 MB, free: 10.65 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002947/0.09636, allocations: 273.2 kB / 412.2 MB, free: 10.37 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.147e-05/0.09643, allocations: 100.9 kB / 412.3 MB, free: 10.25 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.27e-05/0.09646, allocations: 7.984 kB / 412.3 MB, free: 10.25 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.461e-05/0.09654, allocations: 0 / 412.3 MB, free: 10.25 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.302e-05/0.09658, allocations: 15.92 kB / 412.3 MB, free: 10.23 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.593e-05/0.09664, allocations: 29.39 kB / 412.3 MB, free: 10.2 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.504e-05/0.09671, allocations: 114.3 kB / 412.4 MB, free: 10.09 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.09671, allocations: 4 kB / 412.4 MB, free: 10.09 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002932/0.09701, allocations: 51.97 kB / 412.5 MB, free: 10.04 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 (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.0008011/0.09782, allocations: 0.9322 MB / 413.4 MB, free: 9.125 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002424/0.09807, allocations: 119.9 kB / 413.5 MB, free: 9.008 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.673e-06/0.09808, allocations: 0 / 413.5 MB, free: 9.008 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001409/0.09823, allocations: 123.3 kB / 413.6 MB, free: 8.875 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002289/0.09847, allocations: 11.94 kB / 413.7 MB, free: 8.863 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001506/0.09998, allocations: 1.672 MB / 415.3 MB, free: 7.113 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002142/0.1002, allocations: 0.7117 MB / 416 MB, free: 6.375 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.387e-05/0.1003, allocations: 40.44 kB / 416.1 MB, free: 6.336 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.839e-05/0.1004, allocations: 39.41 kB / 416.1 MB, free: 6.297 MB / 350.1 MB Notification: Performance of SimCode: time 2.21e-07/0.1004, allocations: 0 / 416.1 MB, free: 6.297 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01278/0.1132, allocations: 3.667 MB / 419.8 MB, free: 2.719 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001991/0.1134, allocations: 247.6 kB / 420 MB, free: 2.469 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.075/2.189, allocations: 11.94 kB / 420 MB, free: 2.457 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)