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.001557/0.001556, allocations: 101.4 kB / 15.7 MB, free: 24 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001788/0.001788, allocations: 191.1 kB / 16.64 MB, free: 6.445 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.487/1.487, allocations: 222.9 MB / 240.3 MB, free: 4.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AdvancedNoise 1.1.0-master/package.mo): time 0.1448/0.1448, allocations: 3.889 MB / 294.4 MB, free: 3.184 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002194/0.002194, allocations: 67.89 kB / 355.7 MB, free: 3.375 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09464/0.09686, allocations: 50.19 MB / 405.9 MB, free: 1.148 MB / 334.1 MB Notification: Performance of NFInst.instantiate(AdvancedNoise.Examples.VaryingDistribution): time 0.003114/0.1, allocations: 1.5 MB / 407.4 MB, free: 15.64 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001887/0.1019, allocations: 1.114 MB / 408.5 MB, free: 14.52 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.408e-05/0.102, allocations: 0 / 408.5 MB, free: 14.52 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001375/0.1022, allocations: 19.75 kB / 408.6 MB, free: 14.5 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 6.491e-05/0.1023, allocations: 15.86 kB / 408.6 MB, free: 14.48 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.0008199/0.1031, allocations: 247.3 kB / 408.8 MB, free: 14.24 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002109/0.1033, allocations: 171.6 kB / 409 MB, free: 14.07 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.862e-05/0.1034, allocations: 9.406 kB / 409 MB, free: 14.06 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001014/0.1035, allocations: 63.81 kB / 409.1 MB, free: 14 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.07e-05/0.1036, allocations: 51.75 kB / 409.1 MB, free: 13.95 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.399e-05/0.1036, allocations: 12 kB / 409.1 MB, free: 13.93 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003272/0.104, allocations: 239.6 kB / 409.3 MB, free: 13.7 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.141e-05/0.104, allocations: 23.92 kB / 409.4 MB, free: 13.68 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.47e-05/0.1041, allocations: 51.72 kB / 409.4 MB, free: 13.62 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003665/0.1045, allocations: 287.3 kB / 409.7 MB, free: 13.34 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.038e-06/0.1045, allocations: 0 / 409.7 MB, free: 13.34 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.374e-06/0.1045, allocations: 8 kB / 409.7 MB, free: 13.34 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.34e-06/0.1045, allocations: 0 / 409.7 MB, free: 13.34 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.001494/0.106, allocations: 1.321 MB / 411 MB, free: 11.96 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.809e-05/0.1061, allocations: 8.031 kB / 411 MB, free: 11.95 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.202e-05/0.1061, allocations: 34.75 kB / 411.1 MB, free: 11.91 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003835/0.1065, allocations: 52.69 kB / 411.1 MB, free: 11.86 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002375/0.1068, allocations: 220.6 kB / 411.3 MB, free: 11.6 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.128e-05/0.1068, allocations: 12.31 kB / 411.4 MB, free: 11.59 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.14e-05/0.1068, allocations: 12.38 kB / 411.4 MB, free: 11.58 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003529/0.1072, allocations: 161.7 kB / 411.5 MB, free: 11.41 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.047e-06/0.1072, allocations: 0 / 411.5 MB, free: 11.41 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.817e-05/0.1072, allocations: 4 kB / 411.5 MB, free: 11.41 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.774e-06/0.1072, allocations: 3.984 kB / 411.5 MB, free: 11.41 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003275/0.1076, allocations: 143.9 kB / 411.7 MB, free: 11.27 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005517/0.1081, allocations: 356.7 kB / 412 MB, free: 10.87 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003916/0.1085, allocations: 210.4 kB / 412.2 MB, free: 10.65 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002791/0.1088, allocations: 184.8 kB / 412.4 MB, free: 10.47 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.816e-05/0.1089, allocations: 0 / 412.4 MB, free: 10.47 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004165/0.1093, allocations: 300.3 kB / 412.7 MB, free: 10.14 MB / 350.1 MB Notification: Performance of pre-optimization done (n=14): time 1.413e-06/0.1093, allocations: 0 / 412.7 MB, free: 10.14 MB / 350.1 MB Notification: Performance of matching and sorting (n=14): time 0.0009607/0.1103, allocations: 482.5 kB / 413.2 MB, free: 9.664 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.366e-05/0.1103, allocations: 97.09 kB / 413.3 MB, free: 9.551 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001629/0.1105, allocations: 158.2 kB / 413.4 MB, free: 9.387 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.499e-05/0.1105, allocations: 29.7 kB / 413.4 MB, free: 9.352 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.152e-05/0.1106, allocations: 96.45 kB / 413.5 MB, free: 9.25 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.02e-05/0.1107, allocations: 31.56 kB / 413.6 MB, free: 9.219 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.594e-05/0.1107, allocations: 41.69 kB / 413.6 MB, free: 9.172 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001389/0.1109, allocations: 334.8 kB / 413.9 MB, free: 8.836 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002185/0.1111, allocations: 91.91 kB / 414 MB, free: 8.746 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001981/0.1113, allocations: 91.94 kB / 414.1 MB, free: 8.656 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004323/0.1118, allocations: 270.4 kB / 414.4 MB, free: 8.379 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.976e-06/0.1118, allocations: 0 / 414.4 MB, free: 8.379 MB / 350.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0005488/0.1123, allocations: 309.9 kB / 414.7 MB, free: 8.066 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.583e-05/0.1124, allocations: 45.69 kB / 414.7 MB, free: 8.016 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.98e-06/0.1124, allocations: 0 / 414.7 MB, free: 8.016 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.666e-05/0.1124, allocations: 0 / 414.7 MB, free: 8.016 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001497/0.1126, allocations: 23.98 kB / 414.8 MB, free: 7.992 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.316e-06/0.1126, allocations: 3.984 kB / 414.8 MB, free: 7.988 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.588e-05/0.1127, allocations: 19.89 kB / 414.8 MB, free: 7.969 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.925e-05/0.1128, allocations: 23.97 kB / 414.8 MB, free: 7.945 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.0001794/0.113, allocations: 191.9 kB / 415 MB, free: 7.742 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.519e-05/0.113, allocations: 11.91 kB / 415 MB, free: 7.73 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.172e-05/0.1131, allocations: 16.83 kB / 415 MB, free: 7.711 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.214e-06/0.1131, allocations: 0 / 415 MB, free: 7.711 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.519e-06/0.1131, allocations: 0 / 415 MB, free: 7.711 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.368e-06/0.1131, allocations: 0 / 415 MB, free: 7.711 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001848/0.1133, allocations: 229.3 kB / 415.2 MB, free: 7.438 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-06/0.1133, allocations: 4 kB / 415.2 MB, free: 7.434 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001115/0.1134, allocations: 19.92 kB / 415.3 MB, free: 7.414 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.884e-06/0.1134, allocations: 0 / 415.3 MB, free: 7.414 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.379e-05/0.1135, allocations: 11.98 kB / 415.3 MB, free: 7.402 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.633e-06/0.1135, allocations: 0 / 415.3 MB, free: 7.402 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.1135, allocations: 0 / 415.3 MB, free: 7.402 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001047/0.1145, allocations: 0.5804 MB / 415.9 MB, free: 6.797 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.576e-05/0.1146, allocations: 85.05 kB / 415.9 MB, free: 6.695 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.192e-05/0.1146, allocations: 15.92 kB / 416 MB, free: 6.68 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.668e-05/0.1147, allocations: 12 kB / 416 MB, free: 6.668 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.046e-05/0.1148, allocations: 11.98 kB / 416 MB, free: 6.656 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.67e-05/0.1149, allocations: 24.09 kB / 416 MB, free: 6.633 MB / 350.1 MB Notification: Performance of sorting global known variables: time 8.69e-05/0.115, allocations: 116.1 kB / 416.1 MB, free: 6.52 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.115, allocations: 4 kB / 416.1 MB, free: 6.516 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003742/0.1153, allocations: 91.98 kB / 416.2 MB, free: 6.426 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.001743/0.1171, allocations: 1.269 MB / 417.5 MB, free: 5.16 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006839/0.1178, allocations: 439.2 kB / 417.9 MB, free: 4.719 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.855e-06/0.1178, allocations: 0 / 417.9 MB, free: 4.719 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004298/0.1182, allocations: 367.3 kB / 418.3 MB, free: 4.348 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002211/0.1185, allocations: 12 kB / 418.3 MB, free: 4.336 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002814/0.1213, allocations: 2.23 MB / 420.5 MB, free: 2.023 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002616/0.1216, allocations: 0.7117 MB / 421.2 MB, free: 1.285 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.653e-05/0.1216, allocations: 12.66 kB / 421.2 MB, free: 1.27 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.428e-05/0.1217, allocations: 39.36 kB / 421.3 MB, free: 1.23 MB / 350.1 MB Notification: Performance of SimCode: time 2.8e-07/0.1217, allocations: 0 / 421.3 MB, free: 1.23 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1926/0.3143, allocations: 4.736 MB / 426 MB, free: 48.83 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.89/8.204, allocations: 16.25 kB / 426 MB, free: 48.82 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)