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.006818/0.006825, allocations: 97.2 kB / 15.73 MB, free: 6.039 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.001763/0.001763, allocations: 201.9 kB / 16.68 MB, free: 5.961 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.534/1.534, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AdvancedNoise 1.1.0-master/package.mo): time 0.137/0.137, allocations: 3.878 MB / 294.4 MB, free: 3.242 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001857/0.001857, allocations: 55.91 kB / 406.4 MB, free: 0.6875 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2638/0.2657, allocations: 50.18 MB / 456.6 MB, free: 20.45 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AdvancedNoise.Examples.SignalBasedNoise): time 0.002036/0.2678, allocations: 1.47 MB / 458.1 MB, free: 19.42 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001371/0.2692, allocations: 1.058 MB / 459.1 MB, free: 18.71 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.967e-05/0.2692, allocations: 0 / 459.1 MB, free: 18.71 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001211/0.2693, allocations: 18.38 kB / 459.1 MB, free: 18.7 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001451/0.2695, allocations: 22.86 kB / 459.2 MB, free: 18.68 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'. [/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.0004782/0.27, allocations: 173.4 kB / 459.3 MB, free: 18.6 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001309/0.2701, allocations: 124.8 kB / 459.5 MB, free: 18.54 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.888e-05/0.2702, allocations: 24.47 kB / 459.5 MB, free: 18.53 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.705e-05/0.2703, allocations: 41.39 kB / 459.5 MB, free: 18.51 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.988e-05/0.2704, allocations: 43.03 kB / 459.6 MB, free: 18.49 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.804e-05/0.2704, allocations: 10.28 kB / 459.6 MB, free: 18.48 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002193/0.2706, allocations: 168 kB / 459.7 MB, free: 18.43 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.834e-05/0.2707, allocations: 17.92 kB / 459.8 MB, free: 18.42 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.741e-05/0.2707, allocations: 40.09 kB / 459.8 MB, free: 18.39 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002514/0.271, allocations: 210.8 kB / 460 MB, free: 18.32 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.537e-06/0.271, allocations: 0 / 460 MB, free: 18.32 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.222e-06/0.271, allocations: 0 / 460 MB, free: 18.32 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.22e-06/0.271, allocations: 4 kB / 460 MB, free: 18.32 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.0004537/0.2715, allocations: 437 kB / 460.4 MB, free: 17.89 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.018e-05/0.2715, allocations: 9 kB / 460.4 MB, free: 17.89 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.8e-05/0.2715, allocations: 41.03 kB / 460.5 MB, free: 17.84 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003411/0.2719, allocations: 50.5 kB / 460.5 MB, free: 17.84 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000187/0.2721, allocations: 209.1 kB / 460.7 MB, free: 17.62 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.483e-05/0.2721, allocations: 7.438 kB / 460.7 MB, free: 17.62 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.668e-05/0.2721, allocations: 11 kB / 460.8 MB, free: 17.61 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001507/0.2723, allocations: 84.84 kB / 460.8 MB, free: 17.56 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.126e-06/0.2723, allocations: 0 / 460.8 MB, free: 17.56 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.628e-06/0.2723, allocations: 0 / 460.8 MB, free: 17.56 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.729e-06/0.2723, allocations: 3 kB / 460.8 MB, free: 17.56 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001263/0.2724, allocations: 57.25 kB / 460.9 MB, free: 17.55 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004451/0.2729, allocations: 365.9 kB / 461.2 MB, free: 17.23 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001667/0.2731, allocations: 79.72 kB / 461.3 MB, free: 17.19 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.028e-05/0.2732, allocations: 37.83 kB / 461.4 MB, free: 17.17 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.378e-05/0.2732, allocations: 3.938 kB / 461.4 MB, free: 17.16 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.382e-05/0.2732, allocations: 33.53 kB / 461.4 MB, free: 17.12 MB / 350.1 MB Notification: Performance of pre-optimization done (n=8): time 1.243e-06/0.2732, allocations: 0 / 461.4 MB, free: 17.12 MB / 350.1 MB Notification: Performance of matching and sorting (n=8): time 0.0003427/0.2736, allocations: 156.2 kB / 461.6 MB, free: 17.05 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.008e-05/0.2736, allocations: 54.56 kB / 461.6 MB, free: 16.99 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.168e-05/0.2737, allocations: 150.6 kB / 461.8 MB, free: 16.86 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.086e-05/0.2737, allocations: 29.08 kB / 461.8 MB, free: 16.83 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.184e-05/0.2737, allocations: 102 kB / 461.9 MB, free: 16.73 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.936e-05/0.2738, allocations: 25.94 kB / 461.9 MB, free: 16.71 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.85e-05/0.2738, allocations: 30.41 kB / 461.9 MB, free: 16.69 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.486e-05/0.2739, allocations: 325.4 kB / 462.3 MB, free: 16.37 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.669e-05/0.2739, allocations: 37.02 kB / 462.3 MB, free: 16.36 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.026e-05/0.274, allocations: 31.44 kB / 462.3 MB, free: 16.35 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001496/0.2742, allocations: 90.97 kB / 462.4 MB, free: 16.31 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.2742, allocations: 0 / 462.4 MB, free: 16.31 MB / 350.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002276/0.2744, allocations: 139.1 kB / 462.5 MB, free: 16.24 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.106e-05/0.2744, allocations: 6.219 kB / 462.6 MB, free: 16.24 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.787e-06/0.2744, allocations: 4 kB / 462.6 MB, free: 16.23 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.358e-05/0.2745, allocations: 3.734 kB / 462.6 MB, free: 16.23 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001193/0.2746, allocations: 20.89 kB / 462.6 MB, free: 16.23 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.55e-06/0.2746, allocations: 3.938 kB / 462.6 MB, free: 16.23 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.307e-05/0.2747, allocations: 7.953 kB / 462.6 MB, free: 16.22 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.778e-05/0.2747, allocations: 31.27 kB / 462.6 MB, free: 16.22 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 6.497e-05/0.2748, allocations: 122.5 kB / 462.7 MB, free: 16.09 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.316e-05/0.2748, allocations: 10.73 kB / 462.8 MB, free: 16.09 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.277e-05/0.2749, allocations: 17.7 kB / 462.8 MB, free: 16.07 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.623e-06/0.2749, allocations: 0 / 462.8 MB, free: 16.07 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.589e-06/0.2749, allocations: 3.938 kB / 462.8 MB, free: 16.07 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.457e-06/0.2749, allocations: 0.6562 kB / 462.8 MB, free: 16.07 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001898/0.2751, allocations: 204.9 kB / 463 MB, free: 15.86 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.142e-06/0.2751, allocations: 0 / 463 MB, free: 15.86 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.191e-05/0.2752, allocations: 16.61 kB / 463 MB, free: 15.86 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.927e-06/0.2752, allocations: 7.797 kB / 463 MB, free: 15.86 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.442e-05/0.2752, allocations: 1.922 kB / 463 MB, free: 15.86 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.253e-06/0.2752, allocations: 3.938 kB / 463 MB, free: 15.85 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.423e-06/0.2752, allocations: 7.938 kB / 463 MB, free: 15.84 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002407/0.2755, allocations: 229.4 kB / 463.2 MB, free: 15.67 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.25e-05/0.2755, allocations: 98 kB / 463.3 MB, free: 15.57 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.96e-05/0.2756, allocations: 0 / 463.3 MB, free: 15.57 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.234e-05/0.2756, allocations: 0.7031 kB / 463.3 MB, free: 15.57 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.106e-05/0.2757, allocations: 17.55 kB / 463.3 MB, free: 15.56 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.082e-05/0.2757, allocations: 28.06 kB / 463.4 MB, free: 15.56 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.804e-05/0.2758, allocations: 108 kB / 463.5 MB, free: 15.48 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2758, allocations: 0 / 463.5 MB, free: 15.48 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000295/0.2761, allocations: 57.28 kB / 463.5 MB, free: 15.46 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: 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.0007941/0.2769, allocations: 0.8872 MB / 464.4 MB, free: 14.72 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002151/0.2771, allocations: 80.34 kB / 464.5 MB, free: 14.7 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.783e-06/0.2771, allocations: 3.156 kB / 464.5 MB, free: 14.7 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 9.264e-05/0.2772, allocations: 43.45 kB / 464.5 MB, free: 14.69 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002349/0.2775, allocations: 12.11 kB / 464.6 MB, free: 14.68 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001375/0.2789, allocations: 1.619 MB / 466.2 MB, free: 13.34 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000127/0.279, allocations: 0.6972 MB / 466.9 MB, free: 12.65 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.981e-05/0.2791, allocations: 34.23 kB / 466.9 MB, free: 12.64 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.894e-05/0.2792, allocations: 31.72 kB / 466.9 MB, free: 12.62 MB / 350.1 MB Notification: Performance of SimCode: time 2.81e-07/0.2792, allocations: 4 kB / 466.9 MB, free: 12.61 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02606/0.3053, allocations: 3.605 MB / 470.6 MB, free: 11.96 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.322/8.627, allocations: 1.375 kB / 470.6 MB, free: 11.96 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)