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.001151/0.001151, allocations: 103 kB / 15.71 MB, free: 460 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.001199/0.001199, allocations: 174.4 kB / 16.58 MB, free: 6.402 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.507/1.507, allocations: 223.2 MB / 240.6 MB, free: 5.422 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AdvancedNoise 1.1.0-master/package.mo): time 0.1811/0.1811, allocations: 3.882 MB / 295.6 MB, free: 3.969 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004436/0.0004438, allocations: 12 kB / 357.3 MB, free: 3.57 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1157/0.1162, allocations: 51.17 MB / 408.4 MB, free: 372 kB / 334.1 MB Notification: Performance of NFInst.instantiate(AdvancedNoise.Examples.FaultTrigger): time 0.001231/0.1175, allocations: 0.4951 MB / 408.9 MB, free: 15.87 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009136/0.1184, allocations: 370.9 kB / 409.3 MB, free: 15.5 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.68e-05/0.1185, allocations: 0 / 409.3 MB, free: 15.5 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 9.751e-05/0.1186, allocations: 3.938 kB / 409.3 MB, free: 15.5 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 6.516e-05/0.1187, allocations: 11.92 kB / 409.3 MB, free: 15.49 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.0005703/0.1193, allocations: 79.78 kB / 409.4 MB, free: 15.41 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001347/0.1194, allocations: 43.92 kB / 409.4 MB, free: 15.37 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001109/0.1196, allocations: 16.14 kB / 409.4 MB, free: 15.35 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.73e-05/0.1196, allocations: 23.86 kB / 409.5 MB, free: 15.32 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.2e-05/0.1197, allocations: 23.92 kB / 409.5 MB, free: 15.3 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.236e-05/0.1197, allocations: 0 / 409.5 MB, free: 15.3 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001987/0.1199, allocations: 75.86 kB / 409.6 MB, free: 15.23 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.275e-05/0.1199, allocations: 11.98 kB / 409.6 MB, free: 15.21 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.969e-05/0.12, allocations: 37.64 kB / 409.6 MB, free: 15.17 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000206/0.1202, allocations: 79.84 kB / 409.7 MB, free: 15.09 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.889e-06/0.1202, allocations: 0 / 409.7 MB, free: 15.09 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.1202, allocations: 0 / 409.7 MB, free: 15.09 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.238e-06/0.1202, allocations: 0 / 409.7 MB, free: 15.09 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.0006031/0.1208, allocations: 391.3 kB / 410.1 MB, free: 14.66 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.603e-05/0.1209, allocations: 8.031 kB / 410.1 MB, free: 14.66 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.317e-05/0.121, allocations: 7.984 kB / 410.1 MB, free: 14.65 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002363/0.1212, allocations: 186.8 kB / 410.3 MB, free: 14.43 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.029e-05/0.1212, allocations: 0 / 410.3 MB, free: 14.43 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.966e-05/0.1213, allocations: 12 kB / 410.3 MB, free: 14.41 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002089/0.1215, allocations: 69.66 kB / 410.3 MB, free: 14.34 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.015e-06/0.1215, allocations: 0 / 410.3 MB, free: 14.34 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.349e-05/0.1215, allocations: 3.938 kB / 410.4 MB, free: 14.34 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.456e-06/0.1216, allocations: 3.953 kB / 410.4 MB, free: 14.33 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001133/0.1217, allocations: 35.97 kB / 410.4 MB, free: 14.3 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008297/0.1225, allocations: 340.6 kB / 410.7 MB, free: 13.91 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001706/0.1227, allocations: 46.62 kB / 410.8 MB, free: 13.86 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.504e-05/0.1228, allocations: 20.84 kB / 410.8 MB, free: 13.84 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.324e-05/0.1228, allocations: 0 / 410.8 MB, free: 13.84 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002184/0.123, allocations: 71.39 kB / 410.9 MB, free: 13.75 MB / 350.1 MB Notification: Performance of pre-optimization done (n=7): time 1.743e-06/0.123, allocations: 0 / 410.9 MB, free: 13.75 MB / 350.1 MB Notification: Performance of matching and sorting (n=7): time 0.0003166/0.1233, allocations: 101.5 kB / 411 MB, free: 13.65 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.262e-05/0.1234, allocations: 51.41 kB / 411 MB, free: 13.59 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00015/0.1236, allocations: 137.7 kB / 411.1 MB, free: 13.44 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.323e-05/0.1236, allocations: 25.7 kB / 411.2 MB, free: 13.41 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.947e-05/0.1237, allocations: 108 kB / 411.3 MB, free: 13.3 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.388e-05/0.1237, allocations: 19.81 kB / 411.3 MB, free: 13.28 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.27e-06/0.1237, allocations: 0 / 411.3 MB, free: 13.28 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001318/0.1239, allocations: 322.8 kB / 411.6 MB, free: 12.96 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.751e-05/0.1239, allocations: 23.98 kB / 411.6 MB, free: 12.93 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.643e-05/0.1241, allocations: 64.67 kB / 411.7 MB, free: 12.85 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.458e-05/0.1241, allocations: 35.89 kB / 411.7 MB, free: 12.82 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.464e-06/0.1242, allocations: 0 / 411.7 MB, free: 12.82 MB / 350.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002535/0.1244, allocations: 125.4 kB / 411.9 MB, free: 12.69 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.991e-05/0.1244, allocations: 4 kB / 411.9 MB, free: 12.68 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.15e-05/0.1245, allocations: 4 kB / 411.9 MB, free: 12.68 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.54e-05/0.1245, allocations: 4.156 kB / 411.9 MB, free: 12.68 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.048e-05/0.1246, allocations: 23.92 kB / 411.9 MB, free: 12.65 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.868e-06/0.1246, allocations: 4.391 kB / 411.9 MB, free: 12.65 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.333e-05/0.1247, allocations: 15.84 kB / 411.9 MB, free: 12.63 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.217e-05/0.1247, allocations: 4 kB / 411.9 MB, free: 12.63 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 ($whenCondition1,$PRE.faultTrigger.y,$PRE.countFaults.y,countFaults.y,$whenCondition2,faultTrigger.y,faultTrigger.r,globalSeed.seed,globalSeed.id_impure,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003662/0.1251, allocations: 140 kB / 412 MB, free: 12.48 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.904e-05/0.1251, allocations: 7.906 kB / 412.1 MB, free: 12.48 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.378e-05/0.1251, allocations: 8.422 kB / 412.1 MB, free: 12.47 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.701e-06/0.1251, allocations: 7.984 kB / 412.1 MB, free: 12.46 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.152e-06/0.1251, allocations: 0 / 412.1 MB, free: 12.46 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.328e-06/0.1252, allocations: 0 / 412.1 MB, free: 12.46 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006911/0.1259, allocations: 350.5 kB / 412.4 MB, free: 12.06 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.154e-06/0.1259, allocations: 0 / 412.4 MB, free: 12.06 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.174e-05/0.1259, allocations: 11.92 kB / 412.4 MB, free: 12.05 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.386e-06/0.1259, allocations: 0 / 412.4 MB, free: 12.05 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.285e-05/0.126, allocations: 0 / 412.4 MB, free: 12.05 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.914e-06/0.126, allocations: 7.938 kB / 412.4 MB, free: 12.04 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.777e-06/0.126, allocations: 4 kB / 412.4 MB, free: 12.04 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003948/0.1264, allocations: 203.3 kB / 412.6 MB, free: 11.82 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.432e-05/0.1265, allocations: 84.95 kB / 412.7 MB, free: 11.72 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.174e-05/0.1265, allocations: 4.031 kB / 412.7 MB, free: 11.72 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.676e-05/0.1266, allocations: 4 kB / 412.7 MB, free: 11.71 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.536e-05/0.1266, allocations: 7.984 kB / 412.7 MB, free: 11.71 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.679e-05/0.1266, allocations: 8.062 kB / 412.7 MB, free: 11.7 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001796/0.1268, allocations: 95.27 kB / 412.8 MB, free: 11.61 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1268, allocations: 0 / 412.8 MB, free: 11.61 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000361/0.1272, allocations: 40.11 kB / 412.9 MB, free: 11.57 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000452/0.1277, allocations: 185.5 kB / 413.1 MB, free: 11.41 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002044/0.1279, allocations: 64.06 kB / 413.1 MB, free: 11.34 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.455e-06/0.1279, allocations: 0 / 413.1 MB, free: 11.34 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 6.74e-05/0.128, allocations: 24.14 kB / 413.1 MB, free: 11.32 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002833/0.1283, allocations: 11.94 kB / 413.2 MB, free: 11.31 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005383/0.1288, allocations: 231 kB / 413.4 MB, free: 11.05 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000357/0.1292, allocations: 0.6926 MB / 414.1 MB, free: 10.33 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.105e-05/0.1292, allocations: 11.44 kB / 414.1 MB, free: 10.32 MB / 350.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1292, allocations: 0 / 414.1 MB, free: 10.32 MB / 350.1 MB Notification: Performance of Templates: time 0.00411/0.1333, allocations: 1.662 MB / 415.7 MB, free: 8.652 MB / 350.1 MB make -j1 -f AdvancedNoise_AdvancedNoise.Examples.FaultTrigger.makefile make -j1 -f AdvancedNoise_AdvancedNoise.Examples.FaultTrigger.makefile clang++ NOTFOUND -Winvalid-pch -O0 -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/c/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