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.005925/0.005925, allocations: 96.7 kB / 15.73 MB, free: 6.484 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.001314/0.001314, allocations: 192.3 kB / 16.67 MB, free: 6.391 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.491/1.491, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AdvancedNoise 1.1.0-master/package.mo): time 0.1501/0.1501, allocations: 3.888 MB / 294.4 MB, free: 3.188 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001873/0.001873, allocations: 59.91 kB / 406.4 MB, free: 0.7109 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2901/0.2919, allocations: 50.18 MB / 456.6 MB, free: 20.43 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AdvancedNoise.Examples.FaultTrigger): time 0.002302/0.2943, allocations: 0.7862 MB / 457.4 MB, free: 19.94 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008077/0.2951, allocations: 358.3 kB / 457.7 MB, free: 19.71 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.922e-05/0.2952, allocations: 3.188 kB / 457.7 MB, free: 19.71 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000111/0.2953, allocations: 11.25 kB / 457.7 MB, free: 19.7 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.986e-05/0.2954, allocations: 15.81 kB / 457.8 MB, free: 19.69 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.0005229/0.2959, allocations: 96.08 kB / 457.9 MB, free: 19.64 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001255/0.2961, allocations: 64.3 kB / 457.9 MB, free: 19.61 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.881e-05/0.2962, allocations: 13.83 kB / 457.9 MB, free: 19.6 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.024e-05/0.2962, allocations: 20.62 kB / 457.9 MB, free: 19.59 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.165e-05/0.2963, allocations: 29.73 kB / 458 MB, free: 19.57 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.753e-05/0.2963, allocations: 3.125 kB / 458 MB, free: 19.57 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001977/0.2965, allocations: 92.14 kB / 458.1 MB, free: 19.55 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.489e-05/0.2965, allocations: 18.03 kB / 458.1 MB, free: 19.54 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.269e-05/0.2966, allocations: 33.16 kB / 458.1 MB, free: 19.51 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002468/0.2969, allocations: 116.4 kB / 458.2 MB, free: 19.47 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.2969, allocations: 0 / 458.2 MB, free: 19.47 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.833e-06/0.2969, allocations: 3.25 kB / 458.2 MB, free: 19.47 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.631e-06/0.2969, allocations: 0 / 458.2 MB, free: 19.47 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.0005301/0.2974, allocations: 393.5 kB / 458.6 MB, free: 19.08 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.435e-05/0.2975, allocations: 9.781 kB / 458.6 MB, free: 19.08 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.341e-05/0.2975, allocations: 38.08 kB / 458.7 MB, free: 19.04 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.994e-05/0.2976, allocations: 4.344 kB / 458.7 MB, free: 19.04 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002162/0.2978, allocations: 196.8 kB / 458.9 MB, free: 18.82 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.614e-05/0.2978, allocations: 3.438 kB / 458.9 MB, free: 18.82 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.629e-05/0.2979, allocations: 7.469 kB / 458.9 MB, free: 18.82 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002048/0.2981, allocations: 73.72 kB / 458.9 MB, free: 18.77 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.231e-05/0.2981, allocations: 3.984 kB / 459 MB, free: 18.77 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.601e-05/0.2981, allocations: 7.094 kB / 459 MB, free: 18.76 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.502e-06/0.2982, allocations: 3.094 kB / 459 MB, free: 18.76 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001369/0.2983, allocations: 34.91 kB / 459 MB, free: 18.75 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007004/0.299, allocations: 336.9 kB / 459.3 MB, free: 18.44 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002016/0.2992, allocations: 52.08 kB / 459.4 MB, free: 18.41 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.917e-05/0.2993, allocations: 21.73 kB / 459.4 MB, free: 18.39 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.048e-05/0.2993, allocations: 0 / 459.4 MB, free: 18.39 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001753/0.2995, allocations: 73.48 kB / 459.5 MB, free: 18.34 MB / 350.1 MB Notification: Performance of pre-optimization done (n=7): time 1.704e-06/0.2995, allocations: 4 kB / 459.5 MB, free: 18.33 MB / 350.1 MB Notification: Performance of matching and sorting (n=7): time 0.0003305/0.2999, allocations: 93.55 kB / 459.6 MB, free: 18.28 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.468e-05/0.2999, allocations: 54.44 kB / 459.6 MB, free: 18.22 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001089/0.3, allocations: 133.8 kB / 459.7 MB, free: 18.11 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.567e-05/0.3001, allocations: 29.7 kB / 459.8 MB, free: 18.07 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.746e-05/0.3001, allocations: 99.84 kB / 459.9 MB, free: 17.98 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.305e-05/0.3001, allocations: 23.12 kB / 459.9 MB, free: 17.96 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.234e-05/0.3002, allocations: 33.33 kB / 459.9 MB, free: 17.93 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.071e-05/0.3003, allocations: 324.6 kB / 460.2 MB, free: 17.61 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.618e-05/0.3004, allocations: 31.06 kB / 460.3 MB, free: 17.6 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001059/0.3005, allocations: 67.19 kB / 460.3 MB, free: 17.54 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003734/0.3009, allocations: 123.2 kB / 460.5 MB, free: 17.44 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/0.3009, allocations: 0 / 460.5 MB, free: 17.44 MB / 350.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002893/0.3012, allocations: 129.1 kB / 460.6 MB, free: 17.37 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.649e-05/0.3012, allocations: 6.062 kB / 460.6 MB, free: 17.37 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.272e-06/0.3013, allocations: 4.156 kB / 460.6 MB, free: 17.37 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.997e-05/0.3013, allocations: 2.969 kB / 460.6 MB, free: 17.37 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001108/0.3014, allocations: 22.55 kB / 460.6 MB, free: 17.36 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.958e-06/0.3014, allocations: 7 kB / 460.6 MB, free: 17.36 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.277e-05/0.3015, allocations: 7.25 kB / 460.6 MB, free: 17.36 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.399e-05/0.3015, allocations: 6.188 kB / 460.6 MB, free: 17.36 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.0001275/0.3017, allocations: 136.3 kB / 460.8 MB, free: 17.22 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.899e-05/0.3017, allocations: 6.906 kB / 460.8 MB, free: 17.22 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.355e-05/0.3017, allocations: 11.19 kB / 460.8 MB, free: 17.21 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.515e-06/0.3017, allocations: 0 / 460.8 MB, free: 17.21 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.304e-06/0.3018, allocations: 3.938 kB / 460.8 MB, free: 17.21 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.101e-06/0.3018, allocations: 7.141 kB / 460.8 MB, free: 17.2 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004662/0.3022, allocations: 354.3 kB / 461.2 MB, free: 16.88 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.174e-06/0.3023, allocations: 0 / 461.2 MB, free: 16.88 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.86e-05/0.3023, allocations: 3 kB / 461.2 MB, free: 16.88 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.928e-06/0.3023, allocations: 2.906 kB / 461.2 MB, free: 16.88 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.53e-05/0.3024, allocations: 11.94 kB / 461.2 MB, free: 16.86 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.326e-06/0.3024, allocations: 3.422 kB / 461.2 MB, free: 16.86 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.3024, allocations: 0 / 461.2 MB, free: 16.86 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002949/0.3027, allocations: 195.1 kB / 461.4 MB, free: 16.71 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.028e-05/0.3027, allocations: 84.19 kB / 461.4 MB, free: 16.61 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.733e-05/0.3028, allocations: 11.12 kB / 461.5 MB, free: 16.6 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001092/0.3029, allocations: 3.234 kB / 461.5 MB, free: 16.6 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.499e-05/0.3029, allocations: 3.25 kB / 461.5 MB, free: 16.6 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.686e-05/0.303, allocations: 10.33 kB / 461.5 MB, free: 16.6 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.433e-05/0.303, allocations: 104.7 kB / 461.6 MB, free: 16.51 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.303, allocations: 0 / 461.6 MB, free: 16.51 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004903/0.3035, allocations: 38.22 kB / 461.6 MB, free: 16.5 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.0008684/0.3044, allocations: 0.8101 MB / 462.4 MB, free: 15.79 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002369/0.3047, allocations: 67.12 kB / 462.5 MB, free: 15.77 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.276e-06/0.3047, allocations: 3.344 kB / 462.5 MB, free: 15.77 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 8.109e-05/0.3048, allocations: 35.23 kB / 462.5 MB, free: 15.75 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003994/0.3052, allocations: 19.86 kB / 462.5 MB, free: 15.74 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001667/0.3069, allocations: 1.539 MB / 464.1 MB, free: 14.36 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001319/0.307, allocations: 0.6973 MB / 464.8 MB, free: 13.66 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.446e-05/0.3071, allocations: 13.81 kB / 464.8 MB, free: 13.66 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.656e-05/0.3071, allocations: 32.78 kB / 464.8 MB, free: 13.63 MB / 350.1 MB Notification: Performance of SimCode: time 4.51e-07/0.3072, allocations: 0 / 464.8 MB, free: 13.63 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03164/0.3388, allocations: 2.699 MB / 467.5 MB, free: 13.11 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.184/8.523, allocations: 5.297 kB / 467.5 MB, free: 13.1 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)