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.00486/0.00486, allocations: 102.5 kB / 15.73 MB, free: 6.012 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.001182/0.001182, allocations: 192 kB / 16.67 MB, free: 5.949 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.327/1.327, allocations: 222.9 MB / 240.4 MB, free: 4.305 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AdvancedNoise 1.1.0-master/package.mo): time 0.1218/0.1218, allocations: 3.88 MB / 294.4 MB, free: 3.215 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001151/0.001151, allocations: 55.91 kB / 406.4 MB, free: 0.6758 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.214/0.2151, allocations: 50.18 MB / 456.6 MB, free: 20.44 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AdvancedNoise.Examples.SignalBasedNoise): time 0.002058/0.2172, allocations: 1.478 MB / 458.1 MB, free: 19.41 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001314/0.2186, allocations: 1.055 MB / 459.1 MB, free: 18.7 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.443e-05/0.2186, allocations: 0 / 459.1 MB, free: 18.7 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000111/0.2188, allocations: 22.05 kB / 459.1 MB, free: 18.68 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001348/0.2189, allocations: 22.02 kB / 459.2 MB, free: 18.67 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.0004878/0.2194, allocations: 175.5 kB / 459.3 MB, free: 18.58 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001407/0.2196, allocations: 119.2 kB / 459.5 MB, free: 18.53 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.332e-05/0.2196, allocations: 17.11 kB / 459.5 MB, free: 18.52 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.788e-05/0.2197, allocations: 43.17 kB / 459.5 MB, free: 18.5 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.877e-05/0.2198, allocations: 45.17 kB / 459.6 MB, free: 18.48 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.807e-05/0.2198, allocations: 6 kB / 459.6 MB, free: 18.48 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002244/0.2201, allocations: 173.6 kB / 459.7 MB, free: 18.42 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.762e-05/0.2201, allocations: 17.03 kB / 459.7 MB, free: 18.41 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.874e-05/0.2201, allocations: 40.91 kB / 459.8 MB, free: 18.38 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002448/0.2204, allocations: 207.1 kB / 460 MB, free: 18.3 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/0.2204, allocations: 0 / 460 MB, free: 18.3 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.253e-06/0.2204, allocations: 0 / 460 MB, free: 18.3 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.701e-06/0.2204, allocations: 3.094 kB / 460 MB, free: 18.3 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.000407/0.2208, allocations: 419.5 kB / 460.4 MB, free: 17.89 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.051e-05/0.2209, allocations: 9.188 kB / 460.4 MB, free: 17.89 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.667e-05/0.2209, allocations: 41.02 kB / 460.5 MB, free: 17.85 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003117/0.2212, allocations: 54.77 kB / 460.5 MB, free: 17.84 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001856/0.2214, allocations: 217.1 kB / 460.7 MB, free: 17.62 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.345e-05/0.2214, allocations: 7.406 kB / 460.7 MB, free: 17.61 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.348e-05/0.2215, allocations: 7.062 kB / 460.7 MB, free: 17.61 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001459/0.2216, allocations: 82.8 kB / 460.8 MB, free: 17.56 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.105e-06/0.2216, allocations: 3.938 kB / 460.8 MB, free: 17.56 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.08e-05/0.2216, allocations: 0 / 460.8 MB, free: 17.56 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.827e-06/0.2217, allocations: 7.938 kB / 460.8 MB, free: 17.55 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001228/0.2218, allocations: 57.66 kB / 460.9 MB, free: 17.54 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004071/0.2222, allocations: 356.4 kB / 461.2 MB, free: 17.23 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001689/0.2224, allocations: 82.58 kB / 461.3 MB, free: 17.18 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.574e-05/0.2225, allocations: 44.03 kB / 461.4 MB, free: 17.16 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.398e-05/0.2225, allocations: 7.234 kB / 461.4 MB, free: 17.16 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.779e-05/0.2225, allocations: 31.55 kB / 461.4 MB, free: 17.12 MB / 350.1 MB Notification: Performance of pre-optimization done (n=8): time 1.252e-06/0.2225, allocations: 0 / 461.4 MB, free: 17.12 MB / 350.1 MB Notification: Performance of matching and sorting (n=8): time 0.0003597/0.2229, allocations: 152.9 kB / 461.5 MB, free: 17.05 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.602e-05/0.2229, allocations: 51.41 kB / 461.6 MB, free: 16.98 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001036/0.223, allocations: 155.3 kB / 461.7 MB, free: 16.86 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.136e-05/0.223, allocations: 29.7 kB / 461.8 MB, free: 16.82 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.824e-05/0.2231, allocations: 97.52 kB / 461.9 MB, free: 16.73 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.152e-05/0.2231, allocations: 24.83 kB / 461.9 MB, free: 16.71 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.483e-05/0.2232, allocations: 43.06 kB / 461.9 MB, free: 16.68 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.492e-05/0.2232, allocations: 318 kB / 462.2 MB, free: 16.36 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.443e-05/0.2233, allocations: 36.66 kB / 462.3 MB, free: 16.36 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.708e-05/0.2234, allocations: 33.48 kB / 462.3 MB, free: 16.34 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001412/0.2235, allocations: 85.39 kB / 462.4 MB, free: 16.3 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.734e-06/0.2235, allocations: 0 / 462.4 MB, free: 16.3 MB / 350.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002317/0.2238, allocations: 133.3 kB / 462.5 MB, free: 16.24 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.311e-05/0.2238, allocations: 6.094 kB / 462.5 MB, free: 16.24 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.837e-06/0.2238, allocations: 0 / 462.5 MB, free: 16.24 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.279e-05/0.2238, allocations: 0.5625 kB / 462.5 MB, free: 16.24 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001209/0.2239, allocations: 27.12 kB / 462.6 MB, free: 16.24 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.35e-06/0.224, allocations: 3.938 kB / 462.6 MB, free: 16.23 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.38e-05/0.224, allocations: 8 kB / 462.6 MB, free: 16.23 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.801e-05/0.2241, allocations: 27.38 kB / 462.6 MB, free: 16.23 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.369e-05/0.2241, allocations: 125.3 kB / 462.7 MB, free: 16.11 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.361e-05/0.2242, allocations: 7.375 kB / 462.7 MB, free: 16.1 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.404e-05/0.2242, allocations: 17.78 kB / 462.7 MB, free: 16.09 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.924e-06/0.2242, allocations: 3.938 kB / 462.7 MB, free: 16.08 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.939e-06/0.2242, allocations: 3.938 kB / 462.7 MB, free: 16.08 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.008e-06/0.2242, allocations: 3.422 kB / 462.8 MB, free: 16.08 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001726/0.2244, allocations: 209.7 kB / 463 MB, free: 15.86 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.303e-06/0.2244, allocations: 7.938 kB / 463 MB, free: 15.86 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.995e-05/0.2245, allocations: 13.5 kB / 463 MB, free: 15.86 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.755e-06/0.2245, allocations: 3.094 kB / 463 MB, free: 15.86 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.195e-05/0.2245, allocations: 1.828 kB / 463 MB, free: 15.86 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.733e-06/0.2246, allocations: 0.6562 kB / 463 MB, free: 15.86 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.834e-06/0.2246, allocations: 3.938 kB / 463 MB, free: 15.85 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002377/0.2248, allocations: 221.8 kB / 463.2 MB, free: 15.69 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.661e-05/0.2249, allocations: 95.08 kB / 463.3 MB, free: 15.59 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.933e-05/0.2249, allocations: 7.703 kB / 463.3 MB, free: 15.58 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.102e-05/0.225, allocations: 0 / 463.3 MB, free: 15.58 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.382e-05/0.225, allocations: 10.64 kB / 463.3 MB, free: 15.58 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.197e-05/0.2251, allocations: 31.92 kB / 463.3 MB, free: 15.57 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.033e-05/0.2251, allocations: 111.9 kB / 463.5 MB, free: 15.49 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2251, allocations: 0 / 463.5 MB, free: 15.49 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003103/0.2255, allocations: 57.34 kB / 463.5 MB, free: 15.47 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.0006742/0.2261, allocations: 0.8866 MB / 464.4 MB, free: 14.73 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002019/0.2263, allocations: 88.05 kB / 464.5 MB, free: 14.7 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.573e-06/0.2264, allocations: 0 / 464.5 MB, free: 14.7 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 8.854e-05/0.2265, allocations: 49.88 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.0002293/0.2267, allocations: 11.72 kB / 464.5 MB, free: 14.68 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00129/0.228, allocations: 1.609 MB / 466.2 MB, free: 13.35 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001035/0.2281, allocations: 0.7012 MB / 466.9 MB, free: 12.65 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.828e-05/0.2282, allocations: 34.69 kB / 466.9 MB, free: 12.64 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.377e-05/0.2283, allocations: 27.66 kB / 466.9 MB, free: 12.62 MB / 350.1 MB Notification: Performance of SimCode: time 2.2e-07/0.2283, allocations: 0 / 466.9 MB, free: 12.62 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01926/0.2475, allocations: 3.64 MB / 470.6 MB, free: 11.96 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.46/7.708, allocations: 8.484 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)