Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Redge.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo", uses=false) Using package IndustrialControlSystems with version 1.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Redge,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Redge") translateModel(IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Redge,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Redge") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001142/0.001142, allocations: 96.14 kB / 15.87 MB, free: 16 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.001345/0.001345, allocations: 193.9 kB / 16.79 MB, free: 6.812 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.692/1.692, allocations: 205.1 MB / 222.6 MB, free: 4.781 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.06108/0.06108, allocations: 10.75 MB / 280.7 MB, free: 10.74 MB / 238.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001294/0.001294, allocations: 63.91 kB / 340.5 MB, free: 23.8 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1048/0.1061, allocations: 49.03 MB / 389.5 MB, free: 6.703 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Redge): time 0.003599/0.1098, allocations: 2.045 MB / 391.6 MB, free: 4.645 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001765/0.1115, allocations: 1.166 MB / 392.7 MB, free: 3.469 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000101/0.1117, allocations: 7.938 kB / 392.8 MB, free: 3.461 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007737/0.1124, allocations: 283.4 kB / 393 MB, free: 3.184 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003559/0.1128, allocations: 191.4 kB / 393.2 MB, free: 2.996 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005953/0.1134, allocations: 255.6 kB / 393.5 MB, free: 2.746 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003418/0.1138, allocations: 363 kB / 393.8 MB, free: 2.391 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001303/0.1139, allocations: 40.38 kB / 393.9 MB, free: 2.352 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001577/0.1141, allocations: 127.4 kB / 394 MB, free: 2.227 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001784/0.1143, allocations: 155.3 kB / 394.1 MB, free: 2.074 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.18e-05/0.1143, allocations: 8 kB / 394.1 MB, free: 2.066 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001798/0.1145, allocations: 91.94 kB / 394.2 MB, free: 1.977 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001121/0.1146, allocations: 87.61 kB / 394.3 MB, free: 1.891 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001237/0.1147, allocations: 115.3 kB / 394.4 MB, free: 1.777 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003229/0.1151, allocations: 283.7 kB / 394.7 MB, free: 1.5 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.988e-06/0.1151, allocations: 0 / 394.7 MB, free: 1.5 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.192e-06/0.1151, allocations: 0 / 394.7 MB, free: 1.5 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.31e-06/0.1151, allocations: 0 / 394.7 MB, free: 1.5 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 23 * Number of variables: 23 Notification: Performance of Generate backend data structure: time 0.001033/0.1161, allocations: 0.6729 MB / 395.4 MB, free: 0.7656 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.062e-05/0.1162, allocations: 16.03 kB / 395.4 MB, free: 0.75 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.257e-05/0.1163, allocations: 32.56 kB / 395.4 MB, free: 0.7188 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004223/0.1167, allocations: 328.3 kB / 395.8 MB, free: 368 kB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.027e-05/0.1167, allocations: 16.12 kB / 395.8 MB, free: 352 kB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.507e-05/0.1168, allocations: 8 kB / 395.8 MB, free: 344 kB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003108/0.1171, allocations: 156.1 kB / 395.9 MB, free: 172 kB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.496e-06/0.1171, allocations: 0 / 395.9 MB, free: 172 kB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.966e-05/0.1171, allocations: 3.984 kB / 395.9 MB, free: 168 kB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.891e-06/0.1171, allocations: 8 kB / 395.9 MB, free: 160 kB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001814/0.1173, allocations: 71.91 kB / 396 MB, free: 88 kB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007122/0.118, allocations: 496.1 kB / 396.5 MB, free: 15.55 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004036/0.1185, allocations: 142.6 kB / 396.6 MB, free: 15.4 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001367/0.1186, allocations: 60.97 kB / 396.7 MB, free: 15.34 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.454e-05/0.1186, allocations: 4 kB / 396.7 MB, free: 15.34 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002564/0.1189, allocations: 134.2 kB / 396.8 MB, free: 15.2 MB / 302.1 MB Notification: Performance of pre-optimization done (n=18): time 3.206e-06/0.1189, allocations: 0 / 396.8 MB, free: 15.2 MB / 302.1 MB Notification: Performance of matching and sorting (n=18): time 0.0006168/0.1195, allocations: 297 kB / 397.1 MB, free: 14.9 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.867e-05/0.1196, allocations: 110.8 kB / 397.2 MB, free: 14.77 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004744/0.1201, allocations: 445.6 kB / 397.7 MB, free: 14.32 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.547e-05/0.1201, allocations: 33.7 kB / 397.7 MB, free: 14.28 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001302/0.1203, allocations: 164.4 kB / 397.9 MB, free: 14.11 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.108e-05/0.1203, allocations: 47.45 kB / 397.9 MB, free: 14.07 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.527e-05/0.1204, allocations: 41.7 kB / 397.9 MB, free: 14.02 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001524/0.1206, allocations: 354.7 kB / 398.3 MB, free: 13.66 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001125/0.1207, allocations: 48.2 kB / 398.3 MB, free: 13.62 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000184/0.1209, allocations: 148.5 kB / 398.5 MB, free: 13.43 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003155/0.1212, allocations: 192.4 kB / 398.7 MB, free: 13.21 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.865e-06/0.1212, allocations: 0 / 398.7 MB, free: 13.21 MB / 302.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0003842/0.1216, allocations: 233 kB / 398.9 MB, free: 12.98 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.502e-05/0.1216, allocations: 4 kB / 398.9 MB, free: 12.97 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.025e-06/0.1216, allocations: 4 kB / 398.9 MB, free: 12.97 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.656e-05/0.1216, allocations: 7.984 kB / 398.9 MB, free: 12.96 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001037/0.1218, allocations: 28.05 kB / 398.9 MB, free: 12.93 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.628e-06/0.1218, allocations: 8 kB / 398.9 MB, free: 12.93 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001147/0.1219, allocations: 24.09 kB / 399 MB, free: 12.9 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.591e-05/0.1219, allocations: 19.94 kB / 399 MB, free: 12.88 MB / 302.1 MB Warning: Assuming fixed start value for the following 3 variables: timer.Sd:DISCRETE(fixed = true ) type: Boolean timer.Q:DISCRETE(flow=false fixed = true ) "status of the timer" type: Boolean timer.tr:DISCRETE(flow=false fixed = true ) "residual time" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 23 ($PRE.timer.Sd,timer.Sd,timer.run,$PRE.timer.run,timer.startTime,$PRE.timer.startTime,$PRE.timer.Q,timer.Q,$PRE.timer.tr,timer.tr,$PRE.ResetSignal.combiTimeTable.nextTimeEvent,$whenCondition3,$PRE.SetSignal.combiTimeTable.nextTimeEvent,$whenCondition2,$whenCondition1,ResetSignal.combiTimeTable.nextTimeEventScaled,$PRE.ResetSignal.combiTimeTable.nextTimeEventScaled,ResetSignal.combiTimeTable.nextTimeEvent,ResetSignal.y,SetSignal.combiTimeTable.nextTimeEventScaled,$PRE.SetSignal.combiTimeTable.nextTimeEventScaled,SetSignal.combiTimeTable.nextTimeEvent,SetSignal.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (27): * Single equations (assignments): 27 * 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.0002235/0.1222, allocations: 176.4 kB / 399.2 MB, free: 12.7 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.776e-05/0.1222, allocations: 35.61 kB / 399.2 MB, free: 12.67 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.857e-05/0.1223, allocations: 39.27 kB / 399.2 MB, free: 12.62 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.787e-06/0.1223, allocations: 4 kB / 399.2 MB, free: 12.62 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.606e-06/0.1223, allocations: 4 kB / 399.2 MB, free: 12.62 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.019e-06/0.1223, allocations: 0 / 399.2 MB, free: 12.62 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002651/0.1226, allocations: 317.2 kB / 399.6 MB, free: 12.26 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.373e-06/0.1226, allocations: 0 / 399.6 MB, free: 12.26 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.174e-05/0.1226, allocations: 4 kB / 399.6 MB, free: 12.25 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.196e-06/0.1226, allocations: 4 kB / 399.6 MB, free: 12.25 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.557e-05/0.1227, allocations: 3.984 kB / 399.6 MB, free: 12.25 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.503e-06/0.1227, allocations: 0 / 399.6 MB, free: 12.25 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.42e-07/0.1227, allocations: 4 kB / 399.6 MB, free: 12.24 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004356/0.1231, allocations: 267.2 kB / 399.8 MB, free: 11.96 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.63e-05/0.1232, allocations: 108.7 kB / 399.9 MB, free: 11.84 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.775e-05/0.1233, allocations: 7.984 kB / 399.9 MB, free: 11.83 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.807e-05/0.1234, allocations: 11.94 kB / 400 MB, free: 11.82 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.75e-05/0.1234, allocations: 19.91 kB / 400 MB, free: 11.8 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.257e-05/0.1235, allocations: 12 kB / 400 MB, free: 11.79 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003312/0.1238, allocations: 323.1 kB / 400.3 MB, free: 11.48 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1238, allocations: 0 / 400.3 MB, free: 11.48 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003324/0.1241, allocations: 71.92 kB / 400.4 MB, free: 11.41 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 14 ($whenCondition3,$whenCondition2,$whenCondition1,timer.Q,timer.tr,timer.run,timer.startTime,timer.Sd,SetSignal.y,SetSignal.combiTimeTable.nextTimeEvent,SetSignal.combiTimeTable.nextTimeEventScaled,ResetSignal.y,ResetSignal.combiTimeTable.nextTimeEvent,ResetSignal.combiTimeTable.nextTimeEventScaled) * Number of discrete states: 6 (timer.Sd,timer.run,ResetSignal.combiTimeTable.nextTimeEventScaled,SetSignal.combiTimeTable.nextTimeEventScaled,SetSignal.combiTimeTable.nextTimeEvent,ResetSignal.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (17): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 8 * 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.0009775/0.1251, allocations: 431.2 kB / 400.8 MB, free: 11.09 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.00035/0.1255, allocations: 159.8 kB / 400.9 MB, free: 10.93 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.1255, allocations: 0 / 400.9 MB, free: 10.93 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001549/0.1257, allocations: 80.41 kB / 401 MB, free: 10.85 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004045/0.1261, allocations: 73.45 kB / 401.1 MB, free: 10.78 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008522/0.1269, allocations: 0.5975 MB / 401.7 MB, free: 10.15 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003633/0.1273, allocations: 0.7794 MB / 402.5 MB, free: 9.348 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.323e-05/0.1274, allocations: 31.42 kB / 402.5 MB, free: 9.316 MB / 302.1 MB Notification: Performance of SimCode: time 2.1e-07/0.1274, allocations: 0 / 402.5 MB, free: 9.316 MB / 302.1 MB Notification: Performance of Templates: time 0.006744/0.1341, allocations: 4.583 MB / 407.1 MB, free: 4.734 MB / 302.1 MB make -j1 -f IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Redge.makefile make -j1 -f IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Redge.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 OMCppIndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_RedgeCalcHelperMain.o OMCppIndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_RedgeCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppIndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_RedgeCalcHelperMain.o] Error 1