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.02822/0.02822, allocations: 3.903 MB / 18.88 MB, free: 3.516 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.000888/0.000888, allocations: 174.2 kB / 20.51 MB, free: 2.492 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.387/1.387, allocations: 223.2 MB / 245.3 MB, free: 11.72 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.001057/0.001057, allocations: 103 kB / 297.2 MB, free: 9.973 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000317/0.0003171, allocations: 11.94 kB / 359 MB, free: 12.2 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2483/0.2487, allocations: 51.18 MB / 410.1 MB, free: 31.16 MB / 302.1 MB Notification: Performance of NFInst.instantiate(AdvancedNoise.Examples.VaryingDistribution): time 0.001464/0.2502, allocations: 1.224 MB / 411.4 MB, free: 29.93 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001512/0.2517, allocations: 1.033 MB / 412.4 MB, free: 28.89 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.959e-05/0.2518, allocations: 0 / 412.4 MB, free: 28.89 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000107/0.252, allocations: 19.86 kB / 412.4 MB, free: 28.87 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 7.553e-05/0.2521, allocations: 7.875 kB / 412.4 MB, free: 28.86 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.0007521/0.2528, allocations: 191.6 kB / 412.6 MB, free: 28.68 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001372/0.253, allocations: 131.7 kB / 412.7 MB, free: 28.55 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.569e-05/0.253, allocations: 17.36 kB / 412.8 MB, free: 28.53 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001167/0.2532, allocations: 67.75 kB / 412.8 MB, free: 28.46 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.595e-05/0.2533, allocations: 47.77 kB / 412.9 MB, free: 28.42 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.399e-05/0.2533, allocations: 8 kB / 412.9 MB, free: 28.41 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003058/0.2536, allocations: 199.7 kB / 413.1 MB, free: 28.21 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 3.474e-05/0.2537, allocations: 15.92 kB / 413.1 MB, free: 28.2 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 5.239e-05/0.2537, allocations: 45.58 kB / 413.1 MB, free: 28.15 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002624/0.254, allocations: 199.6 kB / 413.3 MB, free: 27.95 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.34e-06/0.254, allocations: 0 / 413.3 MB, free: 27.95 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.254, allocations: 1.125 kB / 413.3 MB, free: 27.95 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.059e-06/0.254, allocations: 0 / 413.3 MB, free: 27.95 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.001459/0.2555, allocations: 1.312 MB / 414.6 MB, free: 26.59 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.249e-05/0.2555, allocations: 8.031 kB / 414.6 MB, free: 26.58 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.347e-05/0.2556, allocations: 34.56 kB / 414.7 MB, free: 26.54 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003857/0.256, allocations: 47.84 kB / 414.7 MB, free: 26.49 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002268/0.2562, allocations: 218.7 kB / 414.9 MB, free: 26.23 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.227e-05/0.2563, allocations: 4 kB / 414.9 MB, free: 26.23 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.451e-05/0.2563, allocations: 8 kB / 415 MB, free: 26.22 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003114/0.2566, allocations: 165.6 kB / 415.1 MB, free: 26.05 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.059e-05/0.2566, allocations: 0 / 415.1 MB, free: 26.05 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.572e-05/0.2567, allocations: 7.953 kB / 415.1 MB, free: 26.05 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.278e-06/0.2567, allocations: 0 / 415.1 MB, free: 26.05 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002973/0.257, allocations: 155.8 kB / 415.3 MB, free: 25.89 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005114/0.2575, allocations: 356.7 kB / 415.6 MB, free: 25.5 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003206/0.2578, allocations: 214.5 kB / 415.8 MB, free: 25.28 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002191/0.2581, allocations: 188.8 kB / 416 MB, free: 25.09 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.393e-05/0.2581, allocations: 7.953 kB / 416 MB, free: 25.08 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003259/0.2584, allocations: 304.3 kB / 416.3 MB, free: 24.75 MB / 302.1 MB Notification: Performance of pre-optimization done (n=14): time 2.124e-06/0.2584, allocations: 0 / 416.3 MB, free: 24.75 MB / 302.1 MB Notification: Performance of matching and sorting (n=14): time 0.0008365/0.2593, allocations: 487.1 kB / 416.8 MB, free: 24.27 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.383e-05/0.2594, allocations: 89.11 kB / 416.9 MB, free: 24.16 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001132/0.2595, allocations: 156.2 kB / 417 MB, free: 24 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.503e-05/0.2595, allocations: 33.7 kB / 417.1 MB, free: 23.96 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.359e-05/0.2596, allocations: 100.5 kB / 417.2 MB, free: 23.86 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.026e-05/0.2596, allocations: 39.44 kB / 417.2 MB, free: 23.82 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.659e-06/0.2596, allocations: 4 kB / 417.2 MB, free: 23.81 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 6.073e-05/0.2597, allocations: 322.8 kB / 417.5 MB, free: 23.49 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000167/0.2598, allocations: 92.06 kB / 417.6 MB, free: 23.4 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001574/0.26, allocations: 103.9 kB / 417.7 MB, free: 23.3 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001896/0.2602, allocations: 156.5 kB / 417.9 MB, free: 23.14 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.2602, allocations: 0 / 417.9 MB, free: 23.14 MB / 302.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0004442/0.2607, allocations: 299.2 kB / 418.2 MB, free: 22.84 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.66e-05/0.2607, allocations: 49.69 kB / 418.2 MB, free: 22.78 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.903e-06/0.2607, allocations: 3.953 kB / 418.2 MB, free: 22.78 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.65e-05/0.2608, allocations: 0 / 418.2 MB, free: 22.78 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001346/0.2609, allocations: 27.98 kB / 418.2 MB, free: 22.75 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.694e-06/0.2609, allocations: 3.984 kB / 418.2 MB, free: 22.75 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.064e-05/0.261, allocations: 23.84 kB / 418.3 MB, free: 22.72 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.532e-05/0.2611, allocations: 23.91 kB / 418.3 MB, free: 22.7 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.0001436/0.2612, allocations: 187.4 kB / 418.5 MB, free: 22.5 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.166e-05/0.2613, allocations: 23.8 kB / 418.5 MB, free: 22.48 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.012e-05/0.2613, allocations: 12.84 kB / 418.5 MB, free: 22.46 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.877e-06/0.2613, allocations: 3.953 kB / 418.5 MB, free: 22.46 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.74e-06/0.2614, allocations: 7.984 kB / 418.5 MB, free: 22.45 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.226e-06/0.2614, allocations: 0 / 418.5 MB, free: 22.45 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001392/0.2615, allocations: 213.6 kB / 418.7 MB, free: 22.19 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.505e-06/0.2615, allocations: 4.047 kB / 418.7 MB, free: 22.19 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001049/0.2616, allocations: 19.98 kB / 418.8 MB, free: 22.17 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.248e-06/0.2616, allocations: 0 / 418.8 MB, free: 22.17 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.831e-05/0.2617, allocations: 8 kB / 418.8 MB, free: 22.16 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.154e-06/0.2617, allocations: 7.938 kB / 418.8 MB, free: 22.15 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.926e-06/0.2617, allocations: 3.953 kB / 418.8 MB, free: 22.15 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008506/0.2625, allocations: 0.5971 MB / 419.4 MB, free: 21.53 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.023e-05/0.2626, allocations: 88.98 kB / 419.5 MB, free: 21.42 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.406e-05/0.2626, allocations: 8 kB / 419.5 MB, free: 21.41 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.594e-05/0.2627, allocations: 19.98 kB / 419.5 MB, free: 21.39 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.637e-05/0.2628, allocations: 16 kB / 419.5 MB, free: 21.38 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.205e-05/0.2629, allocations: 23.95 kB / 419.5 MB, free: 21.36 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.168e-05/0.2629, allocations: 115.4 kB / 419.6 MB, free: 21.24 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.91e-07/0.2629, allocations: 0 / 419.6 MB, free: 21.24 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004078/0.2633, allocations: 87.98 kB / 419.7 MB, free: 21.16 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.001607/0.265, allocations: 1.271 MB / 421 MB, free: 19.89 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000603/0.2656, allocations: 447.4 kB / 421.4 MB, free: 19.44 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.2656, allocations: 0 / 421.4 MB, free: 19.44 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003209/0.2659, allocations: 371.3 kB / 421.8 MB, free: 19.07 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002208/0.2662, allocations: 23.88 kB / 421.8 MB, free: 19.04 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001693/0.2679, allocations: 1.164 MB / 423 MB, free: 17.83 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00014/0.268, allocations: 0.7043 MB / 423.7 MB, free: 17.1 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 5.912e-05/0.2681, allocations: 20.59 kB / 423.7 MB, free: 17.08 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.087e-05/0.2681, allocations: 35.42 kB / 423.7 MB, free: 17.04 MB / 302.1 MB Notification: Performance of SimCode: time 2.2e-07/0.2681, allocations: 0 / 423.7 MB, free: 17.04 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01632/0.2845, allocations: 4.462 MB / 428.2 MB, free: 12.71 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001693/0.2847, allocations: 232.8 kB / 428.4 MB, free: 12.48 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.81/2.094, allocations: 0 / 428.4 MB, free: 12.48 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)