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.005026/0.005026, allocations: 103 kB / 15.73 MB, free: 6.035 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.001179/0.001179, allocations: 190 kB / 16.67 MB, free: 5.965 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.358/1.358, 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.1562/0.1562, allocations: 3.878 MB / 294.4 MB, free: 3.215 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001364/0.001364, allocations: 63.91 kB / 406.4 MB, free: 0.7148 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2723/0.2737, allocations: 50.18 MB / 456.6 MB, free: 20.41 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AdvancedNoise.Examples.FaultTrigger): time 0.00185/0.2756, allocations: 0.7788 MB / 457.4 MB, free: 19.93 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006633/0.2762, allocations: 370.2 kB / 457.7 MB, free: 19.69 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.211e-05/0.2763, allocations: 0 / 457.7 MB, free: 19.69 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 8.674e-05/0.2764, allocations: 11.06 kB / 457.7 MB, free: 19.68 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.171e-05/0.2765, allocations: 14.92 kB / 457.8 MB, free: 19.67 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.0004144/0.2769, allocations: 93.39 kB / 457.8 MB, free: 19.63 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001017/0.277, allocations: 51.44 kB / 457.9 MB, free: 19.61 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.713e-05/0.2771, allocations: 28.75 kB / 457.9 MB, free: 19.59 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.208e-05/0.2771, allocations: 28.22 kB / 458 MB, free: 19.57 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.856e-05/0.2772, allocations: 23.95 kB / 458 MB, free: 19.56 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.352e-05/0.2772, allocations: 2.938 kB / 458 MB, free: 19.56 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001455/0.2773, allocations: 90.66 kB / 458.1 MB, free: 19.53 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.96e-05/0.2774, allocations: 14.25 kB / 458.1 MB, free: 19.52 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.452e-05/0.2774, allocations: 29.38 kB / 458.1 MB, free: 19.5 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001923/0.2776, allocations: 129.3 kB / 458.2 MB, free: 19.45 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.018e-06/0.2776, allocations: 0 / 458.2 MB, free: 19.45 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.2776, allocations: 4 kB / 458.2 MB, free: 19.45 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.419e-06/0.2776, allocations: 0 / 458.2 MB, free: 19.45 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.0004349/0.2781, allocations: 387.8 kB / 458.6 MB, free: 19.06 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.364e-05/0.2781, allocations: 9.5 kB / 458.6 MB, free: 19.06 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.601e-05/0.2782, allocations: 33.75 kB / 458.7 MB, free: 19.02 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.666e-05/0.2782, allocations: 11.16 kB / 458.7 MB, free: 19.02 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001992/0.2784, allocations: 185.4 kB / 458.9 MB, free: 18.81 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.712e-05/0.2784, allocations: 3.719 kB / 458.9 MB, free: 18.81 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.714e-05/0.2785, allocations: 7.625 kB / 458.9 MB, free: 18.8 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001869/0.2787, allocations: 85.23 kB / 458.9 MB, free: 18.75 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.171e-05/0.2787, allocations: 0 / 458.9 MB, free: 18.75 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.237e-05/0.2787, allocations: 0 / 458.9 MB, free: 18.75 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.264e-06/0.2787, allocations: 3 kB / 458.9 MB, free: 18.75 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001107/0.2788, allocations: 33.39 kB / 459 MB, free: 18.74 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006737/0.2795, allocations: 340.2 kB / 459.3 MB, free: 18.43 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001687/0.2797, allocations: 51.5 kB / 459.4 MB, free: 18.4 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.109e-05/0.2798, allocations: 21.95 kB / 459.4 MB, free: 18.38 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.434e-05/0.2798, allocations: 3.125 kB / 459.4 MB, free: 18.38 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001553/0.2799, allocations: 70.03 kB / 459.5 MB, free: 18.32 MB / 350.1 MB Notification: Performance of pre-optimization done (n=7): time 1.442e-06/0.28, allocations: 0 / 459.5 MB, free: 18.32 MB / 350.1 MB Notification: Performance of matching and sorting (n=7): time 0.0002894/0.2802, allocations: 95.52 kB / 459.5 MB, free: 18.27 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.462e-05/0.2803, allocations: 56.06 kB / 459.6 MB, free: 18.21 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001138/0.2804, allocations: 137 kB / 459.7 MB, free: 18.09 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.82e-05/0.2804, allocations: 29.3 kB / 459.8 MB, free: 18.06 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.324e-05/0.2805, allocations: 106.1 kB / 459.9 MB, free: 17.96 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.885e-05/0.2805, allocations: 15.94 kB / 459.9 MB, free: 17.95 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.085e-05/0.2806, allocations: 39.73 kB / 459.9 MB, free: 17.92 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.899e-05/0.2807, allocations: 318.3 kB / 460.2 MB, free: 17.6 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.031e-05/0.2807, allocations: 23.28 kB / 460.3 MB, free: 17.59 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.928e-05/0.2808, allocations: 74.45 kB / 460.3 MB, free: 17.52 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002653/0.2811, allocations: 115.1 kB / 460.4 MB, free: 17.44 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.974e-06/0.2811, allocations: 0 / 460.4 MB, free: 17.44 MB / 350.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001946/0.2813, allocations: 129.8 kB / 460.6 MB, free: 17.37 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.23e-05/0.2813, allocations: 6.125 kB / 460.6 MB, free: 17.37 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.911e-06/0.2813, allocations: 3.281 kB / 460.6 MB, free: 17.37 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.295e-05/0.2813, allocations: 2.844 kB / 460.6 MB, free: 17.37 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.402e-05/0.2814, allocations: 21.73 kB / 460.6 MB, free: 17.36 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.174e-06/0.2814, allocations: 12.11 kB / 460.6 MB, free: 17.35 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.983e-05/0.2815, allocations: 14.09 kB / 460.6 MB, free: 17.34 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.046e-05/0.2815, allocations: 11.14 kB / 460.6 MB, free: 17.34 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 9.958e-05/0.2816, allocations: 130.2 kB / 460.8 MB, free: 17.21 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.404e-05/0.2816, allocations: 7.031 kB / 460.8 MB, free: 17.21 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.6e-05/0.2817, allocations: 14.83 kB / 460.8 MB, free: 17.2 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.473e-06/0.2817, allocations: 0 / 460.8 MB, free: 17.2 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.757e-06/0.2817, allocations: 7.938 kB / 460.8 MB, free: 17.19 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.705e-06/0.2817, allocations: 0 / 460.8 MB, free: 17.19 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003323/0.282, allocations: 350.5 kB / 461.1 MB, free: 16.87 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.413e-06/0.282, allocations: 0 / 461.1 MB, free: 16.87 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.51e-05/0.2821, allocations: 3.25 kB / 461.1 MB, free: 16.87 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.807e-06/0.2821, allocations: 3.156 kB / 461.1 MB, free: 16.87 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.015e-05/0.2821, allocations: 7.875 kB / 461.2 MB, free: 16.86 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.343e-06/0.2821, allocations: 0 / 461.2 MB, free: 16.86 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.272e-06/0.2821, allocations: 2.906 kB / 461.2 MB, free: 16.86 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002071/0.2823, allocations: 204.7 kB / 461.4 MB, free: 16.7 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.129e-05/0.2824, allocations: 83.98 kB / 461.4 MB, free: 16.6 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.782e-05/0.2824, allocations: 7.938 kB / 461.4 MB, free: 16.59 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.034e-05/0.2825, allocations: 6.578 kB / 461.5 MB, free: 16.59 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.675e-05/0.2825, allocations: 4 kB / 461.5 MB, free: 16.59 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.12e-05/0.2825, allocations: 9.031 kB / 461.5 MB, free: 16.59 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.597e-05/0.2826, allocations: 96.03 kB / 461.6 MB, free: 16.51 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2826, allocations: 4.062 kB / 461.6 MB, free: 16.5 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002765/0.2829, allocations: 35.84 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.0006239/0.2835, allocations: 0.8194 MB / 462.4 MB, free: 15.77 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001793/0.2837, allocations: 64.42 kB / 462.5 MB, free: 15.75 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.824e-06/0.2837, allocations: 0 / 462.5 MB, free: 15.75 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 6.091e-05/0.2837, allocations: 23.7 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.0002634/0.284, allocations: 16.94 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.001243/0.2853, allocations: 1.557 MB / 464.1 MB, free: 14.34 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001106/0.2854, allocations: 0.6965 MB / 464.8 MB, free: 13.64 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.576e-05/0.2854, allocations: 10.16 kB / 464.8 MB, free: 13.64 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.726e-05/0.2855, allocations: 28.48 kB / 464.8 MB, free: 13.62 MB / 350.1 MB Notification: Performance of SimCode: time 2.1e-07/0.2855, allocations: 0 / 464.8 MB, free: 13.62 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01982/0.3053, allocations: 2.739 MB / 467.5 MB, free: 13.09 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.678/7.983, allocations: 4 kB / 467.6 MB, free: 13.09 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)