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.001055/0.001055, allocations: 108 kB / 15.63 MB, free: 112 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.001072/0.001072, allocations: 194.4 kB / 16.56 MB, free: 6.656 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.335/1.335, 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.1332/0.1332, allocations: 3.888 MB / 294.3 MB, free: 3.281 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001186/0.001186, allocations: 63.89 kB / 355.6 MB, free: 3.426 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09533/0.09654, allocations: 50.2 MB / 405.8 MB, free: 1.191 MB / 334.1 MB Notification: Performance of NFInst.instantiate(AdvancedNoise.Examples.VaryingDistribution): time 0.00262/0.0992, allocations: 1.501 MB / 407.3 MB, free: 15.68 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001788/0.101, allocations: 1.106 MB / 408.4 MB, free: 14.56 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.529e-05/0.1011, allocations: 3.938 kB / 408.4 MB, free: 14.56 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001149/0.1012, allocations: 19.8 kB / 408.4 MB, free: 14.54 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.405e-05/0.1013, allocations: 11.88 kB / 408.5 MB, free: 14.53 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.0007119/0.102, allocations: 247.2 kB / 408.7 MB, free: 14.29 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001824/0.1022, allocations: 167.7 kB / 408.9 MB, free: 14.12 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.751e-05/0.1023, allocations: 13.39 kB / 408.9 MB, free: 14.11 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.449e-05/0.1024, allocations: 63.75 kB / 408.9 MB, free: 14.04 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.005e-05/0.1025, allocations: 51.77 kB / 409 MB, free: 13.99 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.506e-05/0.1025, allocations: 8 kB / 409 MB, free: 13.98 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003237/0.1029, allocations: 243.6 kB / 409.2 MB, free: 13.75 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.73e-05/0.1029, allocations: 19.92 kB / 409.2 MB, free: 13.73 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.269e-05/0.103, allocations: 55.72 kB / 409.3 MB, free: 13.67 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000328/0.1033, allocations: 287.3 kB / 409.6 MB, free: 13.39 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.887e-06/0.1033, allocations: 0 / 409.6 MB, free: 13.39 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.442e-06/0.1033, allocations: 0 / 409.6 MB, free: 13.39 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.316e-06/0.1034, allocations: 0 / 409.6 MB, free: 13.39 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.001449/0.1048, allocations: 1.325 MB / 410.9 MB, free: 12.01 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.664e-05/0.1049, allocations: 12.03 kB / 410.9 MB, free: 12 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.99e-05/0.1049, allocations: 38.75 kB / 411 MB, free: 11.95 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003935/0.1053, allocations: 48.69 kB / 411 MB, free: 11.9 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002943/0.1056, allocations: 224.6 kB / 411.2 MB, free: 11.64 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.329e-05/0.1056, allocations: 12.31 kB / 411.2 MB, free: 11.63 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.002e-05/0.1057, allocations: 8.375 kB / 411.2 MB, free: 11.62 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003727/0.1061, allocations: 165.7 kB / 411.4 MB, free: 11.46 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.088e-05/0.1061, allocations: 0 / 411.4 MB, free: 11.46 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.776e-05/0.1061, allocations: 4 kB / 411.4 MB, free: 11.45 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.879e-06/0.1061, allocations: 0 / 411.4 MB, free: 11.45 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000327/0.1064, allocations: 143.8 kB / 411.6 MB, free: 11.31 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005757/0.107, allocations: 356.7 kB / 411.9 MB, free: 10.91 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000399/0.1074, allocations: 206.5 kB / 412.1 MB, free: 10.7 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002585/0.1077, allocations: 184.8 kB / 412.3 MB, free: 10.52 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.621e-05/0.1077, allocations: 0 / 412.3 MB, free: 10.52 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004036/0.1082, allocations: 304.2 kB / 412.6 MB, free: 10.19 MB / 350.1 MB Notification: Performance of pre-optimization done (n=14): time 1.754e-06/0.1082, allocations: 0 / 412.6 MB, free: 10.19 MB / 350.1 MB Notification: Performance of matching and sorting (n=14): time 0.000924/0.1091, allocations: 479.2 kB / 413 MB, free: 9.711 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.85e-05/0.1092, allocations: 89.09 kB / 413.1 MB, free: 9.605 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001528/0.1093, allocations: 162.2 kB / 413.3 MB, free: 9.438 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.215e-05/0.1094, allocations: 25.7 kB / 413.3 MB, free: 9.406 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.291e-05/0.1094, allocations: 100.5 kB / 413.4 MB, free: 9.305 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.722e-05/0.1095, allocations: 27.56 kB / 413.4 MB, free: 9.277 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.946e-05/0.1096, allocations: 53.69 kB / 413.5 MB, free: 9.219 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.00012/0.1097, allocations: 326.8 kB / 413.8 MB, free: 8.891 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001983/0.1099, allocations: 91.89 kB / 413.9 MB, free: 8.801 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001857/0.1101, allocations: 93.84 kB / 414 MB, free: 8.711 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004233/0.1105, allocations: 278.4 kB / 414.3 MB, free: 8.426 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.255e-06/0.1106, allocations: 4 kB / 414.3 MB, free: 8.422 MB / 350.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0005314/0.1111, allocations: 291.1 kB / 414.6 MB, free: 8.125 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.503e-05/0.1112, allocations: 49.69 kB / 414.6 MB, free: 8.07 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.983e-06/0.1112, allocations: 0 / 414.6 MB, free: 8.07 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.698e-05/0.1112, allocations: 0 / 414.6 MB, free: 8.07 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001384/0.1113, allocations: 23.98 kB / 414.6 MB, free: 8.047 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.046e-06/0.1114, allocations: 3.984 kB / 414.6 MB, free: 8.043 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001062/0.1115, allocations: 19.91 kB / 414.7 MB, free: 8.023 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5e-05/0.1115, allocations: 19.91 kB / 414.7 MB, free: 8.004 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.0001627/0.1117, allocations: 191.9 kB / 414.9 MB, free: 7.801 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.45e-05/0.1118, allocations: 19.89 kB / 414.9 MB, free: 7.781 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.145e-05/0.1118, allocations: 12.84 kB / 414.9 MB, free: 7.766 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.755e-06/0.1118, allocations: 0 / 414.9 MB, free: 7.766 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.898e-06/0.1118, allocations: 0 / 414.9 MB, free: 7.766 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.855e-06/0.1118, allocations: 64 / 414.9 MB, free: 7.766 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001833/0.112, allocations: 237.3 kB / 415.1 MB, free: 7.484 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.025e-05/0.112, allocations: 3.984 kB / 415.1 MB, free: 7.48 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.582e-05/0.1121, allocations: 19.92 kB / 415.1 MB, free: 7.461 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.505e-06/0.1121, allocations: 0 / 415.1 MB, free: 7.461 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.203e-05/0.1122, allocations: 4 kB / 415.1 MB, free: 7.457 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.543e-06/0.1122, allocations: 0 / 415.1 MB, free: 7.457 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.1122, allocations: 0 / 415.1 MB, free: 7.457 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009985/0.1132, allocations: 0.5917 MB / 415.7 MB, free: 6.844 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.75e-05/0.1133, allocations: 85.05 kB / 415.8 MB, free: 6.742 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.305e-05/0.1133, allocations: 19.92 kB / 415.8 MB, free: 6.723 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.882e-05/0.1134, allocations: 11.98 kB / 415.9 MB, free: 6.711 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.682e-05/0.1135, allocations: 8 kB / 415.9 MB, free: 6.703 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.542e-05/0.1135, allocations: 27.95 kB / 415.9 MB, free: 6.676 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.935e-05/0.1136, allocations: 116.2 kB / 416 MB, free: 6.562 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.1136, allocations: 0 / 416 MB, free: 6.562 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003702/0.114, allocations: 83.98 kB / 416.1 MB, free: 6.48 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.001762/0.1158, allocations: 1.274 MB / 417.4 MB, free: 5.211 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006885/0.1165, allocations: 439.2 kB / 417.8 MB, free: 4.77 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.1165, allocations: 0 / 417.8 MB, free: 4.77 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004081/0.1169, allocations: 363.2 kB / 418.1 MB, free: 4.402 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002071/0.1171, allocations: 20 kB / 418.2 MB, free: 4.383 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002699/0.1198, allocations: 2.218 MB / 420.4 MB, free: 2.078 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002392/0.1201, allocations: 0.7117 MB / 421.1 MB, free: 1.34 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.214e-05/0.1201, allocations: 12.66 kB / 421.1 MB, free: 1.328 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.305e-05/0.1202, allocations: 39.36 kB / 421.1 MB, free: 1.289 MB / 350.1 MB Notification: Performance of SimCode: time 6.42e-07/0.1202, allocations: 0 / 421.1 MB, free: 1.289 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1694/0.2896, allocations: 4.706 MB / 425.8 MB, free: 48.79 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.171/6.46, allocations: 6.922 kB / 425.9 MB, free: 48.79 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)