Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.Logical.Counter.Examples.countZeroCrossing.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.Counter.Examples.countZeroCrossing,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Logical.Counter.Examples.countZeroCrossing") translateModel(IndustrialControlSystems.Logical.Counter.Examples.countZeroCrossing,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Logical.Counter.Examples.countZeroCrossing") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001155/0.001155, allocations: 92.16 kB / 16.02 MB, free: 80 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.0022/0.0022, allocations: 183.4 kB / 16.92 MB, free: 6.922 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.966/1.966, allocations: 205.4 MB / 223.1 MB, free: 5.512 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.06793/0.06793, allocations: 10.75 MB / 282.1 MB, free: 10.44 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.001073/0.001073, allocations: 16 kB / 342.9 MB, free: 23.49 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.161/0.1621, allocations: 50 MB / 392.9 MB, free: 5.422 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Counter.Examples.countZeroCrossing): time 0.004984/0.1672, allocations: 1.843 MB / 394.7 MB, free: 3.566 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00317/0.1704, allocations: 1.205 MB / 395.9 MB, free: 2.352 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000322/0.1707, allocations: 4 kB / 395.9 MB, free: 2.348 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001011/0.1718, allocations: 255.4 kB / 396.2 MB, free: 2.098 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000655/0.1724, allocations: 183.4 kB / 396.4 MB, free: 1.918 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001194/0.1736, allocations: 283.5 kB / 396.7 MB, free: 1.641 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006755/0.1743, allocations: 378.9 kB / 397 MB, free: 1.27 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003012/0.1746, allocations: 61.14 kB / 397.1 MB, free: 1.211 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002623/0.1749, allocations: 135.3 kB / 397.2 MB, free: 1.078 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002303/0.1752, allocations: 131.4 kB / 397.3 MB, free: 0.9492 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.842e-05/0.1752, allocations: 8 kB / 397.4 MB, free: 0.9414 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002786/0.1755, allocations: 111.8 kB / 397.5 MB, free: 0.832 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001133/0.1756, allocations: 59.77 kB / 397.5 MB, free: 0.7734 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001751/0.1758, allocations: 152.8 kB / 397.7 MB, free: 0.6172 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004109/0.1762, allocations: 287.6 kB / 397.9 MB, free: 344 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.712e-06/0.1762, allocations: 0 / 397.9 MB, free: 344 kB / 286.1 MB Notification: Performance of FrontEnd: time 1.853e-06/0.1762, allocations: 0 / 397.9 MB, free: 344 kB / 286.1 MB Notification: Performance of Transformations before backend: time 1.196e-05/0.1763, allocations: 4 kB / 398 MB, free: 340 kB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.00136/0.1776, allocations: 0.6297 MB / 398.6 MB, free: 15.64 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.067e-05/0.1777, allocations: 15.97 kB / 398.6 MB, free: 15.63 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.174e-05/0.1778, allocations: 36.47 kB / 398.6 MB, free: 15.59 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005655/0.1784, allocations: 332 kB / 399 MB, free: 15.23 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.684e-05/0.1784, allocations: 12.38 kB / 399 MB, free: 15.22 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.902e-05/0.1785, allocations: 15.94 kB / 399 MB, free: 15.2 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004423/0.1789, allocations: 200 kB / 399.2 MB, free: 14.99 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.077e-05/0.1789, allocations: 3.938 kB / 399.2 MB, free: 14.99 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.938e-05/0.179, allocations: 7.984 kB / 399.2 MB, free: 14.98 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.051e-05/0.179, allocations: 4 kB / 399.2 MB, free: 14.98 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002656/0.1793, allocations: 95.95 kB / 399.3 MB, free: 14.88 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001065/0.1803, allocations: 0.5391 MB / 399.8 MB, free: 14.29 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005258/0.1809, allocations: 170.7 kB / 400 MB, free: 14.12 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001745/0.1811, allocations: 72.91 kB / 400.1 MB, free: 14.04 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.291e-05/0.1811, allocations: 3.984 kB / 400.1 MB, free: 14.04 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003909/0.1815, allocations: 177 kB / 400.2 MB, free: 13.85 MB / 302.1 MB Notification: Performance of pre-optimization done (n=21): time 1.673e-06/0.1815, allocations: 0 / 400.2 MB, free: 13.85 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.0007908/0.1823, allocations: 317.7 kB / 400.6 MB, free: 13.53 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001137/0.1825, allocations: 136.5 kB / 400.7 MB, free: 13.37 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005741/0.1831, allocations: 389.6 kB / 401.1 MB, free: 12.98 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.221e-05/0.1831, allocations: 33.7 kB / 401.1 MB, free: 12.94 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002637/0.1834, allocations: 164.5 kB / 401.3 MB, free: 12.77 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.228e-05/0.1834, allocations: 55.28 kB / 401.3 MB, free: 12.72 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.161e-05/0.1835, allocations: 37.64 kB / 401.4 MB, free: 12.68 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002628/0.1838, allocations: 346.8 kB / 401.7 MB, free: 12.33 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001517/0.1839, allocations: 56.23 kB / 401.7 MB, free: 12.27 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003995/0.1843, allocations: 179.3 kB / 401.9 MB, free: 12.04 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005329/0.1849, allocations: 266.8 kB / 402.2 MB, free: 11.74 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.697e-06/0.1849, allocations: 0 / 402.2 MB, free: 11.74 MB / 302.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0005742/0.1855, allocations: 277.2 kB / 402.5 MB, free: 11.46 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.594e-05/0.1855, allocations: 6.969 kB / 402.5 MB, free: 11.46 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.202e-05/0.1855, allocations: 4.188 kB / 402.5 MB, free: 11.46 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.717e-05/0.1856, allocations: 4 kB / 402.5 MB, free: 11.45 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001565/0.1857, allocations: 43.91 kB / 402.5 MB, free: 11.41 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.392e-05/0.1858, allocations: 4 kB / 402.5 MB, free: 11.41 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001803/0.1859, allocations: 35.67 kB / 402.5 MB, free: 11.37 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.384e-05/0.186, allocations: 16 kB / 402.6 MB, free: 11.36 MB / 302.1 MB Warning: Assuming fixed start value for the following 6 variables: equal.y:DISCRETE(flow=false fixed = true ) "output" type: Boolean counter.CUd:DISCRETE(fixed = true ) type: Boolean counter.CDd:DISCRETE(fixed = true ) type: Boolean counter.Sd:DISCRETE(fixed = true ) type: Boolean counter.Q:DISCRETE(flow=false fixed = true ) "status of the counter (1: counting, 0: not counting)" type: Boolean counter.Value:DISCRETE(start = 0 fixed = true ) type: Integer Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 26 ($PRE.equal.y,equal.y,$PRE.counter.CUd,counter.CUd,$PRE.counter.CDd,counter.CDd,$PRE.counter.Sd,counter.Sd,$PRE.counter.Q,counter.Q,$PRE.counter.Value,counter.Value,$whenCondition4,$PRE.reset.combiTimeTable.nextTimeEvent,$whenCondition3,$PRE.set.combiTimeTable.nextTimeEvent,$whenCondition2,$whenCondition1,reset.combiTimeTable.nextTimeEventScaled,$PRE.reset.combiTimeTable.nextTimeEventScaled,reset.combiTimeTable.nextTimeEvent,reset.y,set.combiTimeTable.nextTimeEventScaled,$PRE.set.combiTimeTable.nextTimeEventScaled,set.combiTimeTable.nextTimeEvent,set.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (31): * Single equations (assignments): 31 * 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.0003501/0.1863, allocations: 185.3 kB / 402.7 MB, free: 11.17 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.226e-05/0.1864, allocations: 43.5 kB / 402.8 MB, free: 11.12 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001091/0.1865, allocations: 39.2 kB / 402.8 MB, free: 11.08 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.047e-06/0.1865, allocations: 4 kB / 402.8 MB, free: 11.07 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.227e-05/0.1866, allocations: 0 / 402.8 MB, free: 11.07 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.482e-06/0.1866, allocations: 0 / 402.8 MB, free: 11.07 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004419/0.187, allocations: 321.3 kB / 403.1 MB, free: 10.71 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.293e-06/0.187, allocations: 0 / 403.1 MB, free: 10.71 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.55e-05/0.1871, allocations: 11.98 kB / 403.2 MB, free: 10.7 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.689e-06/0.1871, allocations: 4 kB / 403.2 MB, free: 10.7 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.634e-05/0.1871, allocations: 0 / 403.2 MB, free: 10.7 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.487e-06/0.1871, allocations: 4 kB / 403.2 MB, free: 10.69 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.104e-06/0.1872, allocations: 4 kB / 403.2 MB, free: 10.69 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006291/0.1878, allocations: 300.5 kB / 403.5 MB, free: 10.38 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000138/0.1879, allocations: 112.7 kB / 403.6 MB, free: 10.25 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.854e-05/0.188, allocations: 8 kB / 403.6 MB, free: 10.24 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001489/0.1882, allocations: 23.92 kB / 403.6 MB, free: 10.21 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.025e-05/0.1882, allocations: 19.97 kB / 403.6 MB, free: 10.2 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.999e-05/0.1883, allocations: 8 kB / 403.6 MB, free: 10.19 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003254/0.1886, allocations: 279.2 kB / 403.9 MB, free: 9.922 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1886, allocations: 0 / 403.9 MB, free: 9.922 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003925/0.189, allocations: 79.89 kB / 404 MB, free: 9.844 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: 16 ($whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,counter.Q,counter.Value,counter.CUd,counter.CDd,counter.Sd,set.y,set.combiTimeTable.nextTimeEvent,set.combiTimeTable.nextTimeEventScaled,reset.y,reset.combiTimeTable.nextTimeEvent,reset.combiTimeTable.nextTimeEventScaled,equal.y) * Number of discrete states: 8 (counter.Value,counter.Sd,counter.CUd,counter.CDd,reset.combiTimeTable.nextTimeEventScaled,set.combiTimeTable.nextTimeEventScaled,set.combiTimeTable.nextTimeEvent,reset.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 9 * 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.001127/0.1901, allocations: 455.2 kB / 404.4 MB, free: 9.492 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000451/0.1906, allocations: 195.7 kB / 404.6 MB, free: 9.301 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.206e-06/0.1906, allocations: 0 / 404.6 MB, free: 9.301 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002085/0.1908, allocations: 91.89 kB / 404.7 MB, free: 9.211 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006323/0.1915, allocations: 85.94 kB / 404.8 MB, free: 9.121 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001107/0.1926, allocations: 0.6027 MB / 405.4 MB, free: 8.488 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004486/0.1931, allocations: 0.7716 MB / 406.2 MB, free: 7.691 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.601e-05/0.1932, allocations: 31.44 kB / 406.2 MB, free: 7.664 MB / 302.1 MB Notification: Performance of SimCode: time 4.7e-07/0.1932, allocations: 0 / 406.2 MB, free: 7.664 MB / 302.1 MB Notification: Performance of Templates: time 0.009102/0.2023, allocations: 4.614 MB / 410.8 MB, free: 3.035 MB / 302.1 MB make -j1 -f IndustrialControlSystems_IndustrialControlSystems.Logical.Counter.Examples.countZeroCrossing.makefile make -j1 -f IndustrialControlSystems_IndustrialControlSystems.Logical.Counter.Examples.countZeroCrossing.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.Counter.Examples.countZeroCrossingCalcHelperMain.o OMCppIndustrialControlSystems_IndustrialControlSystems.Logical.Counter.Examples.countZeroCrossingCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppIndustrialControlSystems_IndustrialControlSystems.Logical.Counter.Examples.countZeroCrossingCalcHelperMain.o] Error 1