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/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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009972/0.0009973, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.00119/0.00119, allocations: 190.7 kB / 16.25 MB, free: 6.617 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.176/1.176, allocations: 222.9 MB / 239.9 MB, free: 4.535 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AdvancedNoise 1.1.0-master/package.mo): time 0.1149/0.1149, allocations: 3.885 MB / 294 MB, free: 3.262 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001115/0.001115, allocations: 55.91 kB / 355.1 MB, free: 3.852 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08436/0.08549, allocations: 50.18 MB / 405.2 MB, free: 1.629 MB / 334.1 MB Notification: Performance of NFInst.instantiate(AdvancedNoise.Examples.VaryingDistribution): time 0.002752/0.08827, allocations: 1.576 MB / 406.8 MB, free: 40 kB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001808/0.09011, allocations: 1.114 MB / 407.9 MB, free: 14.92 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.199e-05/0.09021, allocations: 8 kB / 407.9 MB, free: 14.91 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001225/0.09034, allocations: 7.875 kB / 407.9 MB, free: 14.9 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 6.637e-05/0.09043, allocations: 11.92 kB / 408 MB, free: 14.89 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.0008485/0.09129, allocations: 223.5 kB / 408.2 MB, free: 14.67 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001856/0.09148, allocations: 159.7 kB / 408.3 MB, free: 14.52 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.802e-05/0.09157, allocations: 17.38 kB / 408.4 MB, free: 14.5 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001037/0.09168, allocations: 63.77 kB / 408.4 MB, free: 14.43 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.857e-05/0.09178, allocations: 59.75 kB / 408.5 MB, free: 14.38 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.438e-05/0.09181, allocations: 8 kB / 408.5 MB, free: 14.37 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003449/0.09216, allocations: 211.7 kB / 408.7 MB, free: 14.16 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.804e-05/0.09222, allocations: 31.84 kB / 408.7 MB, free: 14.13 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.546e-05/0.09229, allocations: 47.73 kB / 408.8 MB, free: 14.08 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004067/0.0927, allocations: 283.3 kB / 409 MB, free: 13.8 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.529e-06/0.09272, allocations: 4 kB / 409 MB, free: 13.8 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.09272, allocations: 0 / 409 MB, free: 13.8 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.27e-06/0.09274, allocations: 3.938 kB / 409 MB, free: 13.8 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: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.001459/0.0942, allocations: 1.325 MB / 410.4 MB, free: 12.41 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.98e-05/0.09425, allocations: 8.031 kB / 410.4 MB, free: 12.41 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.396e-05/0.0943, allocations: 38.75 kB / 410.4 MB, free: 12.36 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003857/0.09469, allocations: 48.69 kB / 410.5 MB, free: 12.31 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002342/0.09494, allocations: 216.7 kB / 410.7 MB, free: 12.06 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.108e-05/0.09497, allocations: 8.312 kB / 410.7 MB, free: 12.05 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.256e-05/0.095, allocations: 12.38 kB / 410.7 MB, free: 12.04 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003464/0.09536, allocations: 165.7 kB / 410.9 MB, free: 11.88 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.396e-06/0.09537, allocations: 3.938 kB / 410.9 MB, free: 11.87 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.812e-05/0.0954, allocations: 8 kB / 410.9 MB, free: 11.86 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.693e-06/0.09541, allocations: 0 / 410.9 MB, free: 11.86 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000291/0.0957, allocations: 135.9 kB / 411 MB, free: 11.73 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005595/0.09627, allocations: 364.6 kB / 411.4 MB, free: 11.32 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003549/0.09664, allocations: 210.5 kB / 411.6 MB, free: 11.11 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002493/0.0969, allocations: 176.9 kB / 411.7 MB, free: 10.93 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.893e-05/0.09693, allocations: 0 / 411.7 MB, free: 10.93 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003629/0.0973, allocations: 308.2 kB / 412 MB, free: 10.6 MB / 350.1 MB Notification: Performance of pre-optimization done (n=14): time 1.352e-06/0.09731, allocations: 4 kB / 412 MB, free: 10.6 MB / 350.1 MB Notification: Performance of matching and sorting (n=14): time 0.0008454/0.09816, allocations: 466.7 kB / 412.5 MB, free: 10.13 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.85e-05/0.09823, allocations: 101.1 kB / 412.6 MB, free: 10.02 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001227/0.09836, allocations: 158.2 kB / 412.8 MB, free: 9.852 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.407e-05/0.09839, allocations: 29.7 kB / 412.8 MB, free: 9.816 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.964e-05/0.09845, allocations: 100.5 kB / 412.9 MB, free: 9.715 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.296e-05/0.09849, allocations: 35.48 kB / 412.9 MB, free: 9.68 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.392e-05/0.09855, allocations: 37.7 kB / 413 MB, free: 9.637 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.905e-05/0.09866, allocations: 330.8 kB / 413.3 MB, free: 9.305 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000189/0.09885, allocations: 99.89 kB / 413.4 MB, free: 9.207 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001788/0.09904, allocations: 87.95 kB / 413.5 MB, free: 9.121 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003878/0.09944, allocations: 277.9 kB / 413.7 MB, free: 8.836 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.854e-06/0.09945, allocations: 0 / 413.7 MB, free: 8.836 MB / 350.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.000487/0.09994, allocations: 297.6 kB / 414 MB, free: 8.535 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.87e-05/0.1, allocations: 49.69 kB / 414.1 MB, free: 8.48 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.579e-06/0.1, allocations: 0 / 414.1 MB, free: 8.48 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.229e-05/0.1, allocations: 0 / 414.1 MB, free: 8.48 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001277/0.1002, allocations: 31.91 kB / 414.1 MB, free: 8.449 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.203e-06/0.1002, allocations: 3.984 kB / 414.1 MB, free: 8.445 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.488e-05/0.1003, allocations: 15.91 kB / 414.1 MB, free: 8.43 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.133e-05/0.1003, allocations: 24.02 kB / 414.1 MB, free: 8.406 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: 14 (globalSeed.seed,discreteNoise.actualGlobalSeed,discreteNoise.localSeed,globalSeed.id_impure,discreteNoise.r,discreteNoise.bufferStartTime,discreteNoise.buffer[2],discreteNoise.buffer[1],discreteNoise.state[4],discreteNoise.state[3],discreteNoise.state[2],discreteNoise.state[1],$whenCondition2,$whenCondition1) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000154/0.1005, allocations: 195.4 kB / 414.3 MB, free: 8.199 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.988e-05/0.1005, allocations: 11.91 kB / 414.3 MB, free: 8.188 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.227e-05/0.1006, allocations: 12.84 kB / 414.4 MB, free: 8.172 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.974e-06/0.1006, allocations: 3.938 kB / 414.4 MB, free: 8.168 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.248e-06/0.1006, allocations: 0 / 414.4 MB, free: 8.168 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.896e-06/0.1006, allocations: 0 / 414.4 MB, free: 8.168 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001867/0.1008, allocations: 233.3 kB / 414.6 MB, free: 7.891 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.283e-06/0.1008, allocations: 0 / 414.6 MB, free: 7.891 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.409e-05/0.1009, allocations: 11.98 kB / 414.6 MB, free: 7.879 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.527e-06/0.1009, allocations: 0 / 414.6 MB, free: 7.879 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.25e-05/0.101, allocations: 15.94 kB / 414.6 MB, free: 7.863 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.252e-06/0.101, allocations: 0 / 414.6 MB, free: 7.863 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.034e-06/0.101, allocations: 4.062 kB / 414.6 MB, free: 7.859 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009142/0.1019, allocations: 0.5765 MB / 415.2 MB, free: 7.258 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.63e-05/0.1019, allocations: 89.11 kB / 415.3 MB, free: 7.152 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.842e-05/0.102, allocations: 19.92 kB / 415.3 MB, free: 7.133 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.624e-05/0.1021, allocations: 11.98 kB / 415.3 MB, free: 7.121 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.373e-05/0.1021, allocations: 15.97 kB / 415.3 MB, free: 7.105 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.835e-05/0.1022, allocations: 23.97 kB / 415.4 MB, free: 7.082 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.31e-05/0.1023, allocations: 116.1 kB / 415.5 MB, free: 6.969 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1023, allocations: 0 / 415.5 MB, free: 6.969 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003285/0.1026, allocations: 84 kB / 415.5 MB, free: 6.887 MB / 350.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 (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.001489/0.1041, allocations: 1.259 MB / 416.8 MB, free: 5.629 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006119/0.1047, allocations: 451.1 kB / 417.2 MB, free: 5.176 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.713e-06/0.1047, allocations: 0 / 417.2 MB, free: 5.176 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003664/0.1051, allocations: 359.3 kB / 417.6 MB, free: 4.812 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002046/0.1053, allocations: 19.97 kB / 417.6 MB, free: 4.793 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002454/0.1078, allocations: 2.238 MB / 419.9 MB, free: 2.469 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002214/0.108, allocations: 0.7078 MB / 420.6 MB, free: 1.734 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.342e-05/0.1081, allocations: 12.66 kB / 420.6 MB, free: 1.723 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.591e-05/0.1081, allocations: 35.42 kB / 420.6 MB, free: 1.688 MB / 350.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1081, allocations: 0 / 420.6 MB, free: 1.688 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1538/0.2619, allocations: 4.594 MB / 425.2 MB, free: 49.26 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001501/0.2621, allocations: 255.9 kB / 425.5 MB, free: 49.01 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.711/1.973, allocations: 3.906 kB / 425.5 MB, free: 49.01 MB / 350.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/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)