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.0007803/0.000781, allocations: 98.88 kB / 16.02 MB, free: 76 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.0008937/0.0008937, allocations: 186.5 kB / 16.92 MB, free: 6.77 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.978/1.978, allocations: 205.4 MB / 223.1 MB, free: 5.516 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05841/0.05841, allocations: 10.75 MB / 282.1 MB, free: 10.45 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.0007864/0.0007864, allocations: 20.2 kB / 342.9 MB, free: 23.49 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1557/0.1565, allocations: 50.01 MB / 392.9 MB, free: 5.422 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Redge): time 0.003818/0.1604, allocations: 1.699 MB / 394.6 MB, free: 3.711 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002915/0.1634, allocations: 1.143 MB / 395.7 MB, free: 2.559 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001698/0.1636, allocations: 3.938 kB / 395.7 MB, free: 2.555 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00111/0.1647, allocations: 287.4 kB / 396 MB, free: 2.273 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005531/0.1653, allocations: 187.5 kB / 396.2 MB, free: 2.09 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001087/0.1664, allocations: 259.5 kB / 396.5 MB, free: 1.836 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.000601/0.167, allocations: 355.1 kB / 396.8 MB, free: 1.488 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002014/0.1672, allocations: 44.39 kB / 396.9 MB, free: 1.445 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002651/0.1675, allocations: 127.4 kB / 397 MB, free: 1.32 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002698/0.1677, allocations: 143.4 kB / 397.1 MB, free: 1.18 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.005e-05/0.1678, allocations: 8 kB / 397.1 MB, free: 1.172 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002735/0.1681, allocations: 87.94 kB / 397.2 MB, free: 1.086 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001505/0.1683, allocations: 83.67 kB / 397.3 MB, free: 1.004 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002004/0.1685, allocations: 129 kB / 397.4 MB, free: 0.8711 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004744/0.169, allocations: 283.6 kB / 397.7 MB, free: 0.5938 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.332e-06/0.169, allocations: 0 / 397.7 MB, free: 0.5938 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.144e-06/0.169, allocations: 0 / 397.7 MB, free: 0.5938 MB / 286.1 MB Notification: Performance of Transformations before backend: time 8.105e-06/0.169, allocations: 0 / 397.7 MB, free: 0.5938 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.001377/0.1704, allocations: 0.6264 MB / 398.3 MB, free: 15.91 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.002e-05/0.1705, allocations: 8.031 kB / 398.3 MB, free: 15.9 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001133/0.1706, allocations: 36.47 kB / 398.4 MB, free: 15.86 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006264/0.1712, allocations: 336.3 kB / 398.7 MB, free: 15.5 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.093e-05/0.1713, allocations: 8.125 kB / 398.7 MB, free: 15.49 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.096e-05/0.1713, allocations: 15.98 kB / 398.7 MB, free: 15.47 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004642/0.1718, allocations: 152.1 kB / 398.9 MB, free: 15.31 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.199e-05/0.1718, allocations: 0 / 398.9 MB, free: 15.31 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.968e-05/0.1719, allocations: 15.92 kB / 398.9 MB, free: 15.29 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.173e-06/0.1719, allocations: 0 / 398.9 MB, free: 15.29 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002576/0.1722, allocations: 71.91 kB / 399 MB, free: 15.22 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001013/0.1732, allocations: 0.4923 MB / 399.4 MB, free: 14.68 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006003/0.1738, allocations: 146.6 kB / 399.6 MB, free: 14.53 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002015/0.174, allocations: 60.97 kB / 399.6 MB, free: 14.46 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.875e-05/0.1741, allocations: 4 kB / 399.7 MB, free: 14.46 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003772/0.1745, allocations: 130.3 kB / 399.8 MB, free: 14.32 MB / 302.1 MB Notification: Performance of pre-optimization done (n=18): time 2.053e-06/0.1745, allocations: 0 / 399.8 MB, free: 14.32 MB / 302.1 MB Notification: Performance of matching and sorting (n=18): time 0.000964/0.1755, allocations: 293.1 kB / 400.1 MB, free: 14.03 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001373/0.1756, allocations: 114.8 kB / 400.2 MB, free: 13.89 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008185/0.1764, allocations: 445.5 kB / 400.6 MB, free: 13.45 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.994e-05/0.1765, allocations: 33.7 kB / 400.6 MB, free: 13.41 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001973/0.1767, allocations: 164.4 kB / 400.8 MB, free: 13.24 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.641e-05/0.1768, allocations: 51.44 kB / 400.9 MB, free: 13.19 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.099e-05/0.1769, allocations: 29.7 kB / 400.9 MB, free: 13.16 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002027/0.1771, allocations: 346.7 kB / 401.2 MB, free: 12.81 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001733/0.1773, allocations: 44.22 kB / 401.3 MB, free: 12.77 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002798/0.1775, allocations: 156.4 kB / 401.4 MB, free: 12.57 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004752/0.178, allocations: 192.4 kB / 401.6 MB, free: 12.35 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.168e-06/0.1781, allocations: 0 / 401.6 MB, free: 12.35 MB / 302.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0006087/0.1787, allocations: 229 kB / 401.8 MB, free: 12.12 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.56e-05/0.1787, allocations: 8 kB / 401.8 MB, free: 12.11 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.016e-05/0.1787, allocations: 0 / 401.8 MB, free: 12.11 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.415e-05/0.1788, allocations: 4 kB / 401.8 MB, free: 12.11 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001784/0.179, allocations: 35.92 kB / 401.9 MB, free: 12.07 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.291e-05/0.179, allocations: 4 kB / 401.9 MB, free: 12.07 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000198/0.1792, allocations: 28.08 kB / 401.9 MB, free: 12.04 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.658e-05/0.1792, allocations: 12 kB / 401.9 MB, free: 12.03 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.000365/0.1796, allocations: 184.4 kB / 402.1 MB, free: 11.84 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.823e-05/0.1797, allocations: 31.62 kB / 402.1 MB, free: 11.81 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.909e-05/0.1798, allocations: 31.28 kB / 402.2 MB, free: 11.78 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.362e-06/0.1798, allocations: 4 kB / 402.2 MB, free: 11.77 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.596e-06/0.1798, allocations: 4 kB / 402.2 MB, free: 11.77 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.995e-06/0.1798, allocations: 7.922 kB / 402.2 MB, free: 11.76 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004168/0.1803, allocations: 309.3 kB / 402.5 MB, free: 11.41 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.502e-06/0.1803, allocations: 7.984 kB / 402.5 MB, free: 11.4 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.692e-05/0.1804, allocations: 7.938 kB / 402.5 MB, free: 11.39 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.836e-06/0.1804, allocations: 0 / 402.5 MB, free: 11.39 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.135e-05/0.1804, allocations: 8 kB / 402.5 MB, free: 11.39 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.174e-06/0.1804, allocations: 0 / 402.5 MB, free: 11.39 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.1804, allocations: 0 / 402.5 MB, free: 11.39 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006507/0.1811, allocations: 267.2 kB / 402.8 MB, free: 11.11 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001325/0.1812, allocations: 120.6 kB / 402.9 MB, free: 10.97 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.099e-05/0.1813, allocations: 4 kB / 402.9 MB, free: 10.97 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001412/0.1815, allocations: 11.98 kB / 402.9 MB, free: 10.96 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.44e-05/0.1816, allocations: 23.86 kB / 402.9 MB, free: 10.93 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.049e-05/0.1816, allocations: 4 kB / 402.9 MB, free: 10.93 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0005432/0.1822, allocations: 323.1 kB / 403.2 MB, free: 10.62 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.1822, allocations: 4 kB / 403.2 MB, free: 10.61 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005212/0.1827, allocations: 71.92 kB / 403.3 MB, free: 10.54 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.001302/0.184, allocations: 440.3 kB / 403.7 MB, free: 10.21 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003667/0.1844, allocations: 155.7 kB / 403.9 MB, free: 10.05 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.987e-06/0.1844, allocations: 0.5 kB / 403.9 MB, free: 10.05 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001725/0.1846, allocations: 83.91 kB / 404 MB, free: 9.973 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004657/0.1851, allocations: 73.31 kB / 404.1 MB, free: 9.902 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001047/0.1861, allocations: 0.5988 MB / 404.7 MB, free: 9.27 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004762/0.1866, allocations: 0.7755 MB / 405.4 MB, free: 8.469 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.64e-05/0.1867, allocations: 31.44 kB / 405.5 MB, free: 8.438 MB / 302.1 MB Notification: Performance of SimCode: time 4.51e-07/0.1867, allocations: 4 kB / 405.5 MB, free: 8.434 MB / 302.1 MB Notification: Performance of Templates: time 0.009484/0.1962, allocations: 4.538 MB / 410 MB, free: 3.887 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