Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AdvancedNoise_AdvancedNoise.Examples.TimeBasedNoise.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.TimeBasedNoise,fileNamePrefix="AdvancedNoise_AdvancedNoise_Examples_TimeBasedNoise",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AdvancedNoise.Examples.TimeBasedNoise,fileNamePrefix="AdvancedNoise_AdvancedNoise_Examples_TimeBasedNoise",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.005493/0.005493, allocations: 96.7 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.001342/0.001342, allocations: 194.3 kB / 16.67 MB, free: 5.969 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.483/1.483, 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.1696/0.1696, allocations: 3.88 MB / 294.4 MB, free: 3.258 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001894/0.001894, allocations: 63.89 kB / 406.4 MB, free: 0.6953 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2607/0.2626, allocations: 50.19 MB / 456.6 MB, free: 20.42 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AdvancedNoise.Examples.TimeBasedNoise): time 0.002122/0.2647, allocations: 1.513 MB / 458.1 MB, free: 19.36 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001549/0.2663, allocations: 1.156 MB / 459.3 MB, free: 18.58 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.989e-05/0.2664, allocations: 6.906 kB / 459.3 MB, free: 18.58 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001338/0.2665, allocations: 30.44 kB / 459.3 MB, free: 18.55 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 6.646e-05/0.2666, allocations: 22.19 kB / 459.3 MB, free: 18.54 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.000614/0.2672, allocations: 236.4 kB / 459.6 MB, free: 18.42 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000222/0.2675, allocations: 263.8 kB / 459.8 MB, free: 18.3 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.743e-05/0.2675, allocations: 7.812 kB / 459.8 MB, free: 18.3 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001382/0.2677, allocations: 101.6 kB / 459.9 MB, free: 18.26 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.5e-05/0.2678, allocations: 77.52 kB / 460 MB, free: 18.22 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.08e-05/0.2678, allocations: 15.03 kB / 460 MB, free: 18.22 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002632/0.2681, allocations: 176.8 kB / 460.2 MB, free: 18.16 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.464e-05/0.2681, allocations: 25.69 kB / 460.2 MB, free: 18.15 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.79e-05/0.2682, allocations: 86.31 kB / 460.3 MB, free: 18.09 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000362/0.2686, allocations: 289.1 kB / 460.6 MB, free: 17.98 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.326e-06/0.2686, allocations: 4 kB / 460.6 MB, free: 17.98 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.605e-06/0.2686, allocations: 0 / 460.6 MB, free: 17.98 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.57e-06/0.2686, allocations: 3.938 kB / 460.6 MB, free: 17.97 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: 18 * Number of variables: 18 Notification: Performance of Generate backend data structure: time 0.001925/0.2705, allocations: 2.264 MB / 462.8 MB, free: 16.84 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.806e-05/0.2706, allocations: 15.33 kB / 462.9 MB, free: 16.84 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.574e-05/0.2706, allocations: 42.36 kB / 462.9 MB, free: 16.8 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006561/0.2713, allocations: 105.7 kB / 463 MB, free: 16.78 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003025/0.2716, allocations: 252 kB / 463.3 MB, free: 16.54 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.798e-05/0.2716, allocations: 6.375 kB / 463.3 MB, free: 16.54 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.836e-05/0.2717, allocations: 13.28 kB / 463.3 MB, free: 16.54 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004182/0.2721, allocations: 263 kB / 463.5 MB, free: 16.44 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.092e-05/0.2721, allocations: 0 / 463.5 MB, free: 16.44 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.764e-05/0.2721, allocations: 3.219 kB / 463.5 MB, free: 16.44 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.609e-06/0.2721, allocations: 4 kB / 463.5 MB, free: 16.43 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003699/0.2725, allocations: 217.8 kB / 463.7 MB, free: 16.39 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002644/0.2728, allocations: 254.8 kB / 464 MB, free: 16.16 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003645/0.2732, allocations: 319.5 kB / 464.3 MB, free: 16 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003226/0.2735, allocations: 306.8 kB / 464.6 MB, free: 15.86 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.475e-05/0.2735, allocations: 5.25 kB / 464.6 MB, free: 15.85 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004878/0.274, allocations: 0.5198 MB / 465.1 MB, free: 15.52 MB / 350.1 MB Notification: Performance of pre-optimization done (n=22): time 1.302e-06/0.274, allocations: 0 / 465.1 MB, free: 15.52 MB / 350.1 MB Notification: Performance of matching and sorting (n=22): time 0.001175/0.2752, allocations: 0.7677 MB / 465.9 MB, free: 15.25 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.454e-05/0.2753, allocations: 162.9 kB / 466.1 MB, free: 15.08 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000199/0.2755, allocations: 214.6 kB / 466.3 MB, free: 14.93 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.825e-05/0.2755, allocations: 27.77 kB / 466.3 MB, free: 14.9 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.405e-05/0.2756, allocations: 111.5 kB / 466.4 MB, free: 14.8 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.904e-05/0.2756, allocations: 50.58 kB / 466.5 MB, free: 14.76 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000101/0.2757, allocations: 54.92 kB / 466.5 MB, free: 14.73 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.546e-05/0.2758, allocations: 334.4 kB / 466.8 MB, free: 14.41 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002681/0.2761, allocations: 138.9 kB / 467 MB, free: 14.37 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002404/0.2764, allocations: 143.9 kB / 467.1 MB, free: 14.33 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005692/0.2769, allocations: 461.1 kB / 467.6 MB, free: 14.1 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.454e-06/0.2769, allocations: 0 / 467.6 MB, free: 14.1 MB / 350.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0006291/0.2776, allocations: 464.4 kB / 468 MB, free: 13.9 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.808e-05/0.2777, allocations: 96.14 kB / 468.1 MB, free: 13.83 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.843e-06/0.2777, allocations: 1.125 kB / 468.1 MB, free: 13.83 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.736e-05/0.2777, allocations: 0 / 468.1 MB, free: 13.83 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001379/0.2779, allocations: 22.12 kB / 468.1 MB, free: 13.82 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.582e-06/0.2779, allocations: 1.438 kB / 468.1 MB, free: 13.82 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001078/0.278, allocations: 21.12 kB / 468.2 MB, free: 13.82 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.023e-05/0.2781, allocations: 41.27 kB / 468.2 MB, free: 13.81 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: 26 (globalSeed.seed,timeBasedNoise1.actualGlobalSeed,timeBasedNoise1.localSeed,timeBasedNoise.actualGlobalSeed,timeBasedNoise.localSeed,globalSeed.id_impure,timeBasedNoise.r,timeBasedNoise.bufferStartTime,timeBasedNoise.buffer[2],timeBasedNoise.buffer[1],timeBasedNoise.state[4],timeBasedNoise.state[3],timeBasedNoise.state[2],timeBasedNoise.state[1],$whenCondition4,$whenCondition3,timeBasedNoise1.r,timeBasedNoise1.bufferStartTime,timeBasedNoise1.buffer[2],timeBasedNoise1.buffer[1],timeBasedNoise1.state[4],timeBasedNoise1.state[3],timeBasedNoise1.state[2],timeBasedNoise1.state[1],$whenCondition2,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (10): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 2 * 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.0002176/0.2783, allocations: 263.2 kB / 468.5 MB, free: 13.6 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.262e-05/0.2783, allocations: 39.27 kB / 468.5 MB, free: 13.58 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.17e-05/0.2784, allocations: 15.17 kB / 468.5 MB, free: 13.57 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.946e-06/0.2784, allocations: 0 / 468.5 MB, free: 13.57 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.212e-06/0.2784, allocations: 1.375 kB / 468.5 MB, free: 13.57 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.488e-06/0.2784, allocations: 5.312 kB / 468.5 MB, free: 13.57 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002221/0.2786, allocations: 270.9 kB / 468.8 MB, free: 13.34 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.172e-06/0.2786, allocations: 0 / 468.8 MB, free: 13.34 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.913e-05/0.2787, allocations: 10.06 kB / 468.8 MB, free: 13.34 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.545e-06/0.2787, allocations: 5.375 kB / 468.8 MB, free: 13.34 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.069e-05/0.2788, allocations: 15.73 kB / 468.8 MB, free: 13.33 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.725e-06/0.2788, allocations: 4.641 kB / 468.8 MB, free: 13.33 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-06/0.2788, allocations: 1.562 kB / 468.8 MB, free: 13.33 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009357/0.2797, allocations: 0.6931 MB / 469.5 MB, free: 13.04 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001162/0.2798, allocations: 140.1 kB / 469.6 MB, free: 12.91 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.188e-05/0.2799, allocations: 31.61 kB / 469.7 MB, free: 12.9 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001024/0.28, allocations: 13.58 kB / 469.7 MB, free: 12.9 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.862e-05/0.2801, allocations: 22.45 kB / 469.7 MB, free: 12.89 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.48e-05/0.2802, allocations: 36.81 kB / 469.7 MB, free: 12.89 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001085/0.2803, allocations: 143.6 kB / 469.9 MB, free: 12.8 MB / 350.1 MB Notification: Performance of sort global known variables: time 4.11e-07/0.2803, allocations: 0 / 469.9 MB, free: 12.8 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003477/0.2807, allocations: 78.56 kB / 470 MB, free: 12.79 MB / 350.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: 20 ($whenCondition3,$whenCondition4,timeBasedNoise.state[1],timeBasedNoise.state[2],timeBasedNoise.state[3],timeBasedNoise.state[4],timeBasedNoise.buffer[1],timeBasedNoise.buffer[2],timeBasedNoise.bufferStartTime,timeBasedNoise.r,$whenCondition1,$whenCondition2,timeBasedNoise1.state[1],timeBasedNoise1.state[2],timeBasedNoise1.state[3],timeBasedNoise1.state[4],timeBasedNoise1.buffer[1],timeBasedNoise1.buffer[2],timeBasedNoise1.bufferStartTime,timeBasedNoise1.r) * Number of discrete states: 20 (timeBasedNoise1.buffer[2],timeBasedNoise1.buffer[1],timeBasedNoise1.r,timeBasedNoise1.bufferStartTime,timeBasedNoise1.state[4],timeBasedNoise1.state[3],timeBasedNoise1.state[2],timeBasedNoise1.state[1],$whenCondition2,$whenCondition1,timeBasedNoise.buffer[2],timeBasedNoise.buffer[1],timeBasedNoise.r,timeBasedNoise.bufferStartTime,timeBasedNoise.state[4],timeBasedNoise.state[3],timeBasedNoise.state[2],timeBasedNoise.state[1],$whenCondition4,$whenCondition3) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 2 * Array equations: 0 * Algorithm blocks: 2 * 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 Backend phase and start with SimCode phase: time 0.001604/0.2823, allocations: 1.386 MB / 471.3 MB, free: 11.92 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001085/0.2834, allocations: 0.7565 MB / 472.1 MB, free: 11.54 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.807e-06/0.2834, allocations: 5.312 kB / 472.1 MB, free: 11.53 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006712/0.2841, allocations: 0.6448 MB / 472.8 MB, free: 11.15 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002933/0.2844, allocations: 30.88 kB / 472.8 MB, free: 11.14 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003295/0.2877, allocations: 2.977 MB / 475.8 MB, free: 9.383 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001654/0.2879, allocations: 0.7353 MB / 476.5 MB, free: 8.676 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.216e-05/0.288, allocations: 18.39 kB / 476.5 MB, free: 8.672 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.349e-05/0.288, allocations: 56.05 kB / 476.6 MB, free: 8.629 MB / 350.1 MB Notification: Performance of SimCode: time 5.51e-07/0.288, allocations: 0 / 476.6 MB, free: 8.629 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02898/0.317, allocations: 5.926 MB / 482.5 MB, free: 7.137 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.192/8.509, allocations: 19.22 kB / 482.5 MB, free: 7.125 MB / 350.1 MB (rm -f AdvancedNoise_AdvancedNoise.Examples.TimeBasedNoise.pipe ; mkfifo AdvancedNoise_AdvancedNoise.Examples.TimeBasedNoise.pipe ; head -c 1048576 < AdvancedNoise_AdvancedNoise.Examples.TimeBasedNoise.pipe >> ../files/AdvancedNoise_AdvancedNoise.Examples.TimeBasedNoise.sim & python3 -m fmpy simulate --output-file AdvancedNoise_AdvancedNoise.Examples.TimeBasedNoise_res.csv --start-time 0 --stop-time 4 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0016 AdvancedNoise_AdvancedNoise_Examples_TimeBasedNoise.fmu > AdvancedNoise_AdvancedNoise.Examples.TimeBasedNoise.pipe 2>&1)