Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_On.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_On,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_On") translateModel(IndustrialControlSystems.Logical.Timers.Examples.testT_On,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_On") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001018/0.001018, 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.001778/0.001779, allocations: 194.3 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.681/1.681, allocations: 205.1 MB / 222.6 MB, free: 4.727 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05628/0.05628, allocations: 10.74 MB / 280.7 MB, free: 10.69 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.001443/0.001443, allocations: 63.91 kB / 340.5 MB, free: 23.79 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1171/0.1186, allocations: 49.03 MB / 389.5 MB, free: 6.699 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Timers.Examples.testT_On): time 0.004439/0.1231, allocations: 2.037 MB / 391.6 MB, free: 4.645 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002344/0.1255, allocations: 1.17 MB / 392.7 MB, free: 3.465 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002336/0.1257, allocations: 4 kB / 392.7 MB, free: 3.461 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001051/0.1268, allocations: 259.4 kB / 393 MB, free: 3.207 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005786/0.1274, allocations: 183.5 kB / 393.2 MB, free: 3.027 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008609/0.1283, allocations: 255.6 kB / 393.4 MB, free: 2.777 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004922/0.1288, allocations: 339.1 kB / 393.8 MB, free: 2.445 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001568/0.1289, allocations: 52.36 kB / 393.8 MB, free: 2.395 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001751/0.1291, allocations: 119.5 kB / 393.9 MB, free: 2.277 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001747/0.1293, allocations: 135.4 kB / 394.1 MB, free: 2.145 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.315e-05/0.1293, allocations: 8 kB / 394.1 MB, free: 2.137 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002366/0.1296, allocations: 87.88 kB / 394.1 MB, free: 2.051 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001014/0.1297, allocations: 71.75 kB / 394.2 MB, free: 1.98 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001245/0.1298, allocations: 115.3 kB / 394.3 MB, free: 1.867 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003293/0.1302, allocations: 263.6 kB / 394.6 MB, free: 1.609 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.18e-06/0.1302, allocations: 0 / 394.6 MB, free: 1.609 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.132e-06/0.1302, allocations: 4 kB / 394.6 MB, free: 1.605 MB / 286.1 MB Notification: Performance of Transformations before backend: time 8.797e-06/0.1302, allocations: 0 / 394.6 MB, free: 1.605 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.001109/0.1313, allocations: 0.6453 MB / 395.2 MB, free: 0.9023 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.745e-05/0.1314, allocations: 8.031 kB / 395.2 MB, free: 0.8945 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.002e-05/0.1315, allocations: 36.56 kB / 395.3 MB, free: 0.8594 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000455/0.1319, allocations: 324.2 kB / 395.6 MB, free: 0.5039 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.329e-05/0.132, allocations: 12.12 kB / 395.6 MB, free: 0.4922 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.395e-05/0.132, allocations: 8 kB / 395.6 MB, free: 496 kB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003402/0.1323, allocations: 148.2 kB / 395.8 MB, free: 332 kB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.355e-05/0.1324, allocations: 3.938 kB / 395.8 MB, free: 328 kB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.261e-05/0.1324, allocations: 8 kB / 395.8 MB, free: 320 kB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.42e-06/0.1324, allocations: 4 kB / 395.8 MB, free: 316 kB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001774/0.1326, allocations: 71.89 kB / 395.8 MB, free: 244 kB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007637/0.1334, allocations: 480.1 kB / 396.3 MB, free: 15.72 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003542/0.1337, allocations: 138.8 kB / 396.4 MB, free: 15.57 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001412/0.1339, allocations: 52.83 kB / 396.5 MB, free: 15.52 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.249e-05/0.1339, allocations: 4 kB / 396.5 MB, free: 15.52 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002756/0.1342, allocations: 135.2 kB / 396.6 MB, free: 15.37 MB / 302.1 MB Notification: Performance of pre-optimization done (n=17): time 1.563e-06/0.1342, allocations: 0 / 396.6 MB, free: 15.37 MB / 302.1 MB Notification: Performance of matching and sorting (n=17): time 0.0006381/0.1349, allocations: 261.2 kB / 396.9 MB, free: 15.11 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.832e-05/0.135, allocations: 106.8 kB / 397 MB, free: 14.98 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004448/0.1354, allocations: 388.4 kB / 397.4 MB, free: 14.59 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.368e-05/0.1354, allocations: 29.7 kB / 397.4 MB, free: 14.55 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001231/0.1356, allocations: 156.4 kB / 397.6 MB, free: 14.39 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.873e-05/0.1356, allocations: 51.38 kB / 397.6 MB, free: 14.34 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.923e-05/0.1357, allocations: 45.7 kB / 397.7 MB, free: 14.29 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001618/0.1359, allocations: 350.7 kB / 398 MB, free: 13.94 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001262/0.136, allocations: 43.98 kB / 398 MB, free: 13.9 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001843/0.1362, allocations: 152.5 kB / 398.2 MB, free: 13.71 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003266/0.1365, allocations: 180.4 kB / 398.4 MB, free: 13.5 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.889e-06/0.1366, allocations: 0 / 398.4 MB, free: 13.5 MB / 302.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.000388/0.137, allocations: 233.1 kB / 398.6 MB, free: 13.27 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.927e-05/0.137, allocations: 4 kB / 398.6 MB, free: 13.26 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.023e-06/0.137, allocations: 4 kB / 398.6 MB, free: 13.26 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.829e-05/0.137, allocations: 4 kB / 398.6 MB, free: 13.25 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001313/0.1372, allocations: 35.92 kB / 398.6 MB, free: 13.22 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.434e-06/0.1372, allocations: 0 / 398.6 MB, free: 13.22 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001246/0.1373, allocations: 23.83 kB / 398.7 MB, free: 13.2 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.801e-05/0.1373, allocations: 20.12 kB / 398.7 MB, free: 13.18 MB / 302.1 MB Warning: Assuming fixed start value for the following 3 variables: timer.Q:DISCRETE(flow=false fixed = true ) "status of the timer" type: Boolean timer.run:DISCRETE(fixed = true ) "Flag: true while the timer is counting" 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: 22 ($PRE.timer.Sd,timer.startTime,$PRE.timer.startTime,$PRE.timer.Q,timer.Q,$PRE.timer.run,timer.run,$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,timer.Sd) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 26 * 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.0002201/0.1376, allocations: 168 kB / 398.8 MB, free: 13 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.401e-05/0.1376, allocations: 27.67 kB / 398.9 MB, free: 12.98 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.735e-05/0.1377, allocations: 39.06 kB / 398.9 MB, free: 12.94 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.563e-06/0.1377, allocations: 4 kB / 398.9 MB, free: 12.93 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.141e-06/0.1377, allocations: 0 / 398.9 MB, free: 12.93 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.729e-06/0.1377, allocations: 3.984 kB / 398.9 MB, free: 12.93 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002854/0.138, allocations: 297.3 kB / 399.2 MB, free: 12.59 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.905e-06/0.138, allocations: 4 kB / 399.2 MB, free: 12.59 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.464e-05/0.1381, allocations: 8 kB / 399.2 MB, free: 12.58 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.164e-06/0.1381, allocations: 0 / 399.2 MB, free: 12.58 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.431e-05/0.1381, allocations: 4 kB / 399.2 MB, free: 12.57 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.046e-06/0.1381, allocations: 3.938 kB / 399.2 MB, free: 12.57 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.1381, allocations: 0 / 399.2 MB, free: 12.57 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004113/0.1385, allocations: 249.2 kB / 399.5 MB, free: 12.31 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.823e-05/0.1386, allocations: 104.8 kB / 399.6 MB, free: 12.19 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.69e-05/0.1387, allocations: 8 kB / 399.6 MB, free: 12.18 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.941e-05/0.1388, allocations: 11.98 kB / 399.6 MB, free: 12.17 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.824e-05/0.1388, allocations: 11.98 kB / 399.6 MB, free: 12.16 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.301e-05/0.1389, allocations: 8 kB / 399.6 MB, free: 12.15 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002887/0.1392, allocations: 283 kB / 399.9 MB, free: 11.88 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1392, allocations: 0 / 399.9 MB, free: 11.88 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003324/0.1395, allocations: 63.84 kB / 400 MB, free: 11.81 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: 13 ($whenCondition3,$whenCondition2,$whenCondition1,timer.Q,timer.tr,timer.run,timer.startTime,timer.Sd,SetSignal.combiTimeTable.nextTimeEvent,SetSignal.combiTimeTable.nextTimeEventScaled,ResetSignal.y,ResetSignal.combiTimeTable.nextTimeEvent,ResetSignal.combiTimeTable.nextTimeEventScaled) * Number of discrete states: 6 (timer.Sd,timer.startTime,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 (16): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 7 * 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.001034/0.1406, allocations: 463.3 kB / 400.4 MB, free: 11.46 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003482/0.1409, allocations: 143.8 kB / 400.5 MB, free: 11.32 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/0.1409, allocations: 0 / 400.5 MB, free: 11.32 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001483/0.1411, allocations: 67.97 kB / 400.6 MB, free: 11.25 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004286/0.1415, allocations: 73.53 kB / 400.7 MB, free: 11.18 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008307/0.1424, allocations: 0.5466 MB / 401.2 MB, free: 10.6 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003229/0.1427, allocations: 0.7599 MB / 402 MB, free: 9.809 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.818e-05/0.1428, allocations: 35.42 kB / 402 MB, free: 9.773 MB / 302.1 MB Notification: Performance of SimCode: time 4.21e-07/0.1428, allocations: 0 / 402 MB, free: 9.773 MB / 302.1 MB Notification: Performance of Templates: time 0.00699/0.1498, allocations: 4.306 MB / 406.3 MB, free: 5.461 MB / 302.1 MB make -j1 -f IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_On.makefile make -j1 -f IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_On.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_OnCalcHelperMain.o OMCppIndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OnCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppIndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OnCalcHelperMain.o] Error 1