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.001613/0.001613, allocations: 108 kB / 15.61 MB, free: 152 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.001757/0.001757, allocations: 192.7 kB / 16.53 MB, free: 6.664 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.382/1.382, allocations: 222.9 MB / 240.2 MB, free: 4.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AdvancedNoise 1.1.0-master/package.mo): time 0.1277/0.1277, allocations: 3.891 MB / 294.3 MB, free: 3.23 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00128/0.00128, allocations: 59.91 kB / 355.6 MB, free: 3.5 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09082/0.09212, allocations: 50.18 MB / 405.8 MB, free: 1.273 MB / 334.1 MB Notification: Performance of NFInst.instantiate(AdvancedNoise.Examples.VaryingDistribution): time 0.002735/0.0949, allocations: 1.509 MB / 407.3 MB, free: 15.75 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001964/0.09688, allocations: 1.11 MB / 408.4 MB, free: 14.63 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.444e-05/0.09699, allocations: 0 / 408.4 MB, free: 14.63 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001381/0.09716, allocations: 11.81 kB / 408.4 MB, free: 14.62 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 6.679e-05/0.09723, allocations: 27.84 kB / 408.4 MB, free: 14.59 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.0008029/0.09804, allocations: 239.3 kB / 408.6 MB, free: 14.36 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002162/0.09827, allocations: 171.6 kB / 408.8 MB, free: 14.19 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.169e-05/0.09837, allocations: 9.406 kB / 408.8 MB, free: 14.18 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001092/0.09849, allocations: 59.83 kB / 408.9 MB, free: 14.12 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001016/0.0986, allocations: 55.69 kB / 408.9 MB, free: 14.07 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.758e-05/0.09863, allocations: 12 kB / 408.9 MB, free: 14.05 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003154/0.09896, allocations: 211.7 kB / 409.2 MB, free: 13.85 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.108e-05/0.09901, allocations: 23.92 kB / 409.2 MB, free: 13.82 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.73e-05/0.09908, allocations: 51.73 kB / 409.2 MB, free: 13.77 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003876/0.09948, allocations: 287.3 kB / 409.5 MB, free: 13.49 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.35e-06/0.09949, allocations: 0 / 409.5 MB, free: 13.49 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.282e-06/0.0995, allocations: 0 / 409.5 MB, free: 13.49 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.192e-06/0.09951, allocations: 0 / 409.5 MB, free: 13.49 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.001529/0.101, allocations: 1.321 MB / 410.8 MB, free: 12.11 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.545e-05/0.1011, allocations: 12.03 kB / 410.8 MB, free: 12.1 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.538e-05/0.1011, allocations: 42.75 kB / 410.9 MB, free: 12.05 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003369/0.1015, allocations: 48.69 kB / 410.9 MB, free: 12 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002197/0.1017, allocations: 216.7 kB / 411.1 MB, free: 11.75 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.003e-05/0.1017, allocations: 8.312 kB / 411.2 MB, free: 11.75 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.755e-05/0.1018, allocations: 8.375 kB / 411.2 MB, free: 11.74 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003521/0.1021, allocations: 168.9 kB / 411.3 MB, free: 11.57 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.064e-06/0.1022, allocations: 0 / 411.3 MB, free: 11.57 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.692e-05/0.1022, allocations: 8 kB / 411.3 MB, free: 11.56 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.032e-06/0.1022, allocations: 4 kB / 411.3 MB, free: 11.56 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003577/0.1026, allocations: 135.9 kB / 411.5 MB, free: 11.43 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005816/0.1031, allocations: 360.6 kB / 411.8 MB, free: 11.02 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003978/0.1036, allocations: 214.4 kB / 412 MB, free: 10.8 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002797/0.1039, allocations: 184.8 kB / 412.2 MB, free: 10.62 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.415e-05/0.1039, allocations: 0 / 412.2 MB, free: 10.62 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004057/0.1043, allocations: 304.3 kB / 412.5 MB, free: 10.29 MB / 350.1 MB Notification: Performance of pre-optimization done (n=14): time 1.402e-06/0.1043, allocations: 0 / 412.5 MB, free: 10.29 MB / 350.1 MB Notification: Performance of matching and sorting (n=14): time 0.0009603/0.1053, allocations: 471.1 kB / 413 MB, free: 9.82 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.001e-05/0.1053, allocations: 93.09 kB / 413.1 MB, free: 9.711 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001467/0.1055, allocations: 162.2 kB / 413.2 MB, free: 9.543 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.088e-05/0.1055, allocations: 25.7 kB / 413.2 MB, free: 9.512 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.676e-05/0.1056, allocations: 104.5 kB / 413.3 MB, free: 9.406 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.627e-05/0.1057, allocations: 31.55 kB / 413.4 MB, free: 9.375 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.432e-05/0.1057, allocations: 45.69 kB / 413.4 MB, free: 9.324 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001186/0.1059, allocations: 330.8 kB / 413.7 MB, free: 8.992 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002102/0.1061, allocations: 95.95 kB / 413.8 MB, free: 8.898 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002247/0.1063, allocations: 91.95 kB / 413.9 MB, free: 8.809 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004391/0.1068, allocations: 274.6 kB / 414.2 MB, free: 8.527 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.1068, allocations: 4 kB / 414.2 MB, free: 8.523 MB / 350.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0005569/0.1073, allocations: 295 kB / 414.5 MB, free: 8.223 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.189e-05/0.1074, allocations: 49.69 kB / 414.5 MB, free: 8.168 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.589e-06/0.1074, allocations: 0 / 414.5 MB, free: 8.168 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.353e-05/0.1074, allocations: 4 kB / 414.5 MB, free: 8.164 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001327/0.1076, allocations: 19.98 kB / 414.6 MB, free: 8.145 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.626e-06/0.1076, allocations: 3.984 kB / 414.6 MB, free: 8.141 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.037e-05/0.1077, allocations: 15.91 kB / 414.6 MB, free: 8.125 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.139e-05/0.1077, allocations: 19.97 kB / 414.6 MB, free: 8.105 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.0001544/0.1079, allocations: 187.9 kB / 414.8 MB, free: 7.906 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.671e-05/0.108, allocations: 19.89 kB / 414.8 MB, free: 7.887 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.682e-05/0.108, allocations: 12.84 kB / 414.8 MB, free: 7.871 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.994e-06/0.108, allocations: 4 kB / 414.8 MB, free: 7.867 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.759e-06/0.108, allocations: 0 / 414.8 MB, free: 7.867 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.444e-06/0.108, allocations: 3.938 kB / 414.8 MB, free: 7.863 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001748/0.1082, allocations: 225.4 kB / 415 MB, free: 7.594 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.545e-06/0.1082, allocations: 3.984 kB / 415 MB, free: 7.59 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.887e-05/0.1083, allocations: 15.98 kB / 415.1 MB, free: 7.574 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.753e-06/0.1084, allocations: 0 / 415.1 MB, free: 7.574 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.135e-05/0.1084, allocations: 7.984 kB / 415.1 MB, free: 7.566 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.202e-06/0.1084, allocations: 0 / 415.1 MB, free: 7.566 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.183e-06/0.1084, allocations: 4 kB / 415.1 MB, free: 7.562 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001031/0.1094, allocations: 0.5828 MB / 415.7 MB, free: 6.957 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.648e-05/0.1095, allocations: 85.05 kB / 415.7 MB, free: 6.855 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.732e-05/0.1095, allocations: 19.92 kB / 415.8 MB, free: 6.836 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001002/0.1096, allocations: 16.05 kB / 415.8 MB, free: 6.82 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.39e-05/0.1097, allocations: 4 kB / 415.8 MB, free: 6.816 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.883e-05/0.1098, allocations: 39.83 kB / 415.8 MB, free: 6.777 MB / 350.1 MB Notification: Performance of sorting global known variables: time 8.893e-05/0.1099, allocations: 112.1 kB / 415.9 MB, free: 6.668 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1099, allocations: 0 / 415.9 MB, free: 6.668 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003604/0.1102, allocations: 83.98 kB / 416 MB, free: 6.586 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.001702/0.1119, allocations: 1.278 MB / 417.3 MB, free: 5.312 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006714/0.1126, allocations: 443.2 kB / 417.7 MB, free: 4.867 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.188e-06/0.1126, allocations: 4 kB / 417.7 MB, free: 4.863 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000407/0.1131, allocations: 359.3 kB / 418.1 MB, free: 4.5 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002113/0.1133, allocations: 18.5 kB / 418.1 MB, free: 4.484 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002853/0.1161, allocations: 2.218 MB / 420.3 MB, free: 2.18 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000239/0.1164, allocations: 0.7117 MB / 421 MB, free: 1.441 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.895e-05/0.1165, allocations: 8.656 kB / 421 MB, free: 1.434 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.927e-05/0.1165, allocations: 35.42 kB / 421.1 MB, free: 1.398 MB / 350.1 MB Notification: Performance of SimCode: time 3.1e-07/0.1165, allocations: 0 / 421.1 MB, free: 1.398 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1747/0.2912, allocations: 4.707 MB / 425.8 MB, free: 48.73 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.588/7.88, allocations: 8.953 kB / 425.8 MB, free: 48.72 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 & python3 -m fmpy simulate --output-file AdvancedNoise_AdvancedNoise.Examples.VaryingDistribution_res.csv --start-time 0 --stop-time 10 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.004 AdvancedNoise_AdvancedNoise_Examples_VaryingDistribution.fmu > AdvancedNoise_AdvancedNoise.Examples.VaryingDistribution.pipe 2>&1)