Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr AdvancedNoise_AdvancedNoise.Examples.FaultTrigger.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.FaultTrigger,fileNamePrefix="AdvancedNoise_AdvancedNoise_Examples_FaultTrigger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AdvancedNoise.Examples.FaultTrigger,fileNamePrefix="AdvancedNoise_AdvancedNoise_Examples_FaultTrigger",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.0007709/0.0007709, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.004961/0.004962, allocations: 169.9 kB / 16.26 MB, free: 6.613 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.272/1.272, allocations: 223.3 MB / 240.3 MB, free: 5.348 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AdvancedNoise 1.1.0-master/package.mo): time 0.1341/0.1341, allocations: 3.89 MB / 295.3 MB, free: 3.844 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003134/0.0003134, allocations: 4 kB / 357.3 MB, free: 3.109 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1016/0.1019, allocations: 51.18 MB / 408.5 MB, free: 15.89 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AdvancedNoise.Examples.FaultTrigger): time 0.0009189/0.1029, allocations: 0.5146 MB / 409 MB, free: 15.37 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007206/0.1036, allocations: 382.7 kB / 409.4 MB, free: 15 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.436e-05/0.1037, allocations: 4 kB / 409.4 MB, free: 14.99 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 7.092e-05/0.1038, allocations: 7.922 kB / 409.4 MB, free: 14.98 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 3.77e-05/0.1038, allocations: 3.938 kB / 409.4 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.0003433/0.1042, allocations: 75.86 kB / 409.5 MB, free: 14.91 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 7.762e-05/0.1043, allocations: 51.89 kB / 409.5 MB, free: 14.86 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.687e-05/0.1044, allocations: 16.17 kB / 409.6 MB, free: 14.84 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.268e-05/0.1044, allocations: 27.86 kB / 409.6 MB, free: 14.81 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.972e-05/0.1044, allocations: 23.91 kB / 409.6 MB, free: 14.79 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.086e-05/0.1045, allocations: 0 / 409.6 MB, free: 14.79 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001475/0.1046, allocations: 87.84 kB / 409.7 MB, free: 14.7 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.52e-05/0.1046, allocations: 7.938 kB / 409.7 MB, free: 14.69 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.735e-05/0.1047, allocations: 57.5 kB / 409.8 MB, free: 14.63 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001734/0.1049, allocations: 107.7 kB / 409.9 MB, free: 14.52 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.835e-06/0.1049, allocations: 0 / 409.9 MB, free: 14.52 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.1049, allocations: 0 / 409.9 MB, free: 14.52 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.476e-06/0.1049, allocations: 0 / 409.9 MB, free: 14.52 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.0004191/0.1053, allocations: 379.6 kB / 410.2 MB, free: 14.11 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.839e-05/0.1054, allocations: 8.031 kB / 410.2 MB, free: 14.1 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.978e-05/0.1054, allocations: 38.75 kB / 410.3 MB, free: 14.05 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.248e-05/0.1054, allocations: 8.844 kB / 410.3 MB, free: 14.04 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001676/0.1056, allocations: 188.2 kB / 410.5 MB, free: 13.82 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.991e-05/0.1056, allocations: 384 / 410.5 MB, free: 13.82 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.676e-05/0.1057, allocations: 8.375 kB / 410.5 MB, free: 13.81 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001722/0.1059, allocations: 77.97 kB / 410.6 MB, free: 13.73 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.742e-06/0.1059, allocations: 3.938 kB / 410.6 MB, free: 13.73 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.166e-05/0.1059, allocations: 4 kB / 410.6 MB, free: 13.72 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.56e-06/0.1059, allocations: 0 / 410.6 MB, free: 13.72 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001034/0.106, allocations: 31.92 kB / 410.6 MB, free: 13.69 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006267/0.1066, allocations: 336.6 kB / 410.9 MB, free: 13.31 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001631/0.1068, allocations: 58.61 kB / 411 MB, free: 13.25 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.809e-05/0.1069, allocations: 20.86 kB / 411 MB, free: 13.22 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.409e-05/0.1069, allocations: 7.938 kB / 411 MB, free: 13.21 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000169/0.1071, allocations: 71.31 kB / 411.1 MB, free: 13.13 MB / 350.1 MB Notification: Performance of pre-optimization done (n=7): time 1.283e-06/0.1071, allocations: 0 / 411.1 MB, free: 13.13 MB / 350.1 MB Notification: Performance of matching and sorting (n=7): time 0.0002767/0.1074, allocations: 93.56 kB / 411.2 MB, free: 13.04 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.876e-05/0.1074, allocations: 51.41 kB / 411.2 MB, free: 12.97 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000126/0.1076, allocations: 144.2 kB / 411.4 MB, free: 12.82 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.961e-05/0.1076, allocations: 37.7 kB / 411.4 MB, free: 12.78 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.468e-05/0.1077, allocations: 95.95 kB / 411.5 MB, free: 12.68 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.788e-05/0.1077, allocations: 19.73 kB / 411.5 MB, free: 12.66 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.648e-05/0.1077, allocations: 21.72 kB / 411.5 MB, free: 12.64 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001247/0.1079, allocations: 318.8 kB / 411.8 MB, free: 12.32 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.208e-05/0.1079, allocations: 23.98 kB / 411.9 MB, free: 12.29 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.639e-05/0.108, allocations: 70 kB / 411.9 MB, free: 12.2 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002832/0.1083, allocations: 113.9 kB / 412 MB, free: 12.07 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.765e-06/0.1083, allocations: 4 kB / 412 MB, free: 12.07 MB / 350.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002375/0.1086, allocations: 133.4 kB / 412.2 MB, free: 11.93 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.55e-05/0.1086, allocations: 4 kB / 412.2 MB, free: 11.93 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.809e-06/0.1086, allocations: 0 / 412.2 MB, free: 11.93 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.499e-05/0.1086, allocations: 4 kB / 412.2 MB, free: 11.92 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.824e-05/0.1087, allocations: 23.92 kB / 412.2 MB, free: 11.9 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.174e-06/0.1087, allocations: 3.938 kB / 412.2 MB, free: 11.89 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.084e-05/0.1088, allocations: 23.78 kB / 412.2 MB, free: 11.87 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.368e-06/0.1088, allocations: 12.16 kB / 412.2 MB, free: 11.86 MB / 350.1 MB Warning: Assuming fixed start value for the following 1 variables: faultTrigger.F:VARIABLE(min = 0.0 max = 1.0 fixed = true ) "The current probability to have failed already" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 13 ($PRE.faultTrigger.y,$whenCondition1,countFaults.y,$PRE.countFaults.y,globalSeed.id_impure,globalSeed.seed,faultTrigger.r,faultTrigger.y,$whenCondition2,one.y,faultTrigger.reset,countFaults.local_set,countFaults.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * 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.0001633/0.109, allocations: 126.9 kB / 412.4 MB, free: 11.73 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.718e-05/0.109, allocations: 11.89 kB / 412.4 MB, free: 11.71 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.812e-05/0.109, allocations: 8.375 kB / 412.4 MB, free: 11.71 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.643e-06/0.1091, allocations: 0 / 412.4 MB, free: 11.71 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.651e-06/0.1091, allocations: 3.938 kB / 412.4 MB, free: 11.7 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.966e-06/0.1091, allocations: 0 / 412.4 MB, free: 11.7 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004041/0.1095, allocations: 358.5 kB / 412.7 MB, free: 11.3 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.873e-06/0.1095, allocations: 0 / 412.7 MB, free: 11.3 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.494e-05/0.1095, allocations: 4 kB / 412.8 MB, free: 11.29 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.719e-06/0.1096, allocations: 4 kB / 412.8 MB, free: 11.29 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.078e-05/0.1096, allocations: 3.938 kB / 412.8 MB, free: 11.29 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.032e-05/0.1096, allocations: 3.984 kB / 412.8 MB, free: 11.28 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.352e-06/0.1096, allocations: 0 / 412.8 MB, free: 11.28 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000248/0.1098, allocations: 199.4 kB / 413 MB, free: 11.07 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.25e-05/0.1099, allocations: 88.94 kB / 413 MB, free: 10.96 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.126e-05/0.1099, allocations: 7.969 kB / 413.1 MB, free: 10.96 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.054e-05/0.11, allocations: 4 kB / 413.1 MB, free: 10.95 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.369e-05/0.1101, allocations: 7.984 kB / 413.1 MB, free: 10.95 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.439e-05/0.1101, allocations: 4 kB / 413.1 MB, free: 10.94 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.904e-05/0.1101, allocations: 99.2 kB / 413.2 MB, free: 10.84 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1101, allocations: 0 / 413.2 MB, free: 10.84 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003146/0.1105, allocations: 36.12 kB / 413.2 MB, free: 10.81 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (faultTrigger.F) * Number of discrete variables: 5 ($whenCondition2,$whenCondition1,faultTrigger.y,faultTrigger.r,countFaults.y) * Number of discrete states: 2 (faultTrigger.y,countFaults.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0007719/0.1112, allocations: 0.8177 MB / 414 MB, free: 9.996 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001917/0.1115, allocations: 72.05 kB / 414.1 MB, free: 9.926 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.986e-06/0.1115, allocations: 0 / 414.1 MB, free: 9.926 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 6.517e-05/0.1115, allocations: 27.92 kB / 414.1 MB, free: 9.898 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002641/0.1118, allocations: 14.38 kB / 414.1 MB, free: 9.887 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001729/0.1135, allocations: 1.551 MB / 415.7 MB, free: 8.219 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003037/0.1139, allocations: 0.6926 MB / 416.4 MB, free: 7.5 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.258e-05/0.1139, allocations: 16.36 kB / 416.4 MB, free: 7.484 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.209e-05/0.114, allocations: 27.42 kB / 416.4 MB, free: 7.457 MB / 350.1 MB Notification: Performance of SimCode: time 3e-07/0.114, allocations: 0 / 416.4 MB, free: 7.457 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01235/0.1264, allocations: 2.411 MB / 418.8 MB, free: 5.148 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001817/0.1266, allocations: 214.8 kB / 419 MB, free: 4.898 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.744/1.87, allocations: 3.938 kB / 419 MB, free: 4.895 MB / 350.1 MB (rm -f AdvancedNoise_AdvancedNoise.Examples.FaultTrigger.pipe ; mkfifo AdvancedNoise_AdvancedNoise.Examples.FaultTrigger.pipe ; head -c 1048576 < AdvancedNoise_AdvancedNoise.Examples.FaultTrigger.pipe >> ../files/AdvancedNoise_AdvancedNoise.Examples.FaultTrigger.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AdvancedNoise_AdvancedNoise_Examples_FaultTrigger_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 AdvancedNoise_AdvancedNoise_Examples_FaultTrigger.fmu > AdvancedNoise_AdvancedNoise.Examples.FaultTrigger.pipe 2>&1)