Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr AdvancedNoise_AdvancedNoise.Examples.VaryingDistribution.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.VaryingDistribution,fileNamePrefix="AdvancedNoise_AdvancedNoise_Examples_VaryingDistribution",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AdvancedNoise.Examples.VaryingDistribution,fileNamePrefix="AdvancedNoise_AdvancedNoise_Examples_VaryingDistribution",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.02725/0.02725, allocations: 3.907 MB / 18.86 MB, free: 2.793 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.0009525/0.0009524, allocations: 182.3 kB / 20.49 MB, free: 1.766 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.323/1.323, allocations: 223.2 MB / 245.2 MB, free: 10.07 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.0007948/0.0007948, allocations: 94.86 kB / 297.1 MB, free: 10.49 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000313/0.0003131, allocations: 8 kB / 358.8 MB, free: 12.73 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2211/0.2214, allocations: 51.18 MB / 410 MB, free: 31.26 MB / 302.1 MB Notification: Performance of NFInst.instantiate(AdvancedNoise.Examples.VaryingDistribution): time 0.001439/0.2229, allocations: 1.22 MB / 411.2 MB, free: 30.03 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00137/0.2243, allocations: 1.035 MB / 412.3 MB, free: 28.99 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.34e-05/0.2244, allocations: 7.938 kB / 412.3 MB, free: 28.98 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001421/0.2245, allocations: 21.12 kB / 412.3 MB, free: 28.96 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 4.664e-05/0.2246, allocations: 11.98 kB / 412.3 MB, free: 28.95 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.0005862/0.2252, allocations: 182.7 kB / 412.5 MB, free: 28.78 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001202/0.2253, allocations: 83.84 kB / 412.6 MB, free: 28.7 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.655e-05/0.2254, allocations: 25.36 kB / 412.6 MB, free: 28.67 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001184/0.2255, allocations: 55.84 kB / 412.7 MB, free: 28.61 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.322e-05/0.2256, allocations: 59.73 kB / 412.7 MB, free: 28.55 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.098e-05/0.2257, allocations: 4 kB / 412.7 MB, free: 28.55 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00024/0.2259, allocations: 163.7 kB / 412.9 MB, free: 28.39 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.188e-05/0.226, allocations: 19.92 kB / 412.9 MB, free: 28.37 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 6.038e-05/0.226, allocations: 42.73 kB / 412.9 MB, free: 28.32 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002512/0.2263, allocations: 199.6 kB / 413.1 MB, free: 28.13 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.805e-06/0.2263, allocations: 0 / 413.1 MB, free: 28.13 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.2263, allocations: 1.344 kB / 413.1 MB, free: 28.13 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.26e-06/0.2263, allocations: 0 / 413.1 MB, free: 28.13 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: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.001367/0.2277, allocations: 1.315 MB / 414.4 MB, free: 26.76 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.698e-05/0.2278, allocations: 8.031 kB / 414.5 MB, free: 26.75 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.235e-05/0.2278, allocations: 38.55 kB / 414.5 MB, free: 26.7 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00028/0.2281, allocations: 27.89 kB / 414.5 MB, free: 26.68 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002378/0.2283, allocations: 210.8 kB / 414.7 MB, free: 26.43 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.782e-05/0.2284, allocations: 4 kB / 414.7 MB, free: 26.43 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.044e-05/0.2284, allocations: 15.94 kB / 414.7 MB, free: 26.41 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003145/0.2287, allocations: 165.6 kB / 414.9 MB, free: 26.24 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.486e-06/0.2287, allocations: 0 / 414.9 MB, free: 26.24 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.773e-05/0.2288, allocations: 7.953 kB / 414.9 MB, free: 26.23 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.41e-06/0.2288, allocations: 0 / 414.9 MB, free: 26.23 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002688/0.2291, allocations: 143.9 kB / 415.1 MB, free: 26.09 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005007/0.2296, allocations: 348.7 kB / 415.4 MB, free: 25.7 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003166/0.2299, allocations: 218.4 kB / 415.6 MB, free: 25.48 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.487e-05/0.2299, allocations: 0 / 415.6 MB, free: 25.48 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003705/0.2303, allocations: 300.4 kB / 415.9 MB, free: 25.16 MB / 302.1 MB Notification: Performance of pre-optimization done (n=14): time 1.322e-06/0.2303, allocations: 0 / 415.9 MB, free: 25.16 MB / 302.1 MB Notification: Performance of matching and sorting (n=14): time 0.0008136/0.2311, allocations: 0.5487 MB / 416.5 MB, free: 24.58 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.864e-05/0.2312, allocations: 101 kB / 416.6 MB, free: 24.46 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001042/0.2313, allocations: 156.2 kB / 416.7 MB, free: 24.3 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.577e-05/0.2313, allocations: 25.7 kB / 416.7 MB, free: 24.27 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.867e-05/0.2314, allocations: 100.5 kB / 416.8 MB, free: 24.16 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.534e-05/0.2314, allocations: 43.41 kB / 416.9 MB, free: 24.12 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.127e-06/0.2314, allocations: 0 / 416.9 MB, free: 24.12 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 5.192e-05/0.2315, allocations: 326.8 kB / 417.2 MB, free: 23.79 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001665/0.2316, allocations: 95.94 kB / 417.3 MB, free: 23.7 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001519/0.2318, allocations: 91.95 kB / 417.4 MB, free: 23.61 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001911/0.232, allocations: 148.3 kB / 417.5 MB, free: 23.46 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.815e-06/0.232, allocations: 112 / 417.5 MB, free: 23.46 MB / 302.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0004304/0.2324, allocations: 303.1 kB / 417.8 MB, free: 23.15 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.568e-05/0.2325, allocations: 51.88 kB / 417.9 MB, free: 23.1 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.909e-06/0.2325, allocations: 0 / 417.9 MB, free: 23.1 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.425e-05/0.2325, allocations: 3.953 kB / 417.9 MB, free: 23.09 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001294/0.2327, allocations: 27.92 kB / 417.9 MB, free: 23.07 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.372e-06/0.2327, allocations: 0 / 417.9 MB, free: 23.07 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.861e-05/0.2328, allocations: 27.83 kB / 417.9 MB, free: 23.04 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.385e-05/0.2328, allocations: 8 kB / 417.9 MB, free: 23.03 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: 14 ($whenCondition1,$whenCondition2,discreteNoise.state[1],discreteNoise.state[2],discreteNoise.state[3],discreteNoise.state[4],discreteNoise.buffer[1],discreteNoise.buffer[2],discreteNoise.bufferStartTime,discreteNoise.r,globalSeed.id_impure,discreteNoise.localSeed,discreteNoise.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): 10 * Array equations: 0 * Algorithm blocks: 1 * 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 0.0001517/0.233, allocations: 187.4 kB / 418.1 MB, free: 22.83 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.712e-05/0.233, allocations: 15.81 kB / 418.1 MB, free: 22.82 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.207e-05/0.2331, allocations: 12.84 kB / 418.1 MB, free: 22.8 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.933e-06/0.2331, allocations: 0 / 418.1 MB, free: 22.8 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.111e-06/0.2331, allocations: 3.953 kB / 418.1 MB, free: 22.8 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.817e-06/0.2331, allocations: 4 kB / 418.1 MB, free: 22.79 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001342/0.2332, allocations: 225.5 kB / 418.4 MB, free: 22.52 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.432e-06/0.2332, allocations: 3.984 kB / 418.4 MB, free: 22.52 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.753e-05/0.2333, allocations: 15.98 kB / 418.4 MB, free: 22.5 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.864e-06/0.2333, allocations: 0 / 418.4 MB, free: 22.5 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.19e-05/0.2334, allocations: 8 kB / 418.4 MB, free: 22.5 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.182e-06/0.2334, allocations: 3.938 kB / 418.4 MB, free: 22.49 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.31e-07/0.2334, allocations: 0 / 418.4 MB, free: 22.49 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008454/0.2342, allocations: 0.585 MB / 419 MB, free: 21.88 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.935e-05/0.2343, allocations: 92.98 kB / 419.1 MB, free: 21.77 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.82e-05/0.2343, allocations: 11.98 kB / 419.1 MB, free: 21.76 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.078e-05/0.2344, allocations: 15.98 kB / 419.1 MB, free: 21.75 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.756e-05/0.2345, allocations: 15.92 kB / 419.1 MB, free: 21.73 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.875e-05/0.2345, allocations: 8.125 kB / 419.1 MB, free: 21.72 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.057e-05/0.2346, allocations: 123.4 kB / 419.2 MB, free: 21.6 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2346, allocations: 4.062 kB / 419.3 MB, free: 21.6 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003183/0.2349, allocations: 83.98 kB / 419.3 MB, free: 21.52 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (continuousMean.mu) * Number of discrete variables: 10 ($whenCondition1,$whenCondition2,discreteNoise.state[1],discreteNoise.state[2],discreteNoise.state[3],discreteNoise.state[4],discreteNoise.buffer[1],discreteNoise.buffer[2],discreteNoise.bufferStartTime,discreteNoise.r) * Number of discrete states: 10 (discreteNoise.buffer[2],discreteNoise.buffer[1],discreteNoise.r,discreteNoise.bufferStartTime,discreteNoise.state[4],discreteNoise.state[3],discreteNoise.state[2],discreteNoise.state[1],$whenCondition2,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (5): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 1 * 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 Backend phase and start with SimCode phase: time 0.001358/0.2363, allocations: 1.269 MB / 420.6 MB, free: 20.25 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005738/0.2369, allocations: 443.2 kB / 421 MB, free: 19.8 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.023e-06/0.2369, allocations: 0 / 421 MB, free: 19.8 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003276/0.2372, allocations: 363.2 kB / 421.4 MB, free: 19.44 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001772/0.2374, allocations: 22.33 kB / 421.4 MB, free: 19.42 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007848/0.2382, allocations: 0.6083 MB / 422 MB, free: 18.76 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001596/0.2384, allocations: 0.7121 MB / 422.7 MB, free: 18.02 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 5.477e-05/0.2384, allocations: 12.66 kB / 422.7 MB, free: 18 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.634e-05/0.2385, allocations: 39.42 kB / 422.8 MB, free: 17.97 MB / 302.1 MB Notification: Performance of SimCode: time 2.31e-07/0.2385, allocations: 0 / 422.8 MB, free: 17.97 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01401/0.2525, allocations: 4.418 MB / 427.2 MB, free: 13.68 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001333/0.2527, allocations: 234.8 kB / 427.4 MB, free: 13.44 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.641/1.893, allocations: 0 / 427.4 MB, free: 13.44 MB / 302.1 MB (rm -f AdvancedNoise_AdvancedNoise.Examples.VaryingDistribution.pipe ; mkfifo AdvancedNoise_AdvancedNoise.Examples.VaryingDistribution.pipe ; head -c 1048576 < AdvancedNoise_AdvancedNoise.Examples.VaryingDistribution.pipe >> ../files/AdvancedNoise_AdvancedNoise.Examples.VaryingDistribution.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_AdvancedNoise_AdvancedNoise_Examples_VaryingDistribution_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 AdvancedNoise_AdvancedNoise_Examples_VaryingDistribution.fmu > AdvancedNoise_AdvancedNoise.Examples.VaryingDistribution.pipe 2>&1)