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.009366/0.009366, allocations: 99.92 kB / 15.87 MB, free: 5.867 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001597/0.001596, allocations: 195 kB / 16.79 MB, free: 5.809 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.685/1.685, allocations: 205.1 MB / 222.6 MB, free: 4.738 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05521/0.05521, allocations: 10.73 MB / 280.7 MB, free: 10.77 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.001297/0.001297, allocations: 59.91 kB / 340.5 MB, free: 23.8 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.113/0.1143, allocations: 49.02 MB / 389.5 MB, free: 6.723 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Counter.Examples.countZeroCrossing): time 0.003438/0.1178, allocations: 2.197 MB / 391.7 MB, free: 4.508 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001956/0.1198, allocations: 1.232 MB / 393 MB, free: 3.266 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001069/0.1199, allocations: 7.938 kB / 393 MB, free: 3.258 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006368/0.1205, allocations: 251.4 kB / 393.2 MB, free: 3.012 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003537/0.1209, allocations: 179.4 kB / 393.4 MB, free: 2.836 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006618/0.1216, allocations: 283.5 kB / 393.7 MB, free: 2.559 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003591/0.1219, allocations: 379 kB / 394 MB, free: 2.188 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001225/0.1221, allocations: 69.06 kB / 394.1 MB, free: 2.121 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002097/0.1223, allocations: 131.4 kB / 394.2 MB, free: 1.992 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001659/0.1225, allocations: 151.2 kB / 394.4 MB, free: 1.844 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.309e-05/0.1225, allocations: 15.98 kB / 394.4 MB, free: 1.828 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001855/0.1227, allocations: 111.9 kB / 394.5 MB, free: 1.719 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 8.982e-05/0.1228, allocations: 67.73 kB / 394.6 MB, free: 1.652 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001163/0.1229, allocations: 119.2 kB / 394.7 MB, free: 1.535 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003125/0.1232, allocations: 291.7 kB / 395 MB, free: 1.25 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/0.1233, allocations: 0 / 395 MB, free: 1.25 MB / 286.1 MB Notification: Performance of FrontEnd: time 7.02e-07/0.1233, allocations: 0 / 395 MB, free: 1.25 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.319e-06/0.1233, allocations: 3.938 kB / 395 MB, free: 1.246 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: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.0009087/0.1242, allocations: 0.6918 MB / 395.7 MB, free: 0.4961 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.536e-05/0.1242, allocations: 8.031 kB / 395.7 MB, free: 500 kB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.808e-05/0.1243, allocations: 40.47 kB / 395.7 MB, free: 460 kB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003521/0.1247, allocations: 328 kB / 396 MB, free: 92 kB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.529e-05/0.1247, allocations: 12.38 kB / 396 MB, free: 80 kB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.293e-05/0.1247, allocations: 11.94 kB / 396 MB, free: 68 kB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00036/0.1251, allocations: 200 kB / 396.2 MB, free: 15.86 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.049e-06/0.1251, allocations: 4 kB / 396.2 MB, free: 15.85 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.066e-05/0.1251, allocations: 8 kB / 396.3 MB, free: 15.84 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.065e-06/0.1251, allocations: 0 / 396.3 MB, free: 15.84 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002339/0.1254, allocations: 95.94 kB / 396.3 MB, free: 15.75 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006984/0.1261, allocations: 0.5274 MB / 396.9 MB, free: 15.17 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004259/0.1265, allocations: 162.8 kB / 397 MB, free: 15 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001588/0.1267, allocations: 76.75 kB / 397.1 MB, free: 14.93 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.643e-05/0.1267, allocations: 4 kB / 397.1 MB, free: 14.92 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003358/0.1271, allocations: 173 kB / 397.3 MB, free: 14.73 MB / 302.1 MB Notification: Performance of pre-optimization done (n=21): time 1.562e-06/0.1271, allocations: 0 / 397.3 MB, free: 14.73 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.0007183/0.1278, allocations: 322.8 kB / 397.6 MB, free: 14.41 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.643e-05/0.1279, allocations: 140.5 kB / 397.7 MB, free: 14.25 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003883/0.1283, allocations: 381.6 kB / 398.1 MB, free: 13.86 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.427e-05/0.1283, allocations: 33.7 kB / 398.1 MB, free: 13.82 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001185/0.1285, allocations: 172.4 kB / 398.3 MB, free: 13.65 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.865e-05/0.1285, allocations: 51.3 kB / 398.4 MB, free: 13.6 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.521e-05/0.1286, allocations: 49.7 kB / 398.4 MB, free: 13.55 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001385/0.1287, allocations: 350.8 kB / 398.8 MB, free: 13.2 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001581/0.1289, allocations: 64.17 kB / 398.8 MB, free: 13.13 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002258/0.1291, allocations: 175.3 kB / 399 MB, free: 12.91 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004124/0.1296, allocations: 254.8 kB / 399.2 MB, free: 12.62 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.956e-06/0.1296, allocations: 3.938 kB / 399.2 MB, free: 12.61 MB / 302.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0004758/0.1301, allocations: 273 kB / 399.5 MB, free: 12.34 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.751e-05/0.1301, allocations: 10.97 kB / 399.5 MB, free: 12.33 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.312e-06/0.1301, allocations: 0 / 399.5 MB, free: 12.33 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.871e-05/0.1301, allocations: 8 kB / 399.5 MB, free: 12.32 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001532/0.1303, allocations: 39.91 kB / 399.6 MB, free: 12.29 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.708e-06/0.1303, allocations: 4 kB / 399.6 MB, free: 12.28 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001529/0.1305, allocations: 31.73 kB / 399.6 MB, free: 12.25 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.689e-05/0.1305, allocations: 12.25 kB / 399.6 MB, free: 12.24 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.0002382/0.1307, allocations: 185.4 kB / 399.8 MB, free: 12.05 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.378e-05/0.1308, allocations: 35.56 kB / 399.8 MB, free: 12.02 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.223e-05/0.1309, allocations: 39.27 kB / 399.9 MB, free: 11.97 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.867e-06/0.1309, allocations: 8 kB / 399.9 MB, free: 11.96 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.26e-06/0.1309, allocations: 0 / 399.9 MB, free: 11.96 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.556e-06/0.1309, allocations: 0 / 399.9 MB, free: 11.96 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002977/0.1312, allocations: 313.3 kB / 400.2 MB, free: 11.61 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.372e-06/0.1312, allocations: 0 / 400.2 MB, free: 11.61 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.803e-05/0.1313, allocations: 19.92 kB / 400.2 MB, free: 11.59 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.894e-06/0.1313, allocations: 0 / 400.2 MB, free: 11.59 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.914e-05/0.1313, allocations: 8 kB / 400.2 MB, free: 11.58 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.493e-06/0.1313, allocations: 0 / 400.2 MB, free: 11.58 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.11e-07/0.1313, allocations: 0 / 400.2 MB, free: 11.58 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004963/0.1318, allocations: 288.5 kB / 400.5 MB, free: 11.28 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.621e-05/0.1319, allocations: 112.7 kB / 400.6 MB, free: 11.15 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.865e-05/0.132, allocations: 4 kB / 400.6 MB, free: 11.14 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001424/0.1321, allocations: 23.91 kB / 400.6 MB, free: 11.12 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.909e-05/0.1322, allocations: 15.98 kB / 400.6 MB, free: 11.11 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.297e-05/0.1322, allocations: 7.984 kB / 400.6 MB, free: 11.1 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002875/0.1325, allocations: 279.2 kB / 400.9 MB, free: 10.83 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1325, allocations: 3.938 kB / 400.9 MB, free: 10.83 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003411/0.1329, allocations: 75.98 kB / 401 MB, free: 10.75 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.001032/0.1339, allocations: 463 kB / 401.4 MB, free: 10.4 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004438/0.1344, allocations: 183.8 kB / 401.6 MB, free: 10.22 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.198e-06/0.1344, allocations: 7.938 kB / 401.6 MB, free: 10.21 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001907/0.1346, allocations: 83.97 kB / 401.7 MB, free: 10.13 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004434/0.135, allocations: 85.5 kB / 401.8 MB, free: 10.04 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008899/0.1359, allocations: 0.6029 MB / 402.4 MB, free: 9.414 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003469/0.1363, allocations: 0.7716 MB / 403.2 MB, free: 8.617 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.379e-05/0.1364, allocations: 35.42 kB / 403.2 MB, free: 8.586 MB / 302.1 MB Notification: Performance of SimCode: time 2e-07/0.1364, allocations: 0 / 403.2 MB, free: 8.586 MB / 302.1 MB Notification: Performance of Templates: time 0.007072/0.1435, allocations: 4.657 MB / 407.9 MB, free: 3.914 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