Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Fedge.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_Fedge,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Fedge") translateModel(IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Fedge,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Fedge") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001004/0.001004, allocations: 99.5 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.001256/0.001257, allocations: 182 kB / 16.92 MB, free: 6.891 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.002/2.002, allocations: 205.4 MB / 223.1 MB, free: 5.539 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05652/0.05652, allocations: 10.76 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.0006138/0.0006138, allocations: 16.2 kB / 342.9 MB, free: 23.49 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.139/0.1396, allocations: 50 MB / 392.9 MB, free: 5.43 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Fedge): time 0.002561/0.1422, allocations: 1.691 MB / 394.6 MB, free: 3.727 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002372/0.1446, allocations: 1.151 MB / 395.7 MB, free: 2.566 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001484/0.1448, allocations: 4 kB / 395.7 MB, free: 2.562 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009419/0.1457, allocations: 287.3 kB / 396 MB, free: 2.281 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004136/0.1461, allocations: 187.5 kB / 396.2 MB, free: 2.098 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007593/0.1469, allocations: 255.5 kB / 396.5 MB, free: 1.848 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004389/0.1473, allocations: 355.1 kB / 396.8 MB, free: 1.5 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001657/0.1475, allocations: 44.39 kB / 396.8 MB, free: 1.457 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001747/0.1477, allocations: 119.5 kB / 397 MB, free: 1.34 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002842/0.148, allocations: 139.4 kB / 397.1 MB, free: 1.203 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.134e-05/0.148, allocations: 8 kB / 397.1 MB, free: 1.195 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002146/0.1483, allocations: 91.88 kB / 397.2 MB, free: 1.105 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001205/0.1484, allocations: 75.73 kB / 397.3 MB, free: 1.031 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001634/0.1486, allocations: 136.9 kB / 397.4 MB, free: 0.8906 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003625/0.149, allocations: 275.6 kB / 397.7 MB, free: 0.6211 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.189e-05/0.149, allocations: 4 kB / 397.7 MB, free: 0.6172 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.625e-06/0.149, allocations: 0 / 397.7 MB, free: 0.6172 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.44e-06/0.149, allocations: 0 / 397.7 MB, free: 0.6172 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.00119/0.1502, allocations: 0.607 MB / 398.3 MB, free: 15.95 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.116e-05/0.1502, allocations: 8.031 kB / 398.3 MB, free: 15.94 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.61e-05/0.1503, allocations: 40.48 kB / 398.3 MB, free: 15.9 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004354/0.1508, allocations: 336.1 kB / 398.7 MB, free: 15.54 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.655e-05/0.1509, allocations: 16.12 kB / 398.7 MB, free: 15.52 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.258e-05/0.1509, allocations: 11.98 kB / 398.7 MB, free: 15.51 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003381/0.1513, allocations: 148.2 kB / 398.8 MB, free: 15.35 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.077e-05/0.1513, allocations: 0 / 398.8 MB, free: 15.35 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.682e-05/0.1513, allocations: 8 kB / 398.8 MB, free: 15.34 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.553e-06/0.1513, allocations: 3.938 kB / 398.8 MB, free: 15.34 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001828/0.1515, allocations: 71.91 kB / 398.9 MB, free: 15.27 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009211/0.1524, allocations: 496.2 kB / 399.4 MB, free: 14.73 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000423/0.1529, allocations: 146.6 kB / 399.5 MB, free: 14.58 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001332/0.153, allocations: 60.97 kB / 399.6 MB, free: 14.52 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.484e-05/0.1531, allocations: 4 kB / 399.6 MB, free: 14.51 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00026/0.1534, allocations: 142.1 kB / 399.7 MB, free: 14.36 MB / 302.1 MB Notification: Performance of pre-optimization done (n=18): time 1.423e-06/0.1534, allocations: 0 / 399.7 MB, free: 14.36 MB / 302.1 MB Notification: Performance of matching and sorting (n=18): time 0.000675/0.1541, allocations: 285.1 kB / 400 MB, free: 14.08 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.201e-05/0.1542, allocations: 110.8 kB / 400.1 MB, free: 13.95 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000515/0.1547, allocations: 416.5 kB / 400.5 MB, free: 13.53 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.766e-05/0.1547, allocations: 29.7 kB / 400.6 MB, free: 13.49 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001506/0.1549, allocations: 160.4 kB / 400.7 MB, free: 13.33 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.654e-05/0.1549, allocations: 51.44 kB / 400.8 MB, free: 13.28 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.695e-05/0.155, allocations: 29.7 kB / 400.8 MB, free: 13.24 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001921/0.1552, allocations: 346.7 kB / 401.1 MB, free: 12.89 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001331/0.1553, allocations: 52.2 kB / 401.2 MB, free: 12.84 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001765/0.1555, allocations: 148.4 kB / 401.3 MB, free: 12.66 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003267/0.1559, allocations: 192.4 kB / 401.5 MB, free: 12.44 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.915e-06/0.1559, allocations: 0 / 401.5 MB, free: 12.44 MB / 302.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0003943/0.1563, allocations: 232.9 kB / 401.8 MB, free: 12.2 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.39e-05/0.1563, allocations: 8 kB / 401.8 MB, free: 12.2 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.542e-06/0.1563, allocations: 0 / 401.8 MB, free: 12.2 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.264e-05/0.1564, allocations: 4 kB / 401.8 MB, free: 12.19 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001371/0.1565, allocations: 39.86 kB / 401.8 MB, free: 12.15 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.315e-05/0.1565, allocations: 7.984 kB / 401.8 MB, free: 12.14 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001197/0.1566, allocations: 20.09 kB / 401.8 MB, free: 12.12 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.692e-05/0.1567, allocations: 12 kB / 401.8 MB, free: 12.11 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.000259/0.1569, allocations: 192.2 kB / 402 MB, free: 11.92 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.447e-05/0.157, allocations: 27.62 kB / 402.1 MB, free: 11.89 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.173e-05/0.1571, allocations: 35.22 kB / 402.1 MB, free: 11.86 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.529e-06/0.1571, allocations: 4 kB / 402.1 MB, free: 11.85 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.394e-06/0.1571, allocations: 4 kB / 402.1 MB, free: 11.85 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.762e-06/0.1571, allocations: 3.984 kB / 402.1 MB, free: 11.84 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003339/0.1574, allocations: 297.3 kB / 402.4 MB, free: 11.5 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.162e-06/0.1575, allocations: 0 / 402.4 MB, free: 11.5 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.929e-05/0.1575, allocations: 20.11 kB / 402.4 MB, free: 11.48 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.924e-06/0.1575, allocations: 0 / 402.4 MB, free: 11.48 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.808e-05/0.1575, allocations: 4 kB / 402.4 MB, free: 11.48 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.523e-06/0.1575, allocations: 0 / 402.4 MB, free: 11.48 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.1576, allocations: 0 / 402.4 MB, free: 11.48 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004614/0.158, allocations: 267.2 kB / 402.7 MB, free: 11.2 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.961e-05/0.1581, allocations: 120.7 kB / 402.8 MB, free: 11.07 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.548e-05/0.1582, allocations: 3.984 kB / 402.8 MB, free: 11.06 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.547e-05/0.1583, allocations: 12 kB / 402.8 MB, free: 11.05 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.99e-05/0.1584, allocations: 15.97 kB / 402.8 MB, free: 11.04 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.391e-05/0.1584, allocations: 8 kB / 402.8 MB, free: 11.03 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003496/0.1587, allocations: 303 kB / 403.1 MB, free: 10.73 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1588, allocations: 4 kB / 403.1 MB, free: 10.73 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003387/0.1591, allocations: 71.83 kB / 403.2 MB, free: 10.66 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.001124/0.1602, allocations: 463.7 kB / 403.7 MB, free: 10.3 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004225/0.1607, allocations: 151.8 kB / 403.8 MB, free: 10.15 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.925e-06/0.1607, allocations: 0.5 kB / 403.8 MB, free: 10.15 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001809/0.1609, allocations: 75.97 kB / 403.9 MB, free: 10.07 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004443/0.1613, allocations: 69.31 kB / 403.9 MB, free: 10.01 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001063/0.1624, allocations: 0.5948 MB / 404.5 MB, free: 9.375 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004045/0.1628, allocations: 0.7716 MB / 405.3 MB, free: 8.574 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.632e-05/0.1629, allocations: 27.44 kB / 405.3 MB, free: 8.547 MB / 302.1 MB Notification: Performance of SimCode: time 6.01e-07/0.1629, allocations: 4 kB / 405.3 MB, free: 8.543 MB / 302.1 MB Notification: Performance of Templates: time 0.007634/0.1705, allocations: 4.46 MB / 409.8 MB, free: 4.078 MB / 302.1 MB make -j1 -f IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Fedge.makefile make -j1 -f IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Fedge.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_FedgeCalcHelperMain.o OMCppIndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_FedgeCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppIndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_FedgeCalcHelperMain.o] Error 1