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: translateModel(AdvancedNoise.Examples.FaultTrigger,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="AdvancedNoise_AdvancedNoise.Examples.FaultTrigger") translateModel(AdvancedNoise.Examples.FaultTrigger,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="AdvancedNoise_AdvancedNoise.Examples.FaultTrigger") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006127/0.006127, allocations: 100.3 kB / 15.87 MB, free: 5.867 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.001034/0.001034, allocations: 189.3 kB / 16.79 MB, free: 5.809 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.325/1.325, allocations: 222.9 MB / 240.4 MB, free: 4.574 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AdvancedNoise 1.1.0-master/package.mo): time 0.127/0.127, allocations: 3.883 MB / 294.5 MB, free: 3.242 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009957/0.0009958, allocations: 59.91 kB / 355.4 MB, free: 4.086 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.101/0.102, allocations: 50.18 MB / 405.6 MB, free: 1.863 MB / 334.1 MB Notification: Performance of NFInst.instantiate(AdvancedNoise.Examples.FaultTrigger): time 0.001957/0.104, allocations: 0.865 MB / 406.5 MB, free: 0.9922 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007044/0.1047, allocations: 378.8 kB / 406.8 MB, free: 0.6211 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.71e-05/0.1048, allocations: 0 / 406.8 MB, free: 0.6211 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 8.691e-05/0.1049, allocations: 11.92 kB / 406.8 MB, free: 0.6094 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 3.811e-05/0.1049, allocations: 3.938 kB / 406.9 MB, free: 0.6055 MB / 334.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.0003451/0.1053, allocations: 87.78 kB / 406.9 MB, free: 0.5195 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 7.817e-05/0.1054, allocations: 47.86 kB / 407 MB, free: 484 kB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.203e-05/0.1055, allocations: 20.16 kB / 407 MB, free: 460 kB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.966e-05/0.1055, allocations: 23.86 kB / 407 MB, free: 436 kB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.403e-05/0.1056, allocations: 31.84 kB / 407.1 MB, free: 404 kB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.286e-05/0.1056, allocations: 0 / 407.1 MB, free: 404 kB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001423/0.1057, allocations: 87.91 kB / 407.1 MB, free: 316 kB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 1.877e-05/0.1058, allocations: 11.94 kB / 407.2 MB, free: 304 kB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.517e-05/0.1058, allocations: 31.8 kB / 407.2 MB, free: 272 kB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001308/0.1059, allocations: 87.86 kB / 407.3 MB, free: 184 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.206e-06/0.106, allocations: 0 / 407.3 MB, free: 184 kB / 334.1 MB Notification: Performance of FrontEnd: time 1.062e-06/0.106, allocations: 0 / 407.3 MB, free: 184 kB / 334.1 MB Notification: Performance of Transformations before backend: time 3.657e-06/0.106, allocations: 0 / 407.3 MB, free: 184 kB / 334.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.0004791/0.1065, allocations: 385.8 kB / 407.6 MB, free: 15.76 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.124e-05/0.1065, allocations: 12.03 kB / 407.7 MB, free: 15.75 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.148e-05/0.1065, allocations: 12.83 kB / 407.7 MB, free: 15.73 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001469/0.1067, allocations: 176.3 kB / 407.8 MB, free: 15.52 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.144e-05/0.1067, allocations: 8.375 kB / 407.9 MB, free: 15.52 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.184e-05/0.1067, allocations: 8.375 kB / 407.9 MB, free: 15.51 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001676/0.1069, allocations: 74.16 kB / 407.9 MB, free: 15.43 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.658e-06/0.1069, allocations: 3.938 kB / 407.9 MB, free: 15.43 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.157e-05/0.107, allocations: 4 kB / 407.9 MB, free: 15.42 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.118e-06/0.107, allocations: 0 / 407.9 MB, free: 15.42 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001056/0.1071, allocations: 35.97 kB / 408 MB, free: 15.39 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005747/0.1077, allocations: 340.6 kB / 408.3 MB, free: 15 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001554/0.1078, allocations: 50.56 kB / 408.4 MB, free: 14.95 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.892e-05/0.1079, allocations: 20.84 kB / 408.4 MB, free: 14.92 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.538e-06/0.1079, allocations: 0 / 408.4 MB, free: 14.92 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001562/0.1081, allocations: 67.39 kB / 408.4 MB, free: 14.84 MB / 350.1 MB Notification: Performance of pre-optimization done (n=7): time 1.263e-06/0.1081, allocations: 0 / 408.4 MB, free: 14.84 MB / 350.1 MB Notification: Performance of matching and sorting (n=7): time 0.0002591/0.1083, allocations: 105.5 kB / 408.5 MB, free: 14.73 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.5e-05/0.1084, allocations: 55.39 kB / 408.6 MB, free: 14.67 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.461e-05/0.1085, allocations: 140.7 kB / 408.7 MB, free: 14.52 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.523e-05/0.1085, allocations: 25.7 kB / 408.8 MB, free: 14.49 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.963e-05/0.1086, allocations: 103.9 kB / 408.9 MB, free: 14.39 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.518e-05/0.1086, allocations: 19.75 kB / 408.9 MB, free: 14.37 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.764e-05/0.1086, allocations: 33.7 kB / 408.9 MB, free: 14.33 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.375e-05/0.1087, allocations: 318.8 kB / 409.2 MB, free: 14.01 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.19e-05/0.1088, allocations: 23.94 kB / 409.3 MB, free: 13.98 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.145e-05/0.1089, allocations: 73.98 kB / 409.3 MB, free: 13.89 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002714/0.1092, allocations: 117.9 kB / 409.4 MB, free: 13.75 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.013e-06/0.1092, allocations: 0 / 409.4 MB, free: 13.75 MB / 350.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002184/0.1094, allocations: 125.4 kB / 409.6 MB, free: 13.62 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.105e-05/0.1094, allocations: 8 kB / 409.6 MB, free: 13.62 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.248e-06/0.1094, allocations: 0 / 409.6 MB, free: 13.62 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.229e-05/0.1094, allocations: 8.156 kB / 409.6 MB, free: 13.61 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.737e-05/0.1095, allocations: 19.92 kB / 409.6 MB, free: 13.59 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.971e-06/0.1095, allocations: 4 kB / 409.6 MB, free: 13.59 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.137e-05/0.1096, allocations: 23.77 kB / 409.6 MB, free: 13.56 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.14e-05/0.1096, allocations: 8 kB / 409.6 MB, free: 13.55 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.0001159/0.1097, allocations: 121.7 kB / 409.8 MB, free: 13.43 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.089e-05/0.1098, allocations: 11.91 kB / 409.8 MB, free: 13.41 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.764e-05/0.1098, allocations: 20.41 kB / 409.8 MB, free: 13.39 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.206e-06/0.1098, allocations: 3.984 kB / 409.8 MB, free: 13.39 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.797e-06/0.1098, allocations: 0 / 409.8 MB, free: 13.39 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.278e-06/0.1098, allocations: 3.938 kB / 409.8 MB, free: 13.39 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003929/0.1102, allocations: 339 kB / 410.1 MB, free: 13 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.907e-06/0.1102, allocations: 3.984 kB / 410.1 MB, free: 13 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.87e-05/0.1103, allocations: 4 kB / 410.1 MB, free: 12.99 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.663e-06/0.1103, allocations: 3.938 kB / 410.1 MB, free: 12.99 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.266e-05/0.1103, allocations: 7.938 kB / 410.1 MB, free: 12.98 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.754e-06/0.1103, allocations: 4 kB / 410.1 MB, free: 12.98 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.42e-07/0.1103, allocations: 80 / 410.1 MB, free: 12.98 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002466/0.1106, allocations: 199.4 kB / 410.3 MB, free: 12.77 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.018e-05/0.1106, allocations: 88.98 kB / 410.4 MB, free: 12.66 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.831e-05/0.1107, allocations: 3.938 kB / 410.4 MB, free: 12.66 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.124e-05/0.1107, allocations: 7.984 kB / 410.4 MB, free: 12.65 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.737e-05/0.1108, allocations: 4 kB / 410.4 MB, free: 12.64 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.21e-05/0.1108, allocations: 8.062 kB / 410.5 MB, free: 12.64 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.343e-05/0.1109, allocations: 102.2 kB / 410.6 MB, free: 12.54 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1109, allocations: 3.938 kB / 410.6 MB, free: 12.54 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002829/0.1111, allocations: 36.12 kB / 410.6 MB, free: 12.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.0003259/0.1115, allocations: 180.8 kB / 410.8 MB, free: 12.34 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001754/0.1117, allocations: 63.91 kB / 410.8 MB, free: 12.28 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.623e-06/0.1117, allocations: 3.938 kB / 410.8 MB, free: 12.28 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 6.503e-05/0.1117, allocations: 23.98 kB / 410.9 MB, free: 12.25 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000252/0.112, allocations: 10.53 kB / 410.9 MB, free: 12.25 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004117/0.1124, allocations: 226 kB / 411.1 MB, free: 11.99 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002209/0.1127, allocations: 0.6926 MB / 411.8 MB, free: 11.27 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.628e-05/0.1127, allocations: 11.44 kB / 411.8 MB, free: 11.26 MB / 350.1 MB Notification: Performance of SimCode: time 2.5e-07/0.1127, allocations: 3.938 kB / 411.8 MB, free: 11.26 MB / 350.1 MB Notification: Performance of Templates: time 0.00302/0.1157, allocations: 1.679 MB / 413.5 MB, free: 9.574 MB / 350.1 MB make -j1 -f AdvancedNoise_AdvancedNoise.Examples.FaultTrigger.makefile make -j1 -f AdvancedNoise_AdvancedNoise.Examples.FaultTrigger.makefile clang++ -std=c++14 NOTFOUND -Winvalid-pch -O2 -g -DNDEBUG -fPIC -std=c++11 -DBOOST_ALL_DYN_LINK -DUSE_DGESV -DUSE_LOGGER -DOMC_BUILD -DUSE_THREAD -DSUNDIALS_MAJOR_VERSION=5 -DSUNDIALS_MINOR_VERSION=4 -DPMC_USE_SUNDIALS -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/" -I. -I"." -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/include/omc/sundials" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppAdvancedNoise_AdvancedNoise.Examples.FaultTriggerCalcHelperMain.o OMCppAdvancedNoise_AdvancedNoise.Examples.FaultTriggerCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppAdvancedNoise_AdvancedNoise.Examples.FaultTriggerCalcHelperMain.o] Error 1