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.001261/0.001261, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001329/0.001329, allocations: 197.9 kB / 16.14 MB, free: 6.715 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.286/1.286, allocations: 222.9 MB / 239.8 MB, free: 4.637 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AdvancedNoise 1.1.0-master/package.mo): time 0.1284/0.1284, allocations: 3.895 MB / 293.8 MB, free: 3.215 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00119/0.00119, allocations: 63.89 kB / 354.9 MB, free: 4.004 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08996/0.09117, allocations: 50.19 MB / 405.1 MB, free: 1.773 MB / 334.1 MB Notification: Performance of NFInst.instantiate(AdvancedNoise.Examples.VaryingDistribution): time 0.002555/0.09376, allocations: 1.585 MB / 406.6 MB, free: 176 kB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001843/0.09563, allocations: 1.149 MB / 407.8 MB, free: 15.02 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.001e-05/0.0957, allocations: 0 / 407.8 MB, free: 15.02 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001189/0.09584, allocations: 15.88 kB / 407.8 MB, free: 15 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 6.897e-05/0.09592, allocations: 15.92 kB / 407.8 MB, free: 14.98 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.0006421/0.09657, allocations: 195.6 kB / 408 MB, free: 14.79 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001417/0.09672, allocations: 143.7 kB / 408.2 MB, free: 14.65 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.392e-05/0.09681, allocations: 17.38 kB / 408.2 MB, free: 14.63 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.427e-05/0.09692, allocations: 59.77 kB / 408.2 MB, free: 14.57 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.753e-05/0.09701, allocations: 51.77 kB / 408.3 MB, free: 14.52 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.415e-05/0.09704, allocations: 4 kB / 408.3 MB, free: 14.52 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002916/0.09734, allocations: 211.7 kB / 408.5 MB, free: 14.31 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.138e-05/0.09739, allocations: 27.92 kB / 408.5 MB, free: 14.29 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.495e-05/0.09746, allocations: 47.72 kB / 408.6 MB, free: 14.24 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000334/0.0978, allocations: 275.3 kB / 408.8 MB, free: 13.97 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.547e-06/0.09782, allocations: 0 / 408.8 MB, free: 13.97 MB / 350.1 MB Notification: Performance of FrontEnd: time 7.32e-07/0.09782, allocations: 0 / 408.8 MB, free: 13.97 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.821e-06/0.09783, allocations: 0 / 408.8 MB, free: 13.97 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.001423/0.09926, allocations: 1.317 MB / 410.2 MB, free: 12.59 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.705e-05/0.09931, allocations: 12.03 kB / 410.2 MB, free: 12.58 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.985e-05/0.09936, allocations: 46.73 kB / 410.2 MB, free: 12.53 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003556/0.09972, allocations: 44.7 kB / 410.3 MB, free: 12.48 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002393/0.09997, allocations: 224.5 kB / 410.5 MB, free: 12.23 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.127e-05/0.1, allocations: 8.375 kB / 410.5 MB, free: 12.22 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.637e-05/0.1, allocations: 8.375 kB / 410.5 MB, free: 12.21 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003533/0.1004, allocations: 165.7 kB / 410.7 MB, free: 12.04 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.151e-06/0.1004, allocations: 0 / 410.7 MB, free: 12.04 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.758e-05/0.1004, allocations: 4 kB / 410.7 MB, free: 12.04 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.368e-06/0.1004, allocations: 4 kB / 410.7 MB, free: 12.04 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003231/0.1008, allocations: 143.8 kB / 410.8 MB, free: 11.89 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005319/0.1013, allocations: 364.6 kB / 411.2 MB, free: 11.49 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003823/0.1017, allocations: 206.5 kB / 411.4 MB, free: 11.28 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000273/0.102, allocations: 184.8 kB / 411.5 MB, free: 11.09 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.356e-05/0.102, allocations: 0 / 411.5 MB, free: 11.09 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003903/0.1024, allocations: 300.2 kB / 411.8 MB, free: 10.77 MB / 350.1 MB Notification: Performance of pre-optimization done (n=14): time 1.443e-06/0.1024, allocations: 4 kB / 411.8 MB, free: 10.77 MB / 350.1 MB Notification: Performance of matching and sorting (n=14): time 0.0009275/0.1034, allocations: 467.1 kB / 412.3 MB, free: 10.3 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.628e-05/0.1034, allocations: 93.09 kB / 412.4 MB, free: 10.19 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00013/0.1036, allocations: 162.2 kB / 412.5 MB, free: 10.02 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.975e-05/0.1036, allocations: 25.7 kB / 412.6 MB, free: 9.988 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.656e-05/0.1036, allocations: 104.5 kB / 412.7 MB, free: 9.883 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.378e-05/0.1037, allocations: 31.56 kB / 412.7 MB, free: 9.852 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.248e-05/0.1038, allocations: 45.69 kB / 412.7 MB, free: 9.801 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001035/0.1039, allocations: 326.8 kB / 413.1 MB, free: 9.473 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002117/0.1041, allocations: 88.02 kB / 413.2 MB, free: 9.387 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001949/0.1043, allocations: 99.88 kB / 413.2 MB, free: 9.289 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004329/0.1047, allocations: 278.2 kB / 413.5 MB, free: 9.004 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/0.1048, allocations: 0 / 413.5 MB, free: 9.004 MB / 350.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0005338/0.1053, allocations: 289.3 kB / 413.8 MB, free: 8.711 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.356e-05/0.1054, allocations: 53.67 kB / 413.9 MB, free: 8.652 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.559e-06/0.1054, allocations: 0 / 413.9 MB, free: 8.652 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.078e-05/0.1054, allocations: 0 / 413.9 MB, free: 8.652 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001361/0.1055, allocations: 27.98 kB / 413.9 MB, free: 8.625 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.54e-06/0.1055, allocations: 0 / 413.9 MB, free: 8.625 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.571e-05/0.1056, allocations: 19.89 kB / 413.9 MB, free: 8.605 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.96e-05/0.1057, allocations: 23.91 kB / 413.9 MB, free: 8.582 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.0001519/0.1059, allocations: 187.4 kB / 414.1 MB, free: 8.383 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.5e-05/0.1059, allocations: 11.91 kB / 414.1 MB, free: 8.371 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.871e-05/0.106, allocations: 16.83 kB / 414.1 MB, free: 8.352 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.655e-06/0.106, allocations: 4.062 kB / 414.1 MB, free: 8.348 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.899e-06/0.106, allocations: 4 kB / 414.1 MB, free: 8.344 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.284e-06/0.106, allocations: 0 / 414.1 MB, free: 8.344 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001746/0.1062, allocations: 229.3 kB / 414.4 MB, free: 8.07 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-06/0.1062, allocations: 0 / 414.4 MB, free: 8.07 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001027/0.1063, allocations: 15.98 kB / 414.4 MB, free: 8.055 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.557e-06/0.1063, allocations: 0 / 414.4 MB, free: 8.055 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.206e-05/0.1063, allocations: 11.92 kB / 414.4 MB, free: 8.043 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.283e-06/0.1063, allocations: 0 / 414.4 MB, free: 8.043 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.935e-06/0.1063, allocations: 4 kB / 414.4 MB, free: 8.039 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001029/0.1074, allocations: 0.5915 MB / 415 MB, free: 7.426 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.377e-05/0.1074, allocations: 85.05 kB / 415.1 MB, free: 7.324 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.432e-05/0.1075, allocations: 12 kB / 415.1 MB, free: 7.312 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001033/0.1076, allocations: 19.98 kB / 415.1 MB, free: 7.293 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.704e-05/0.1077, allocations: 11.98 kB / 415.1 MB, free: 7.281 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.118e-05/0.1077, allocations: 23.97 kB / 415.1 MB, free: 7.258 MB / 350.1 MB Notification: Performance of sorting global known variables: time 8.329e-05/0.1078, allocations: 116.1 kB / 415.3 MB, free: 7.145 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1078, allocations: 0 / 415.3 MB, free: 7.145 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003727/0.1082, allocations: 83.98 kB / 415.3 MB, free: 7.062 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.001679/0.1099, allocations: 1.275 MB / 416.6 MB, free: 5.793 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000662/0.1105, allocations: 435.2 kB / 417 MB, free: 5.355 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.385e-06/0.1106, allocations: 0 / 417 MB, free: 5.355 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004098/0.111, allocations: 367.2 kB / 417.4 MB, free: 4.984 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002223/0.1112, allocations: 16 kB / 417.4 MB, free: 4.969 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002844/0.1141, allocations: 2.236 MB / 419.6 MB, free: 2.648 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002523/0.1143, allocations: 0.7083 MB / 420.4 MB, free: 1.914 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.55e-05/0.1144, allocations: 12.64 kB / 420.4 MB, free: 1.902 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.684e-05/0.1145, allocations: 35.42 kB / 420.4 MB, free: 1.867 MB / 350.1 MB Notification: Performance of SimCode: time 6.41e-07/0.1145, allocations: 0 / 420.4 MB, free: 1.867 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.41/1.524, allocations: 4.466 MB / 424.9 MB, free: 49.27 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001924/1.524, allocations: 256 kB / 425.1 MB, free: 49.02 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.033/3.557, allocations: 6.469 kB / 425.1 MB, free: 49.02 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)