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/AdvancedNoise 1.1.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 AdvancedNoise with version 1.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AdvancedNoise 1.1.0-master/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/AdvancedNoise 1.1.0-master/package.mo): time 0.02635/0.02635, allocations: 3.909 MB / 18.87 MB, free: 2.723 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.0009431/0.0009432, allocations: 174.5 kB / 20.49 MB, free: 1.703 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.275/1.275, allocations: 223.2 MB / 245.1 MB, free: 11.71 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008811/0.0008811, allocations: 92.03 kB / 297.1 MB, free: 10.71 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002869/0.0002869, allocations: 11.98 kB / 358.9 MB, free: 12.94 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2292/0.2295, allocations: 51.17 MB / 410 MB, free: 31.32 MB / 302.1 MB Notification: Performance of NFInst.instantiate(AdvancedNoise.Examples.SignalBasedNoise): time 0.001232/0.2308, allocations: 1.191 MB / 411.2 MB, free: 30.12 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001181/0.232, allocations: 0.9721 MB / 412.2 MB, free: 29.15 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.775e-05/0.232, allocations: 0 / 412.2 MB, free: 29.15 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 7.821e-05/0.2321, allocations: 16.36 kB / 412.2 MB, free: 29.13 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001065/0.2322, allocations: 21.72 kB / 412.2 MB, free: 29.11 MB / 302.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.0003309/0.2326, allocations: 139.5 kB / 412.4 MB, free: 28.98 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001092/0.2327, allocations: 75.83 kB / 412.4 MB, free: 28.9 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.34e-05/0.2328, allocations: 16 kB / 412.5 MB, free: 28.89 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.117e-05/0.2328, allocations: 35.84 kB / 412.5 MB, free: 28.85 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.55e-05/0.2329, allocations: 35.83 kB / 412.5 MB, free: 28.82 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.282e-05/0.2329, allocations: 4 kB / 412.5 MB, free: 28.81 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001707/0.2331, allocations: 123.8 kB / 412.6 MB, free: 28.69 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 2.402e-05/0.2331, allocations: 11.98 kB / 412.7 MB, free: 28.68 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 2.39e-05/0.2332, allocations: 41.58 kB / 412.7 MB, free: 28.63 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001646/0.2333, allocations: 139.8 kB / 412.8 MB, free: 28.5 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.715e-06/0.2333, allocations: 0 / 412.8 MB, free: 28.5 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.2333, allocations: 0 / 412.8 MB, free: 28.5 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.043e-06/0.2334, allocations: 4 kB / 412.8 MB, free: 28.49 MB / 302.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.0003409/0.2337, allocations: 409.2 kB / 413.2 MB, free: 28.05 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.924e-05/0.2337, allocations: 8.031 kB / 413.2 MB, free: 28.04 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.796e-05/0.2338, allocations: 34.56 kB / 413.3 MB, free: 28 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002751/0.234, allocations: 27.83 kB / 413.3 MB, free: 27.97 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001756/0.2342, allocations: 207.4 kB / 413.5 MB, free: 27.73 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.113e-05/0.2343, allocations: 4 kB / 413.5 MB, free: 27.72 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.564e-05/0.2343, allocations: 4 kB / 413.5 MB, free: 27.72 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001234/0.2344, allocations: 77.64 kB / 413.6 MB, free: 27.64 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.174e-06/0.2344, allocations: 3.938 kB / 413.6 MB, free: 27.63 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.142e-05/0.2344, allocations: 7.953 kB / 413.6 MB, free: 27.62 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.427e-06/0.2344, allocations: 4 kB / 413.6 MB, free: 27.62 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.514e-05/0.2345, allocations: 51.95 kB / 413.7 MB, free: 27.57 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003593/0.2349, allocations: 344.7 kB / 414 MB, free: 27.18 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001357/0.2351, allocations: 78.58 kB / 414.1 MB, free: 27.1 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.075e-05/0.2351, allocations: 12.09 kB / 414.1 MB, free: 27.09 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.548e-05/0.2351, allocations: 34.56 kB / 414.1 MB, free: 27.04 MB / 302.1 MB Notification: Performance of pre-optimization done (n=8): time 1.223e-06/0.2351, allocations: 0 / 414.1 MB, free: 27.04 MB / 302.1 MB Notification: Performance of matching and sorting (n=8): time 0.0002879/0.2354, allocations: 133.5 kB / 414.2 MB, free: 26.91 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.937e-05/0.2354, allocations: 51.41 kB / 414.3 MB, free: 26.84 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.82e-05/0.2355, allocations: 149 kB / 414.4 MB, free: 26.68 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.23e-05/0.2356, allocations: 29.7 kB / 414.5 MB, free: 26.65 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.14e-05/0.2356, allocations: 104 kB / 414.6 MB, free: 26.54 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.883e-05/0.2356, allocations: 23.66 kB / 414.6 MB, free: 26.52 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.023e-06/0.2356, allocations: 3.938 kB / 414.6 MB, free: 26.52 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 4.337e-05/0.2357, allocations: 326.8 kB / 414.9 MB, free: 26.19 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.465e-05/0.2357, allocations: 27.98 kB / 414.9 MB, free: 26.16 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.094e-05/0.2358, allocations: 35.97 kB / 415 MB, free: 26.12 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.116e-05/0.2359, allocations: 35.94 kB / 415 MB, free: 26.09 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.252e-06/0.2359, allocations: 0 / 415 MB, free: 26.09 MB / 302.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001911/0.2361, allocations: 125.5 kB / 415.1 MB, free: 25.96 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.148e-05/0.2361, allocations: 14.3 kB / 415.2 MB, free: 25.95 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.447e-06/0.2361, allocations: 0 / 415.2 MB, free: 25.95 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.997e-06/0.2361, allocations: 0 / 415.2 MB, free: 25.95 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001167/0.2362, allocations: 27.92 kB / 415.2 MB, free: 25.92 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.458e-06/0.2363, allocations: 0 / 415.2 MB, free: 25.92 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.988e-05/0.2363, allocations: 11.91 kB / 415.2 MB, free: 25.91 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.253e-05/0.2363, allocations: 11.92 kB / 415.2 MB, free: 25.9 MB / 302.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 6.541e-05/0.2364, allocations: 121.5 kB / 415.3 MB, free: 25.77 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.808e-05/0.2364, allocations: 7.906 kB / 415.3 MB, free: 25.77 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003355/0.2368, allocations: 206.1 kB / 415.5 MB, free: 25.55 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.555e-05/0.2368, allocations: 4 kB / 415.5 MB, free: 25.55 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.549e-06/0.2368, allocations: 0 / 415.5 MB, free: 25.55 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.228e-06/0.2368, allocations: 0 / 415.5 MB, free: 25.55 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002277/0.2371, allocations: 229.4 kB / 415.8 MB, free: 25.28 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.079e-06/0.2371, allocations: 4 kB / 415.8 MB, free: 25.27 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.316e-05/0.2372, allocations: 12 kB / 415.8 MB, free: 25.26 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.765e-06/0.2372, allocations: 4 kB / 415.8 MB, free: 25.26 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.249e-05/0.2372, allocations: 3.984 kB / 415.8 MB, free: 25.25 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.955e-06/0.2372, allocations: 7.953 kB / 415.8 MB, free: 25.25 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.02e-07/0.2372, allocations: 0 / 415.8 MB, free: 25.25 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002257/0.2374, allocations: 243.4 kB / 416 MB, free: 24.99 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.548e-05/0.2375, allocations: 108.9 kB / 416.1 MB, free: 24.87 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.184e-05/0.2375, allocations: 0 / 416.1 MB, free: 24.87 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.666e-05/0.2376, allocations: 0 / 416.1 MB, free: 24.87 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.277e-05/0.2376, allocations: 19.94 kB / 416.2 MB, free: 24.85 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.228e-05/0.2377, allocations: 11.98 kB / 416.2 MB, free: 24.84 MB / 302.1 MB Notification: Performance of sorting global known variables: time 4.73e-05/0.2377, allocations: 107.8 kB / 416.3 MB, free: 24.73 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2377, allocations: 0 / 416.3 MB, free: 24.73 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002958/0.238, allocations: 59.92 kB / 416.3 MB, free: 24.67 MB / 302.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.0006782/0.2387, allocations: 0.9206 MB / 417.3 MB, free: 23.77 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000173/0.2389, allocations: 103.9 kB / 417.4 MB, free: 23.67 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.824e-06/0.2389, allocations: 0 / 417.4 MB, free: 23.67 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001049/0.239, allocations: 123.2 kB / 417.5 MB, free: 23.54 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001511/0.2392, allocations: 11.95 kB / 417.5 MB, free: 23.52 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005204/0.2397, allocations: 491.2 kB / 418 MB, free: 22.99 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000112/0.2398, allocations: 0.7121 MB / 418.7 MB, free: 22.25 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.563e-05/0.2399, allocations: 32.34 kB / 418.7 MB, free: 22.22 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.727e-05/0.24, allocations: 31.42 kB / 418.7 MB, free: 22.19 MB / 302.1 MB Notification: Performance of SimCode: time 2e-07/0.24, allocations: 0 / 418.7 MB, free: 22.19 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01191/0.2519, allocations: 3.511 MB / 422.2 MB, free: 18.79 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001272/0.2521, allocations: 232.3 kB / 422.5 MB, free: 18.55 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.663/1.915, allocations: 3.938 kB / 422.5 MB, free: 18.55 MB / 302.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)